/* like.money — X-style post + hold-to-buy interaction
   Measurements mirror X's current web post view (Oct 2026):
   40px timeline avatar / 40px header / 15px metadata / 17px post text / 24px line height,
   20px action icons, 40px pill hit areas, 16px quote radius, 24px quote avatar, 15px quote text,
   12px top-bottom post padding, 16px side padding. */

@font-face {
  font-family: TwitterChirp;
  src: url("/fonts/Chirp-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: TwitterChirp;
  src: url("/fonts/Chirp-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: TwitterChirp;
  src: url("/fonts/Chirp-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-secondary: rgba(255, 255, 255, 0.6);
  --fg-tertiary: rgba(255, 255, 255, 0.3);
  --border: #ffffff26;
  --border-soft: #ffffff14;
  --hover: #ffffff08;
  --hover-strong: #ffffff14;
  --brand: #1d9bf0;
  --like: #f91880;
  --like-soft: rgba(249, 24, 128, 0.12);
  --green: #00ba7c;
  --gold: #ffd45e;
  --font: TwitterChirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Segoe UI Symbol", sans-serif;
  --hold-ms: 2000ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #333 #000;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  text-rendering: auto;
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(29, 155, 240, 0.35);
  color: #fff;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.icon-16 {
  width: 16px;
  height: 16px;
}
.icon-18 {
  width: 18px;
  height: 18px;
}
.icon-28 {
  width: 28px;
  height: 28px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.verified-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  vertical-align: -0.13em;
}

/* ---------- stage ---------- */

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  width: 100%;
  padding: 24px 0 96px;
}

.tweet-shell {
  position: relative;
  width: min(600px, 100%);
  margin-block: auto;
}

.mode-embed .stage {
  min-height: 100dvh;
  padding: 4px 0;
}

.mode-embed .tweet-shell {
  width: min(480px, 100%);
  padding-block: 8px;
}

.mode-embed-generic .stage {
  min-height: 100dvh;
  padding: 16px;
}

.mode-embed-generic .tweet-shell {
  display: none;
}

.mode-share .stage {
  padding-bottom: 24px;
}

.mode-share .tweet-shell {
  width: min(600px, 100%);
}

/* ---------- post layout ---------- */

.tweet {
  position: relative;
  width: 100%;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  color: var(--fg);
}

.tweet-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.avatar-wrap {
  width: 40px;
  flex: 0 0 40px;
}

.avatar {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  object-fit: cover;
  background: #111;
}

.tweet-ident {
  flex: 1;
  min-width: 0;
}

.tweet-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.tweet-name-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.tweet-name {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  min-width: 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  color: var(--fg);
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tweet-name .verified-icon {
  margin-left: 1px;
}

.tweet-handle {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 20px;
  color: var(--fg-secondary);
  font-feature-settings: "ss01";
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--fg);
  border-radius: 9999px;
  transition: background-color 150ms ease;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--hover-strong);
}

.icon-button:focus-visible,
.action:focus-visible,
.quote-card:focus-visible,
.white-button:focus-visible,
.dark-button:focus-visible,
.copy-button:focus-visible,
.preset:focus-visible,
.text-button:focus-visible,
.text-link:focus-visible,
.studio-fab:focus-visible,
.menu-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.more-button {
  width: 32px;
  height: 32px;
  margin: -8px -2px 0 0;
  color: var(--fg);
}

.more-button .icon {
  color: var(--fg);
}

/* ---------- editable post text ---------- */

.tweet-text {
  position: relative;
  min-height: 24px;
  margin-top: 12px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 400;
  color: var(--fg);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  outline: none;
  border-radius: 4px;
}

.tweet-text[contenteditable="true"] {
  cursor: text;
  caret-color: var(--brand);
}

.tweet-text[contenteditable="true"]:focus {
  outline: none;
}

.tweet-text:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

.mode-share .tweet-text,
.mode-embed .tweet-text,
.mode-embed-generic .tweet-text {
  cursor: default;
}

/* ---------- quoted post ---------- */

.tweet-embed {
  margin-top: 12px;
}

.quote-card {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.quote-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.quote-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.quote-head {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
}

.quote-avatar {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  object-fit: cover;
  flex: 0 0 24px;
  background: #111;
}

.quote-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}

.quote-name-line {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.quote-name {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 700;
  color: var(--fg);
}

.quote-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-card:hover .quote-name-text {
  text-decoration: underline;
}

.verified-quote {
  width: 15px;
  height: 15px;
}

.quote-affiliate {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 2px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex: 0 0 15px;
}

.quote-handle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg-secondary);
  font-weight: 400;
  font-feature-settings: "ss01";
}

.quote-date {
  padding-left: 4px;
  flex: 0 0 auto;
  color: var(--fg-secondary);
  font-weight: 400;
}

.quote-date::before {
  content: "·";
  padding-right: 4px;
  color: var(--fg-secondary);
}

.quote-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  color: var(--fg);
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* ---------- metadata row ---------- */

.tweet-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  margin-top: 12px;
  color: var(--fg-secondary);
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
}

.post-time {
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-sep {
  color: var(--fg-secondary);
  flex: 0 0 auto;
}

.views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-secondary);
  flex: 0 0 auto;
}

.views:hover b {
  text-decoration: underline;
}

.views b {
  color: var(--fg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- action bar ---------- */

.tweet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  margin: 12px -8px 0;
  position: relative;
}

.action-cell {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.action-right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px;
  border-radius: 9999px;
  color: var(--fg-secondary);
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: manipulation;
}

.action .icon-action {
  width: 20px;
  height: 20px;
  transition: transform 160ms ease;
}

.action:hover {
  color: var(--brand);
  background: rgba(29, 155, 240, 0.1);
}

.action[data-action="repost"]:hover,
.action[data-action="repost"].is-active {
  color: var(--green);
  background: rgba(0, 186, 124, 0.1);
}

.action[data-action="bookmark"]:hover,
.action[data-action="bookmark"].is-active {
  color: var(--brand);
  background: rgba(29, 155, 240, 0.1);
}

.action[data-action="share"]:hover {
  color: var(--brand);
  background: rgba(29, 155, 240, 0.1);
}

.action:active .icon-action {
  transform: scale(0.9);
}

.count {
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: inherit;
  white-space: nowrap;
}

.action[aria-pressed="true"] .count {
  color: inherit;
}

.action.bump .count {
  animation: countBump 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

/* tooltip */
.action[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(2px);
  padding: 4px 8px;
  border-radius: 4px;
  background: #2f3336;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 30;
  transition: opacity 80ms ease, transform 80ms ease;
}

@media (hover: hover) {
  .action[data-tooltip]:hover::after,
  .action[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 350ms;
  }
}

/* ---------- the like button ---------- */

.like-button {
  color: var(--fg-secondary);
  overflow: visible;
}

.like-button:hover {
  color: var(--like);
  background: var(--like-soft);
}

.like-button .like-count {
  color: inherit;
}

.like-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.like-visual .icon-heart,
.like-visual .icon-dollar {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transform-origin: 50% 54%;
  will-change: transform, opacity;
}

.like-visual .icon-heart {
  opacity: 1;
  transform: scale(1);
  transition: opacity 200ms ease, transform 360ms cubic-bezier(0.2, 1.4, 0.4, 1),
    filter 300ms ease;
}

.like-visual .icon-dollar {
  opacity: 0;
  transform: scale(0.2) rotate(-95deg);
  filter: drop-shadow(0 0 0 rgba(249, 24, 128, 0));
  transition: opacity 200ms ease, transform 440ms cubic-bezier(0.2, 1.5, 0.35, 1),
    filter 300ms ease;
}

.like-button:not(.is-liked):not(.is-dollar):not(.holding):not(.dollar-morphing)
  .icon-heart {
  animation: quietPulse 5.2s ease-in-out infinite;
}

.like-button:hover .icon-heart,
.like-button:focus-visible .icon-heart {
  animation: none;
  transform: scale(1.14);
}

.like-button.is-liked {
  color: var(--like);
}

.like-button.is-liked .icon-heart {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 5px rgba(249, 24, 128, 0.35));
}

.like-button.is-liked:hover {
  background: var(--like-soft);
}

.like-button.is-dollar {
  color: var(--like);
}

.like-button.is-dollar .icon-heart {
  opacity: 0;
  transform: scale(0.2) rotate(24deg);
}

.like-button.is-dollar .icon-dollar {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: drop-shadow(0 0 5px rgba(249, 24, 128, 0.6));
}

.like-button.is-dollar .like-halo {
  opacity: 0.8;
  transform: scale(1);
  animation: dollarHalo 3.6s ease-in-out infinite;
}

.like-halo {
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(249, 24, 128, 0.34) 0%,
    rgba(249, 24, 128, 0.1) 45%,
    rgba(249, 24, 128, 0) 70%
  );
  opacity: 0;
  transform: scale(0.55);
  pointer-events: none;
  transition: opacity 240ms ease, transform 300ms ease;
}

.like-button:not(.is-liked):not(.is-dollar):not(.holding):not(.dollar-morphing)
  .like-halo {
  animation: idleHalo 5.2s ease-in-out infinite;
}

.like-button:hover .like-halo,
.like-button.is-liked .like-halo {
  opacity: 0.45;
  transform: scale(0.95);
  animation: none;
}

.like-button.is-liked .like-halo {
  opacity: 0.6;
}

/* hold progress ring */
.hold-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%) rotate(-90deg);
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  transition: opacity 110ms ease;
}

.hold-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
}

.hold-progress {
  fill: none;
  stroke: url(#likeHoldGradient);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 3px rgba(249, 24, 128, 0.45));
  transition: stroke-dashoffset 180ms ease-out;
}

.like-button.holding .hold-ring {
  opacity: 1;
}

.like-button.holding .hold-progress {
  transition: none;
}

.like-button.holding .icon-heart {
  animation: none;
  transform: scale(0.84);
  filter: drop-shadow(0 0 4px rgba(249, 24, 128, 0.38));
}

.like-button.holding .like-halo {
  opacity: 0.6;
  transform: scale(1.05);
  animation: none;
}

.like-button.holding::after,
.like-button.dollar-morphing::after {
  opacity: 0 !important;
  transition-delay: 0s !important;
}

/* the burst ring */
.burst-ring {
  position: absolute;
  inset: -11px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.35);
  pointer-events: none;
}

.like-button.burst .burst-ring {
  animation: burstRing 620ms cubic-bezier(0.1, 0.65, 0.2, 1) forwards;
}

/* white-pink flash inside the morph */
.morph-flash {
  position: absolute;
  inset: -17px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 142, 184, 0.62) 24%,
    rgba(249, 24, 128, 0.4) 43%,
    rgba(249, 24, 128, 0) 70%
  );
  opacity: 0;
  transform: scale(0.15);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* the heart → dollar morph */
.like-button.dollar-morphing .icon-heart {
  animation: heartIntoDollar 520ms cubic-bezier(0.55, -0.18, 0.38, 1) forwards;
}

.like-button.dollar-morphing .icon-dollar {
  animation: dollarComesAlive 760ms 120ms cubic-bezier(0.16, 1.4, 0.28, 1) forwards;
}

.like-button.dollar-morphing .like-visual {
  animation: likeKick 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.like-button.dollar-morphing .morph-flash {
  animation: morphFlash 620ms ease-out both;
}

.like-button.dollar-morphing .hold-ring {
  opacity: 1;
  animation: holdRingOut 560ms 90ms ease-out forwards;
}

.like-button.dollar-morphing .burst-ring {
  animation: dollarBurst 760ms 80ms cubic-bezier(0.1, 0.7, 0.2, 1) both;
}

.like-button.pop .icon-heart {
  animation: heartPop 440ms cubic-bezier(0.2, 1.35, 0.4, 1);
}

.like-button.burst .icon-heart {
  filter: drop-shadow(0 0 6px rgba(249, 24, 128, 0.42));
}

/* ---------- more menu ---------- */

.x-menu {
  position: absolute;
  top: 50px;
  right: 10px;
  z-index: 40;
  width: 268px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  transform-origin: top right;
  animation: menuIn 160ms cubic-bezier(0.2, 1.2, 0.4, 1);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--fg);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 130ms ease;
}

.menu-item:hover {
  background: var(--hover-strong);
}

.menu-item + .menu-item {
  border-top: 1px solid transparent;
}

.menu-icon {
  width: 18px;
  height: 18px;
  color: var(--fg-secondary);
}

.menu-hint {
  margin-left: auto;
  color: var(--fg-secondary);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.menu-item[data-menu="buy"] {
  color: #ff83ad;
}

.menu-item[data-menu="buy"] .menu-icon {
  color: var(--like);
}

/* ---------- generic embed ---------- */

.generic-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(420px, 100%);
  margin: auto;
  text-align: center;
}

.mode-embed-generic .generic-state {
  display: flex;
}

.generic-logo {
  margin-bottom: 16px;
}

.generic-logo img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 999px;
}

.generic-eyebrow {
  color: #ff83ad;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 2.4px;
}

.generic-state h1 {
  margin: 8px 0 10px;
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.generic-state p {
  margin: 0 0 20px;
  color: var(--fg-secondary);
  font-size: 14px;
  line-height: 20px;
}

.generic-cta {
  width: auto;
  padding: 0 20px;
}

/* ---------- buttons ---------- */

.white-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 9999px;
  background: #eff3f4;
  color: #0b0b0b;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, transform 120ms ease,
    opacity 150ms ease;
}

.white-button:hover {
  background: #d7dbdc;
}

.white-button:active {
  transform: scale(0.985);
}

.white-button[disabled],
.white-button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.white-button .icon {
  fill: currentColor;
}

.dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #101010;
  color: var(--fg);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
    transform 120ms ease;
}

.dark-button:hover {
  background: #191919;
  border-color: rgba(255, 255, 255, 0.25);
}

.dark-button:active {
  transform: scale(0.985);
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--fg-secondary);
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
  transition: color 150ms ease;
}

.text-button:hover {
  color: var(--fg);
  text-decoration: underline;
}

.text-link {
  color: var(--brand);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  cursor: pointer;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 110;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #1d9bf0;
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 1, 0.4, 1);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- card studio launcher ---------- */

.studio-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: rgba(13, 13, 13, 0.86);
  color: var(--fg);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 150ms ease, background-color 150ms ease,
    border-color 150ms ease, transform 120ms ease;
}

.studio-fab .icon {
  width: 16px;
  height: 16px;
}

.studio-fab:hover {
  opacity: 1;
  background: #17191d;
  border-color: rgba(255, 255, 255, 0.22);
}

.studio-fab:active {
  transform: scale(0.98);
}

.mode-share .studio-fab,
.mode-embed .studio-fab,
.mode-embed-generic .studio-fab {
  display: none;
}

.mode-share .demo-only,
.mode-embed .demo-only,
.mode-embed-generic .demo-only {
  display: none !important;
}

/* ---------- variation switch ---------- */

.variant-switch {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: rgba(13, 13, 13, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0.72;
  transition: opacity 150ms ease, border-color 150ms ease;
}

.variant-switch:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.22);
}

.variant-switch button {
  height: 30px;
  padding: 0 10px;
  border-radius: 9999px;
  color: var(--fg-secondary);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.variant-switch button:hover {
  color: var(--fg);
}

.variant-switch button.active {
  background: var(--hover-strong);
  color: var(--fg);
}

.mode-share .variant-switch,
.mode-embed .variant-switch,
.mode-embed-generic .variant-switch {
  display: none;
}

.variant-plain .tweet-embed {
  display: none;
}

/* ---------- poster fields ---------- */

.mode-demo [data-poster-field][contenteditable="true"] {
  cursor: text;
  outline: 1px dashed transparent;
  outline-offset: 2px;
  border-radius: 3px;
  transition: background-color 140ms ease, outline-color 140ms ease;
}

.mode-demo [data-poster-field][contenteditable="true"]:hover {
  outline-color: rgba(29, 155, 240, 0.45);
  background: rgba(29, 155, 240, 0.055);
}

.mode-demo [data-poster-field][contenteditable="true"]:focus {
  outline: 1px solid rgba(29, 155, 240, 0.8);
  background: rgba(29, 155, 240, 0.085);
}

.mode-demo .count[contenteditable="true"],
.mode-demo .views b[contenteditable="true"] {
  padding: 1px 2px;
  margin: -1px -2px;
  user-select: text;
}

.mode-demo .brand-name[contenteditable="true"],
.mode-demo .tweet-handle[contenteditable="true"],
.mode-demo .post-time[contenteditable="true"],
.mode-demo .quote-date[contenteditable="true"] {
  min-width: 8px;
}

/* Viewers may only use the hold-to-buy gesture. Everything else is
   display-only, including hover/focus behavior on the other controls. */
.mode-share .action:not(.like-button),
.mode-embed .action:not(.like-button),
.mode-embed-generic .action:not(.like-button),
.mode-share .more-button,
.mode-embed .more-button,
.mode-embed-generic .more-button,
.mode-share .quote-card,
.mode-embed .quote-card,
.mode-embed-generic .quote-card {
  pointer-events: none;
  cursor: default;
}

.mode-share .quote-card:hover,
.mode-embed .quote-card:hover,
.mode-embed-generic .quote-card:hover {
  background: transparent;
}

.mode-share .action:not(.like-button):hover,
.mode-embed .action:not(.like-button):hover {
  background: transparent;
  color: var(--fg-secondary);
}

/* ---------- studio variation picker ---------- */

.studio-variant-head {
  margin-top: 14px;
}

.variant-choice {
  display: flex;
  gap: 6px;
}

.variant-choice button {
  flex: 1;
  height: 38px;
  border: 1px solid #272727;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--fg-secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease,
    color 140ms ease;
}

.variant-choice button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}

.variant-choice button.active {
  border-color: rgba(249, 24, 128, 0.38);
  background: rgba(249, 24, 128, 0.1);
  color: #ffb3cf;
}

.studio-form .field-head + .variant-choice {
  margin-bottom: 2px;
}

/* ---------- coachmark ---------- */

.coachmark {
  position: fixed;
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(22, 24, 28, 0.96);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate(-50%, 0) translateY(-4px) scale(0.96);
  transform-origin: 50% 0%;
  pointer-events: none;
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.2, 1.3, 0.4, 1);
}

.coachmark.visible {
  opacity: 1;
  transform: translate(-50%, 0) translateY(0) scale(1);
}

.coachmark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 8px;
  height: 8px;
  background: inherit;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}

.coachmark.above {
  transform: translate(-50%, -100%) translateY(4px) scale(0.96);
  transform-origin: 50% 100%;
}

.coachmark.above.visible {
  transform: translate(-50%, -100%) translateY(-6px) scale(1);
}

.coachmark.above::after {
  top: auto;
  bottom: -5px;
  border-left: 0;
  border-top: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.coachmark-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--like);
  box-shadow: 0 0 0 3px rgba(249, 24, 128, 0.16);
  animation: dotPulse 1.8s ease-in-out infinite;
}

/* ---------- canvas fx ---------- */

.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 55;
  pointer-events: none;
}

/* ---------- modal base ---------- */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.studio-root {
  align-items: center;
  padding: 16px;
  z-index: 80;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.modal-root.open .modal-backdrop {
  opacity: 1;
}

.sheet {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 20px 18px;
  border: 1px solid #2f3336;
  border-radius: 24px;
  background: #050505;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 220ms ease, transform 430ms cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: #333 #050505;
}

.modal-root.open .sheet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sheet-grabber {
  width: 36px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #383838;
}

.sheet:focus {
  outline: none;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  color: var(--fg);
  background: transparent;
}

.sheet-close:hover {
  background: var(--hover-strong);
}

.sheet-close .icon {
  width: 18px;
  height: 18px;
}

/* ---------- buy sheet ---------- */

.buy-sheet {
  background: #050505;
}

.buy-intro {
  margin: 14px 0 0;
  color: var(--fg);
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

.buy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 26px;
}

.buy-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.buy-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 40px;
}

.buy-brand-name {
  font-size: 15px;
  line-height: 19px;
  font-weight: 700;
}

.buy-brand-meta {
  color: var(--fg-secondary);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hold-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(249, 24, 128, 0.28);
  border-radius: 999px;
  background: rgba(249, 24, 128, 0.1);
  color: #ff83ad;
  font-size: 9px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.mini-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--like);
  box-shadow: 0 0 0 3px rgba(249, 24, 128, 0.12);
}

.buy-title-wrap {
  margin-top: 16px;
}

.buy-eyebrow {
  color: #ff83ad;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.buy-title {
  margin: 4px 0 0;
  font-size: 25px;
  line-height: 29px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.buy-sub {
  margin: 5px 0 0;
  color: var(--fg-secondary);
  font-size: 14px;
  line-height: 19px;
}

.buy-sub strong {
  color: var(--fg);
  font-weight: 700;
}

.buy-amount {
  margin-top: 15px;
  padding: 11px 14px 10px;
  border: 1px solid #242424;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.amount-label {
  color: var(--fg-secondary);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
}

.amount-input-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.amount-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--fg);
  font-size: 30px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}

.amount-input::placeholder {
  color: var(--fg-tertiary);
}

.amount-currency {
  color: var(--fg-secondary);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.amount-presets {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.preset {
  padding: 4px 9px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-secondary);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 130ms ease, color 130ms ease,
    border-color 130ms ease;
}

.preset:hover,
.preset.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  border-color: #3a3a3a;
}

.amount-receive {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--fg-secondary);
  font-size: 11px;
  line-height: 15px;
}

.wallet-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #222;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  line-height: 16px;
}

.wallet-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 186, 124, 0.12);
  flex: 0 0 6px;
}

.wallet-address {
  color: var(--fg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wallet-chain {
  color: var(--fg-secondary);
}

.wallet-chain::before {
  content: "·";
  padding-right: 7px;
}

.wallet-balance {
  margin-left: auto;
  color: var(--fg-secondary);
  font-variant-numeric: tabular-nums;
}

.buy-primary {
  margin-top: 12px;
  min-height: 48px;
}

.buy-primary.is-loading .icon {
  display: none;
}

.buy-primary.is-loading::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(11, 11, 11, 0.22);
  border-top-color: #0b0b0b;
  border-radius: 999px;
  animation: spin 760ms linear infinite;
}

.buy-status {
  min-height: 17px;
  margin-top: 7px;
  color: var(--fg-secondary);
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}

.buy-status.error {
  color: #ff7a86;
}

.buy-status.success {
  color: var(--green);
}

.preview-buy {
  display: block;
  margin: 2px auto 0;
  color: #ff9bbd;
  font-size: 11px;
  line-height: 16px;
}

.preview-buy:hover {
  color: #ffd0e2;
}

.buy-error {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(244, 33, 46, 0.22);
  border-radius: 10px;
  background: rgba(244, 33, 46, 0.07);
  color: #ff8b95;
  font-size: 12px;
  line-height: 16px;
}

.buy-success {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 186, 124, 0.22);
  border-radius: 16px;
  background: rgba(0, 186, 124, 0.055);
  text-align: center;
  animation: successIn 340ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

.buy-success:focus,
.studio-result:focus {
  outline: none;
}

.success-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 7px;
  border-radius: 999px;
  background: rgba(0, 186, 124, 0.14);
  color: var(--green);
  animation: successPop 520ms 60ms cubic-bezier(0.2, 1.4, 0.3, 1) both;
}

.success-title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.success-copy {
  margin: 4px 0 0;
  color: var(--fg-secondary);
  font-size: 12px;
  line-height: 17px;
}

.buy-success .text-link {
  margin-top: 4px;
  display: inline-block;
}

.buy-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--fg-secondary);
  font-size: 11px;
  line-height: 15px;
}

.buy-network {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.network-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--green);
}

.buy-demo-badge {
  padding: 2px 6px;
  border: 1px solid rgba(255, 212, 94, 0.25);
  border-radius: 999px;
  background: rgba(255, 212, 94, 0.08);
  color: #ffe38e;
  font-size: 8px;
  line-height: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.buy-buys {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.buy-footnote {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  line-height: 14px;
}

.back-to-like {
  margin-top: 8px;
  width: 100%;
}

.buy-sheet.done .buy-title-wrap,
.buy-sheet.done .buy-amount,
.buy-sheet.done .wallet-row,
.buy-sheet.done .buy-primary,
.buy-sheet.done .buy-status,
.buy-sheet.done .buy-error,
.buy-sheet.done .preview-buy {
  display: none;
}

/* ---------- studio ---------- */

.studio-sheet {
  width: min(560px, 100%);
  padding: 12px 24px 22px;
  max-height: calc(100dvh - 32px);
  background:
    radial-gradient(
      circle at 82% -10%,
      rgba(249, 24, 128, 0.15) 0%,
      rgba(249, 24, 128, 0) 48%
    ),
    #050505;
}

.studio-head,
.studio-result {
  max-width: 100%;
}

.studio-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: #ff83ad;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.studio-title {
  margin: 9px 0 0;
  font-size: 32px;
  line-height: 35px;
  font-weight: 700;
  letter-spacing: -0.9px;
}

.studio-title span {
  color: var(--like);
}

.studio-sub {
  margin: 10px 0 0;
  max-width: 450px;
  color: var(--fg-secondary);
  font-size: 14px;
  line-height: 19px;
}

.studio-form {
  margin-top: 18px;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.field-head label,
.field-half label {
  display: block;
  color: var(--fg-secondary);
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.char-count {
  color: var(--fg-tertiary);
  font-size: 11px;
  line-height: 14px;
  font-variant-numeric: tabular-nums;
}

.studio-form textarea,
.studio-form input,
.studio-form select,
.studio-result textarea,
.copy-field input {
  display: block;
  width: 100%;
  border: 1px solid #272727;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--fg);
  font-size: 15px;
  line-height: 21px;
  font-weight: 400;
  outline: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.studio-form textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

.studio-form textarea:focus,
.studio-form input:focus,
.studio-form select:focus,
.copy-field input:focus {
  border-color: rgba(249, 24, 128, 0.6);
  background: rgba(255, 255, 255, 0.045);
}

.studio-form input,
.studio-form select {
  height: 42px;
  padding: 0 12px;
}

.studio-form select {
  appearance: none;
  padding-right: 30px;
  font-size: 13px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #8b8b8b 50%),
    linear-gradient(135deg, #8b8b8b 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.studio-target-head {
  margin-top: 14px;
}

.studio-target-input {
  flex: 1.45 1 0;
}

.field-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 13px;
}

.field-half {
  flex: 1;
  min-width: 0;
}

.preview-chip-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #232323;
  border-radius: 12px;
  background: rgba(249, 24, 128, 0.045);
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #ff83ad;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.preview-chip-mark {
  color: #ffb0ce;
}

.field-note {
  margin-left: auto;
  color: var(--fg-tertiary);
  font-size: 10px;
  line-height: 14px;
}

.studio-submit {
  margin-top: 16px;
}

.protocol-warning {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 212, 94, 0.22);
  border-radius: 10px;
  background: rgba(255, 212, 94, 0.055);
  color: #ffe29a;
  font-size: 11px;
  line-height: 16px;
}

.protocol-warning code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.studio-error {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(244, 33, 46, 0.25);
  border-radius: 10px;
  background: rgba(244, 33, 46, 0.07);
  color: #ff8b95;
  font-size: 12px;
  line-height: 16px;
}

.studio-result {
  margin-top: 4px;
}

.result-title {
  font-size: 29px;
  line-height: 32px;
}

.result-preview {
  position: relative;
  margin-top: 14px;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1200 / 630;
}

.result-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-preview-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffb3cf;
  font-size: 8px;
  line-height: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  backdrop-filter: blur(8px);
}

.crawl-state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--fg-secondary);
  font-size: 11px;
  line-height: 15px;
}

.crawl-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 212, 94, 0.1);
  animation: dotPulse 1.9s ease-in-out infinite;
}

.crawl-state.live .crawl-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 186, 124, 0.12);
  animation: none;
}

.result-field {
  margin-top: 13px;
}

.field-kicker {
  color: var(--fg-tertiary);
  font-size: 10px;
  line-height: 14px;
}

.copy-field {
  display: flex;
  align-items: stretch;
  border: 1px solid #272727;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.copy-field input {
  flex: 1;
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  line-height: 16px;
}

.copy-button {
  flex: 0 0 auto;
  padding: 0 12px;
  border-left: 1px solid #272727;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 130ms ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.11);
}

.studio-result textarea {
  min-height: 66px;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 17px;
  resize: none;
}

.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.result-tweet {
  flex: 1;
  min-height: 44px;
}

.result-subactions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.fallback-note {
  margin-top: 14px;
  border-top: 1px solid #1e1e1e;
  padding-top: 11px;
  color: var(--fg-secondary);
  font-size: 11px;
  line-height: 16px;
}

.fallback-note summary {
  color: var(--fg-secondary);
  font-size: 12px;
  line-height: 17px;
  cursor: pointer;
  list-style: none;
}

.fallback-note summary::-webkit-details-marker {
  display: none;
}

.fallback-note summary::after {
  content: "+";
  float: right;
  color: var(--fg-tertiary);
}

.fallback-note[open] summary::after {
  content: "−";
}

.fallback-note p {
  margin: 8px 0;
}

.fallback-field {
  margin: 8px 0;
}

.fallback-note .text-button {
  margin-top: 2px;
}

.domain-note {
  margin: 12px 0 0;
  color: var(--fg-tertiary);
  font-size: 10px;
  line-height: 15px;
}

/* ---------- keyframes ---------- */

@keyframes quietPulse {
  0%,
  62%,
  100% {
    transform: scale(1);
  }
  7% {
    transform: scale(1.11);
  }
  13% {
    transform: scale(1.015);
  }
  19% {
    transform: scale(1.055);
  }
  25% {
    transform: scale(1);
  }
}

@keyframes idleHalo {
  0%,
  55%,
  100% {
    opacity: 0;
    transform: scale(0.65);
  }
  9% {
    opacity: 0.3;
    transform: scale(1);
  }
  17% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes dollarHalo {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.06);
  }
}

@keyframes heartPop {
  0% {
    transform: scale(0.45);
  }
  48% {
    transform: scale(1.34);
  }
  70% {
    transform: scale(0.92);
  }
  86% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes burstRing {
  0% {
    opacity: 0.7;
    transform: scale(0.45);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes countBump {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-2px) scale(1.08);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes heartIntoDollar {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: drop-shadow(0 0 0 rgba(249, 24, 128, 0));
  }
  26% {
    opacity: 1;
    transform: scale(1.32) rotate(-8deg);
    filter: drop-shadow(0 0 12px rgba(249, 24, 128, 0.7));
  }
  55% {
    opacity: 0.7;
    transform: scale(0.68) rotate(-24deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.1) rotate(-72deg);
  }
}

@keyframes dollarComesAlive {
  0% {
    opacity: 0;
    transform: scale(0.18) rotate(-105deg);
    filter: drop-shadow(0 0 0 rgba(249, 24, 128, 0));
  }
  48% {
    opacity: 1;
    transform: scale(1.28) rotate(8deg);
    filter: drop-shadow(0 0 10px rgba(249, 24, 128, 0.75));
  }
  72% {
    opacity: 1;
    transform: scale(0.92) rotate(-3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: drop-shadow(0 0 5px rgba(249, 24, 128, 0.6));
  }
}

@keyframes likeKick {
  0% {
    transform: scale(1);
  }
  18% {
    transform: scale(0.82);
  }
  48% {
    transform: scale(1.15);
  }
  74% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes morphFlash {
  0% {
    opacity: 0;
    transform: scale(0.15);
  }
  18% {
    opacity: 0.92;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes holdRingOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-90deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(1.65);
  }
}

@keyframes dollarBurst {
  0% {
    opacity: 0.85;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes successIn {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  65% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 520px) {
  .stage {
    padding-top: 16px;
    padding-bottom: 88px;
  }

  .mode-embed .stage {
    padding: 0;
  }

  .tweet {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tweet-actions {
    margin-left: -8px;
    margin-right: -8px;
  }

  .action {
    padding-left: 10px;
    padding-right: 10px;
  }

  .studio-fab span {
    display: none;
  }

  .studio-fab {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }

  .variant-switch {
    left: 12px;
    bottom: 16px;
  }

  .variant-switch button {
    height: 28px;
    padding: 0 9px;
    font-size: 10px;
  }

  .sheet {
    width: 100%;
    border-radius: 22px;
  }

  .modal-root {
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .studio-root {
    padding: 8px;
  }

  .studio-sheet {
    padding: 12px 18px 18px;
  }

  .studio-title {
    font-size: 28px;
    line-height: 31px;
  }

  .buy-sheet {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 380px) {
  .quote-date {
    display: none;
  }

  .action[data-action="bookmark"] .count {
    display: none;
  }

  .action {
    padding-left: 8px;
    padding-right: 8px;
  }

  .like-button {
    padding-left: 8px;
    padding-right: 8px;
  }

  .buy-head {
    gap: 6px;
  }

  .hold-complete-badge {
    letter-spacing: 0.6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .like-button:not(.is-liked):not(.is-dollar) .icon-heart,
  .like-button .like-halo {
    animation: none !important;
  }
}
