/* 夯爆了 / 拉完了特效、作品点踩、评论表情。 */
.dislike[aria-pressed="true"] { color: var(--bad); }
.reaction-burst { position: fixed; z-index: 2000; width: 0; height: 0; pointer-events: none; }
.reaction-burst b { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: .04em; paint-order: stroke fill; -webkit-text-stroke: 8px #fff; }
.reaction-burst i { position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 2px; }
.reaction-burst.is-up b { color: #e8391c; filter: drop-shadow(0 4px 0 #ffc93c); animation: burst-up 1s cubic-bezier(.2, 1.4, .4, 1) both; }
.reaction-burst.is-up i { background: #ffc93c; animation: burst-fly .9s ease-out both; }
.reaction-burst.is-up i:nth-child(3n) { background: #ff6b3d; }
.reaction-burst.is-up i:nth-child(3n+1) { background: #2fbf8f; border-radius: 50%; }
.reaction-burst.is-down b { color: #5f6670; animation: burst-down 1.05s ease-in both; }
.reaction-burst.is-down i { background: #9aa1ab; animation: burst-fly 1s ease-in both; }
@keyframes burst-up {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-12deg); }
  30% { opacity: 1; transform: translate(-50%, -80%) scale(1.25) rotate(-6deg); }
  40% { transform: translate(-53%, -80%) scale(1.1) rotate(-4deg); }
  50% { transform: translate(-47%, -80%) scale(1.1) rotate(-8deg); }
  60%, 80% { opacity: 1; transform: translate(-50%, -80%) scale(1.1) rotate(-6deg); }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(1) rotate(-6deg); }
}
@keyframes burst-down {
  0% { opacity: 0; transform: translate(-50%, -160%); }
  20% { opacity: 1; transform: translate(-50%, -110%); }
  45% { transform: translate(-50%, -50%) rotate(0); }
  55% { transform: translate(-50%, -50%) rotate(7deg) scaleY(.85); }
  75% { opacity: 1; transform: translate(-50%, -30%) rotate(9deg); }
  100% { opacity: 0; transform: translate(-50%, 20%) rotate(14deg); }
}
@keyframes burst-fly {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.4); }
}

.sticker { display: inline-block; width: 1.7em; height: 1.7em; margin: 0 1px; vertical-align: -.45em; }
.c-text .sticker { width: 30px; height: 30px; vertical-align: -9px; }
.bubbles .sticker { width: 1.4em; height: 1.4em; vertical-align: -.35em; }
.sticker-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.sticker-toggle:hover, .sticker-toggle[aria-expanded="true"] { background: var(--accent-tint); }
.sticker-toggle svg { width: 24px; height: 24px; }
.sticker-popup { position: absolute; top: calc(100% + 4px); right: 0; z-index: 26; width: min(360px, 100%); max-height: min(280px, 45dvh); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-up); }
.sticker-popup.is-above { top: auto; bottom: calc(100% + 4px); }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 2px; }
.sticker-grid + .sticker-grid { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.sticker-grid button { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; font-size: 24px; line-height: 1; cursor: pointer; }
.sticker-grid button:hover, .sticker-grid button:focus-visible { background: var(--accent-tint); }
.sticker-grid svg { width: 34px; height: 34px; }
@media (max-width: 480px) { .sticker-toggle { width: 32px; } .c-compose > .ava { display: none; } }
