.home-stats .motion-value-base { position: relative; color: transparent !important; }
.home-stats .motion-number { position: absolute; inset: 0; color: var(--ink, #273a30); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.home-stats .motion-rank-base { position: relative; color: transparent !important; }
.motion-stat-delta { position: absolute; inset: 0; display: flex; align-items: center; font-size: inherit; line-height: inherit; font-style: normal; font-weight: 700; white-space: nowrap; pointer-events: none; }
.motion-stat-delta.is-gain { color: #28714b; }
.motion-stat-delta.is-loss { color: #a13e35; }
#mobileNav #packageOpenBtn { position: relative; }
.motion-package-gain { position: absolute; top: 3px; left: calc(50% + 7px); max-width: calc(50% - 8px); overflow: hidden; padding: 0 3px; border-radius: 4px; background: #28714b; color: #fafbf7; font-size: 11px; line-height: 17px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.motion-receipt {
  position: fixed; inset: auto 16px max(28px, env(safe-area-inset-bottom));
  margin: 0 auto; width: min(400px, calc(100% - 32px)); padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; box-sizing: border-box;
  border: 1px solid #b8c9bb; border-left: 3px solid #376857; border-radius: 6px;
  background: #f8fcf8; color: #274f40; box-shadow: 0 6px 24px #183b2924;
  z-index: 120; pointer-events: none;
}
.motion-receipt::backdrop { background: transparent; pointer-events: none; }
.motion-receipt-seal { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 2px double currentColor; border-radius: 2px; font: 700 16px "Songti SC", serif; transform: rotate(-6deg); }
.motion-receipt-copy { display: grid; gap: 5px; min-width: 0; }
.motion-receipt-copy strong { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.motion-receipt-copy small { font-size: 12px; line-height: 1.5; color: #586d5f; overflow-wrap: anywhere; }
.motion-receipt[data-kind="commission"] { border-left-color: #a14635; }
.motion-receipt[data-kind="commission"] .motion-receipt-seal { color: #a14635; }
.motion-receipt[data-kind="trade"] { border-left-color: #967332; }
.motion-receipt[data-kind="trade"] .motion-receipt-seal { color: #8b692c; }
.commission-wait-mark.motion-delivered { color: #a14635; border: 2px double #a14635; border-radius: 2px; font-size: 15px; transform: rotate(-6deg); }
.motion-npc-label { position: absolute; top: 8px; right: 10px; max-width: calc(100% - 20px); padding: 5px 9px; color: #f7f8ee; background: #294f49; border-left: 3px solid #b89c60; font: 600 13px/1.5 "Songti SC", serif; pointer-events: none; }
body:has(.motion-receipt) .collection-toast { visibility: hidden; }
.motion-receipt.motion-specimen-scene {
  inset: 0; margin: auto; width: min(350px, calc(100% - 32px)); height: fit-content;
  display: grid; gap: 0; padding: 0; border: 1px solid #b8c9bb; background: #fafbf8;
  overflow: hidden; box-shadow: 0 12px 38px #183b2929;
}
.motion-specimen-scene canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.motion-specimen-scene .motion-receipt-copy { padding: 12px 18px 14px; text-align: center; }
.motion-specimen-scene .motion-receipt-copy small { white-space: pre-line; }
.motion-specimen-scene .motion-record-dismiss {
  position: absolute; top: 4px; right: 4px; min-width: 52px; min-height: 44px;
  border: 0; background: transparent; color: #355d50; font: inherit; font-size: 13px;
  cursor: pointer; pointer-events: auto;
}
#resultPanel { position: relative; }
.motion-choice-summary { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 9px; padding: 9px 10px; margin-bottom: 10px; border: 1px solid #b9cbb3; border-radius: 4px; background: #eef4e9; color: #304e3a; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.motion-choice-summary > span { flex: none; color: #667960; font-size: 12px; }
.motion-choice-ghosts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
.motion-choice-ghost { position: absolute; left: 0; right: 0; height: 40px; padding: 8px 10px; background: #f4f7ef; border: 1px solid #d2ddcb; border-radius: 4px; color: #63765b; font-size: 13px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collection-completion-motion { position: relative; background: #e8ede5; margin-bottom: 16px; border-radius: 4px; overflow: hidden; }
.collection-completion-motion canvas { display: block; width: min(100%, 420px); aspect-ratio: 3 / 2; height: auto; margin: auto; }
.collection-motion-skip { position: absolute; right: 4px; top: 4px; min-height: 44px; min-width: 88px; padding: 4px 10px; border: 0; background: #e8ede5; color: #355d50; font: inherit; font-size: 13px; cursor: pointer; }
#collectionCompleteDialog[open] { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
#collectionCompleteDialog > header, #completeAlbumBtn { flex: none; }
#collectionCompleteContent { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 820px), (max-width: 1000px) and (max-height: 500px) {
  .motion-receipt { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 820px) and (max-height: 650px), (max-width: 1000px) and (max-height: 500px) {
  .motion-receipt { bottom: calc(68px + env(safe-area-inset-bottom)); padding: 6px 10px; gap: 8px; }
  .motion-receipt-seal { flex-basis: 26px; height: 26px; font-size: 11px; }
  .motion-receipt-copy { overflow: hidden; }
  .motion-receipt-copy strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .motion-receipt-copy small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .motion-specimen-scene canvas { max-height: 165px; object-fit: contain; background: #e8ede5; }
  .motion-specimen-scene .motion-receipt-copy strong { white-space: normal; }
  .motion-specimen-scene .motion-receipt-copy small { position: static; width: auto; height: auto; clip-path: none; }
  .collection-completion-motion canvas { max-height: 170px; object-fit: contain; }
  .motion-choice-summary { padding: 6px 8px; font-size: 13px; margin-bottom: 8px; }
}
