/* App reference: PremiumPostCard._ReactionButton + AppColors + AppMotion.
   Four equal columns, 52px height, 22px corners, 350ms easeOutCubic.
   Labels below the controls explain the app's icons to first-time visitors. */
.reaction-demo {
  margin: 1.8rem 0 2rem;
  padding: 24px 20px 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: linear-gradient(145deg, #061228, #183060);
  -webkit-font-smoothing: antialiased;
}
.reaction-demo__eyebrow {
  margin: 0 0 20px;
  color: #a9bdcf;
  font-size: 10px;
  letter-spacing: .12em;
}
.reaction-demo__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.reaction-demo__row li { min-width: 0; text-align: center; }
.reaction-demo__button {
  --reaction: 255, 208, 96;
  /* App's night-sky bottom #183060 blended 46% toward the reaction color. */
  --glow: 130, 122, 96;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 52px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: rgba(0, 0, 0, .18);
  color: rgba(255, 255, 255, .78);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 350ms cubic-bezier(.215, .61, .355, 1), color 350ms cubic-bezier(.215, .61, .355, 1), background-color 350ms cubic-bezier(.215, .61, .355, 1);
}
.reaction-demo__button[data-reaction="iyasareru"] { --reaction: 128, 208, 240; --glow: 72, 122, 162; }
.reaction-demo__button[data-reaction="emoi"] { --reaction: 240, 160, 80; --glow: 123, 100, 89; }
.reaction-demo__button[data-reaction="genki"] { --reaction: 240, 192, 64; --glow: 123, 114, 81; }
.reaction-demo__button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--reaction), .18), rgba(var(--glow), .12));
  box-shadow: 0 0 16px -4px rgba(var(--glow), .28);
  content: "";
  opacity: 0;
  transition: opacity 350ms cubic-bezier(.215, .61, .355, 1);
  pointer-events: none;
}
.reaction-demo__button[aria-pressed="true"] {
  background-color: transparent;
  border-color: rgba(var(--glow), .72);
  color: rgb(var(--reaction));
}
.reaction-demo__button[aria-pressed="true"]::before { opacity: 1; }
.reaction-demo__button:focus-visible { outline: 2px solid #8cdef2; outline-offset: 4px; }
.reaction-demo__button:disabled { cursor: default; }
.reaction-demo__emoji { font-size: 20px; line-height: 1; }
.reaction-demo__count { font-size: 16px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.reaction-demo__label { display: block; margin-top: 8px; color: #c3d3df; font-size: 11px; line-height: 1.6; white-space: nowrap; }
.reaction-demo__status { margin: 20px 0 8px; min-height: 3.4em; color: #e6edf4; font-size: 13px; line-height: 1.7; }
.reaction-demo__note { margin: 0; color: #a9bdcf; font-size: 12px; line-height: 1.8; }
@media (max-width: 380px) {
  .reaction-demo { padding: 20px 12px 16px; }
  .reaction-demo__row { gap: 6px; }
  .reaction-demo__button { gap: 3px; padding-inline: 3px; }
  .reaction-demo__label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .reaction-demo__button, .reaction-demo__button::before { transition: none; }
}
