/* =====================================================
 * Tweet ページ専用CSS（X風タイムライン）
 * ===================================================== */

.tweet-main {
  padding-bottom: 80px;
  min-height: 100vh;
  background: var(--color-bg);
  position: relative;
  z-index: 1;
}
.tweet-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: clip;
}

/* --- フィルタータブ --- */
.tweet-filter {
  display: flex;
  gap: 0;
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}
.tweet-filter__tab {
  flex: 1;
  padding: 10px 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-align: center;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tweet-filter__tab:hover {
  color: var(--color-text);
  background: rgba(0,0,0,0.03);
}
.tweet-filter__tab.is-active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  box-shadow: 0 2px 8px rgba(166,132,79,0.25);
}

/* --- ページヘッダー --- */
.tweet-header {
  padding: 24px 0 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.tweet-header__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.tweet-header__sub {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* --- ツイートカード --- */
.tweet-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 -16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.2s ease;
}
.tweet-card:hover {
  background: rgba(0,0,0,0.015);
}
.tweet-card--has-badge {
  padding-top: 22px;
}

/* アバター */
.tweet-card__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}
.tweet-card__avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}
.tweet-card__avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

/* コンテンツ（ヘッダー行） */
.tweet-card__content {
  flex: 1;
  min-width: 0;
  padding-left: 12px;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.tweet-card__header {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  width: 100%;
}
.tweet-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ===== 投稿者タイプバッジ（お店 / セラピスト） ===== */
.tweet-type-badge {
  display: inline-block;
  flex-shrink: 0;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  line-height: 1.4;
}
.tweet-type-badge--shop {
  background: linear-gradient(135deg, #2d6a4f, #1b4332);
  box-shadow: 0 2px 6px rgba(27, 67, 50, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.tweet-type-badge--cast {
  background: linear-gradient(135deg, #b5456e, #8b2252);
  box-shadow: 0 2px 6px rgba(139, 34, 82, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ===== ページリンク（アクション行右端） ===== */
.tweet-action--page-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.tweet-action--page-link:hover { opacity: 1; }
.tweet-action--page-link--shop { color: #2d6a4f; }
.tweet-action--page-link--cast { color: #b5456e; }
.tweet-page-link-arrow {
  display: inline-block;
  animation: tweet-arrow-nudge 1.2s ease-in-out infinite;
}
@keyframes tweet-arrow-nudge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ===== 本日出勤バッジ（装飾・エフェクト） ===== */
.tweet-badge-today {
  display: inline-block;
  font-size: 10px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #d4a762, #a87e38);
  padding: 4px 7px; border-radius: 4px;
  margin: 0 6px 0 4px; vertical-align: middle; line-height: 1.2;
  box-shadow: 0 0 8px rgba(212, 167, 98, 0.4);
  position: relative;
  overflow: hidden;
  animation: badge-pulse 2s infinite alternate ease-in-out;
}
/* キラキラ光るエフェクト */
.tweet-badge-today::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg) translateX(-150%);
  animation: badge-shine 3.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
/* ふわふわ拡大・縮小＆発光エフェクト */
@keyframes badge-pulse {
  0% { transform: scale(0.96); box-shadow: 0 0 4px rgba(212, 167, 98, 0.2); }
  100% { transform: scale(1.04); box-shadow: 0 0 12px rgba(212, 167, 98, 0.9); }
}
/* 光の走るタイミング */
@keyframes badge-shine {
  0%, 40% { transform: rotate(30deg) translateX(-150%); }
  90%, 100% { transform: rotate(30deg) translateX(150%); }
}
.tweet-card__shop {
  font-size: 0.78rem;
  color: var(--color-text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.tweet-card__sep {
  color: var(--color-text-light);
  font-size: 0.78rem;
}
.tweet-card__time {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* 本文 */
.tweet-card__body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
  word-break: break-word;
}

/* 本文折りたたみ・展開機能 */
.tweet-card__body-wrap {
  position: relative;
  max-height: 180px; /* 約7〜8行分 */
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tweet-card__body-mask {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(253,250,245,0) 0%, rgba(253,250,245,1) 100%);
  pointer-events: none;
  opacity: 0; /* デフォルトは無効 */
  transition: opacity 0.3s ease;
  z-index: 2;
}
/* 長い本文(has-more-text)で、かつ展開されていない(is-expandedでない)時のみマスクを表示 */
.tweet-card.has-more-text:not(.is-expanded) .tweet-card__body-mask {
  opacity: 1;
}
.tweet-read-more-wrap {
  text-align: left;
  margin-top: 4px;
}
.tweet-read-more-btn {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #666;
  background: linear-gradient(135deg, #fdfdfd 0%, #e6e6e6 100%);
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  padding: 4px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
  position: relative;
}
.tweet-read-more-btn:hover {
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 0%, #eeeeee 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1);
}
.tweet-read-more-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 続きを読むボタンクリック時の星はじけエフェクト */
.read-more-star {
  position: fixed;
  pointer-events: none;
  font-size: 18px;
  line-height: 1;
  color: #7dd9ff;                                   /* 水色 */
  text-shadow: 0 0 6px #ffe082, 0 0 12px rgba(212,167,98,0.7); /* ゴールドの光彩 */
  z-index: 10;
  animation: read-more-star-burst 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes read-more-star-burst {
  0% {
    transform: translate(0, 0) scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(var(--rot));
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx2), var(--dy2)) scale(0) rotate(var(--rot2));
    opacity: 0;
  }
}

/* メディア */
.tweet-card__media {
  width: 100%;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.tweet-media-item {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: #f5f5f5;
}

/* ツイート動画カスタムプレイヤー */
.tweet-video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
video.tweet-media-item {
  max-height: 400px;
  object-fit: contain;
  background: transparent;
}
.tweet-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
  z-index: 6;
  pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
}
.tweet-video-wrapper.is-paused .tweet-play-overlay {
  opacity: 1;
}
.tweet-play-btn-circle {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.tweet-play-btn-circle svg {
  width: 26px; height: 26px;
  color: #fff;
  margin-left: 3px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.tweet-mute-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 8;
  width: 40px; height: 40px;
  padding: 0;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.tweet-mute-btn:hover { background: rgba(0,0,0,0.8); }
.tweet-mute-btn svg { 
  width: 22px; height: 22px; 
  transform: translateY(1px);
}
.tweet-mute-btn .icon-muted   { display: block; }
.tweet-mute-btn .icon-unmuted { display: none; }
.tweet-mute-btn.unmuted .icon-muted   { display: none; }
.tweet-mute-btn.unmuted .icon-unmuted { display: block; }

/* 本文・アクションエリア */
.tweet-card__text {
  width: 100%;
  padding: 15px 12px 0;
}

/* サロン公式ツイートの文章部分（セラピストと同じスタイルに統一） */
.tweet-card__text--shop {}

/* サロン用日付バッジ */
.tweet-card__shop-date {
  margin-bottom: 10px;
}
.shop-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #eadfc7, #d7c39b);
  color: #4a3623;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 8px rgba(215, 195, 155, 0.3), inset 0 1px 1px rgba(255,255,255,0.5);
}
.shop-date-badge::before {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%234a3623" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

/* アクションボタン */
.tweet-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-bottom: 0;
}
.tweet-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tweet-action:hover {
  background: rgba(0,0,0,0.04);
}

/* リプライ */
.tweet-action--reply:hover {
  color: #4a8ba4;
  background: rgba(74,139,164,0.08);
}
.tweet-action--reply:hover svg {
  stroke: #4a8ba4;
}

/* いいね */
.tweet-action--like:hover {
  color: #e8758a;
  background: rgba(232,117,138,0.08);
}
.tweet-action--like:hover svg {
  stroke: #e8758a;
}
.tweet-action--like.is-liked {
  color: #e8758a;
}
.tweet-action--like.is-liked svg {
  stroke: #e8758a;
  fill: #e8758a;
  animation: like-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes like-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35) translateY(-2px); }
  65%  { transform: scale(0.9) translateY(1px); }
  100% { transform: scale(1) translateY(0); }
}

/* 共有 */
.tweet-action--share:hover {
  color: var(--color-accent);
  background: rgba(166,132,79,0.08);
}
.tweet-action--share:hover svg {
  stroke: var(--color-accent);
}

/* 空状態 */
.tweet-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .tweet-container {
    padding: 0;
  }
  .tweet-filter {
    margin-left: 12px;
    margin-right: 12px;
  }
  .tweet-card__avatar {
    width: 40px;
    height: 40px;
    margin-left: 12px;
  }
  .tweet-card__avatar img,
  .tweet-card__avatar-placeholder {
    width: 40px;
    height: 40px;
  }
  .tweet-card__shop {
    max-width: 100px;
  }
  .tweet-type-badge {
    margin-right: 12px;
  }
  .tweet-card__media {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .tweet-card__text {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tweet-media-item {
    max-height: none;
  }
  video.tweet-media-item {
    width: 100%;
    height: auto;
    max-height: 150vw; /* 3:4.5 (幅1:高さ1.5) の比率を上限にする */
    object-fit: cover;
  }
  /* サロン・セラピスト詳細ページ用（親のpadding:20pxを打ち消し全幅表示にする） */
  .detail-section .tweet-container {
    margin-left: -20px;
    margin-right: -20px;
    padding: 0;
  }
}

/* =====================================================
 * 投稿ボタン（FAB: X風固定ボタン）
 * ===================================================== */
.tweet-fab {
  position: fixed;
  top: 80px;
  right: calc((100vw - 600px) / 2 - 80px);
  z-index: 999 !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--color-accent), #c9a84e);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(166,132,79,0.4), 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.tweet-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(166,132,79,0.5), 0 3px 10px rgba(0,0,0,0.2);
}
.tweet-fab:active {
  transform: scale(0.95);
}
.tweet-fab svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 768px) {
  .tweet-fab {
    right: 20px;
    top: 140px;
    bottom: auto;
    width: 48px;
    height: 48px;
  }
  .tweet-fab svg {
    width: 20px;
    height: 20px;
  }
}

/* =====================================================
 * 投稿モーダル
 * ===================================================== */
.tweet-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.tweet-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.tweet-modal {
  background: var(--color-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: calc(80vh - 40px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  transform: translateY(-20px) scale(0.96);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tweet-modal-overlay.is-open .tweet-modal {
  transform: translateY(0) scale(1);
}

/* モーダルヘッダー */
.tweet-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.tweet-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease;
}
.tweet-modal__close:hover {
  background: rgba(0,0,0,0.06);
}
.tweet-modal__submit {
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, var(--color-accent), #c9a84e);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(166,132,79,0.3);
  letter-spacing: 0.04em;
}
.tweet-modal__submit:hover {
  box-shadow: 0 4px 14px rgba(166,132,79,0.45);
}

/* モーダルボディ */
.tweet-modal__body {
  padding: 18px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tweet-modal__textarea {
  width: 100%;
  flex: 1;
  min-height: 120px;
  border: none;
  outline: none;
  resize: none;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: transparent;
  font-family: inherit;
  overflow-y: auto;
}
.tweet-modal__textarea::placeholder {
  color: var(--color-text-light);
  opacity: 0.6;
}
.tweet-modal__textarea:focus::placeholder {
  opacity: 0;
}

/* モーダルフッター */
.tweet-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.tweet-modal__tools {
  display: flex;
  gap: 4px;
}
.tweet-modal__tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  transition: background 0.2s ease;
}
.tweet-modal__tool-btn:hover {
  background: rgba(166,132,79,0.1);
}
.tweet-modal__counter {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .tweet-modal-overlay {
    padding: 0;
    align-items: flex-start;
  }
  .tweet-modal {
    border-radius: 0 0 16px 16px;
    max-height: 80vh;
    height: auto;
    margin: 0;
  }
  .tweet-modal__preview {
    max-height: none;
    overflow-y: visible;
  }
}

/* --- モーダル：メディアプレビュー --- */
.tweet-modal__preview {
  position: relative;
  margin-top: 12px;
  border-radius: 12px;
  overflow-y: auto;
  max-height: 300px;
  background: #f5f2ee;
}
.tweet-modal__preview img,
.tweet-modal__preview video {
  width: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.tweet-modal__preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tweet-modal__preview-remove:hover {
  background: rgba(0,0,0,0.75);
}

/* --- 削除ボタン --- */
.tweet-action--delete {
  color: var(--color-text-light);
}
.tweet-action--delete:hover {
  color: #e74c3c;
}

/* --- ツールボタン注意書き --- */
.tweet-modal__tools-note {
  font-size: 0.7rem;
  color: var(--color-text-light);
  opacity: 0.7;
  margin-left: 4px;
  line-height: 1;
  align-self: center;
}

/* --- ドラッグ＆ドロップ --- */
.tweet-modal__body.is-dragover {
  background: rgba(166,132,79,0.06);
  border: 2px dashed rgba(166,132,79,0.4);
  border-radius: 8px;
}

/* --- 追加読み込みアニメーション --- */
.tweet-card {
  opacity: 1; /* javascriptから付与される前に消さないようにデフォルトは1 */
}
.tweet-card.is-revealing {
  opacity: 0;
  animation: revealCard 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}
@keyframes revealCard {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- もっと見るボタンのアニメーション --- */
.btn-load-more-tweets,
#btn-load-more-tweets,
#btn-load-more-timeline {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  text-decoration: none !important;
}
.btn-load-more-tweets:hover,
#btn-load-more-tweets:hover,
#btn-load-more-timeline:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 18px rgba(42, 28, 16, 0.6) !important;
  text-decoration: none !important;
}
@keyframes btn-heart-burst {
  0% { transform: translate(-50%, -50%) scale(0.5) rotate(0deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2) rotate(var(--rot)); opacity: 0; }
}
