/* Rozet kazanma kutlaması — tam ekran sahne (badge-celebrate.js) */
.bc {
  --b1: #fde68a;
  --b2: #f472b6;
  --b3: #6b21a8;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  /* kısa ekranda kart taşarsa üstten kesilmesin, kaydırılabilsin */
  place-items: safe center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 104px 16px 24px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #fff;
  isolation: isolate;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.bc.is-in { opacity: 1; }
.bc.is-out { opacity: 0; transition-duration: 0.45s; }

.bc__backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 42%, color-mix(in srgb, var(--b2) 38%, transparent) 0%, transparent 70%),
    radial-gradient(120% 90% at 50% 50%, rgba(17, 19, 25, 0.82) 0%, rgba(6, 6, 10, 0.94) 100%);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
}
.bc__canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.bc__card {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 26px 24px;
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(22, 20, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--b2) 30%, transparent) inset,
    0 30px 80px -20px color-mix(in srgb, var(--b2) 55%, transparent),
    0 18px 50px rgba(0, 0, 0, 0.55);
  transform: translateY(26px) scale(0.92);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2, 1.3, 0.35, 1), opacity 0.45s ease;
  transition-delay: 0.15s;
}
.bc.is-in .bc__card { transform: none; opacity: 1; }
.bc.is-out .bc__card { transform: translateY(14px) scale(0.96); transition-delay: 0s; }
.bc__card::before {
  /* üst kenarda ışıltılı çizgi */
  content: "";
  position: absolute;
  top: -1px;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--b1), #fff, var(--b1), transparent);
  filter: blur(0.3px);
}

/* Rozet sahnesi */
.bc__stage {
  position: relative;
  width: 210px;
  height: 210px;
  margin: -96px auto 6px;
  display: grid;
  place-items: center;
}
.bc__rays {
  position: absolute;
  inset: -70px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--b1) 55%, transparent) 0deg 6deg,
    transparent 6deg 22deg
  );
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%);
  mask: radial-gradient(circle, #000 18%, transparent 68%);
  opacity: 0;
  animation: bc-rays 18s linear infinite;
  transition: opacity 0.8s ease 0.5s;
}
.bc.is-in .bc__rays { opacity: 0.9; }
.bc__halo {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--b1) 85%, #fff) 0%, color-mix(in srgb, var(--b2) 60%, transparent) 40%, transparent 70%);
  filter: blur(14px);
  opacity: 0;
  animation: bc-halo 2.8s ease-in-out 0.9s infinite;
}
.bc.is-in .bc__halo { opacity: 0.85; }
.bc__ring {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--b1) 80%, #fff);
  opacity: 0;
}
.bc.is-in .bc__ring { animation: bc-ring 1.4s cubic-bezier(0.15, 0.7, 0.3, 1) 0.55s forwards; }
.bc.is-in .bc__ring--2 { animation-delay: 0.8s; }

.bc__badge {
  position: relative;
  z-index: 2;
  transform: scale(0) rotateY(-540deg);
  transform-style: preserve-3d;
}
.bc.is-in .bc__badge {
  animation:
    bc-badge-in 1.15s cubic-bezier(0.18, 1.25, 0.4, 1) 0.25s forwards,
    bc-float 4s ease-in-out 1.6s infinite;
}
.bc__badge .podyum-badge { --s: 132px; }
.bc__badge .podyum-badge.is-earned {
  filter:
    drop-shadow(0 0 22px color-mix(in srgb, var(--b2) 80%, transparent))
    drop-shadow(0 12px 24px color-mix(in srgb, var(--b3) 70%, transparent));
}

/* Işıltı yıldızları */
.bc__spark {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px var(--b1));
  opacity: 0;
}
.bc.is-in .bc__spark { animation: bc-twinkle 2.4s ease-in-out infinite; }
.bc__spark:nth-child(1) { top: 16%; left: 12%; animation-delay: 1.1s !important; }
.bc__spark:nth-child(2) { top: 8%; right: 16%; width: 10px; height: 10px; animation-delay: 1.6s !important; }
.bc__spark:nth-child(3) { bottom: 18%; right: 6%; animation-delay: 2s !important; }
.bc__spark:nth-child(4) { bottom: 10%; left: 18%; width: 9px; height: 9px; animation-delay: 1.35s !important; }

/* Metin */
.bc__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--b1) 80%, #fff);
  opacity: 0;
  transform: translateY(8px);
}
.bc__eyebrow .material-symbols-outlined { font-size: 16px; font-variation-settings: "FILL" 1; }
.bc__title {
  margin: 8px 0 4px;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #fff 0%, var(--b1) 30%, #fff 50%, var(--b1) 70%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}
.bc.is-in .bc__title { animation: bc-text-in 0.6s ease 0.95s forwards, bc-shimmer 3.2s linear 1.6s infinite; }
.bc.is-in .bc__eyebrow { animation: bc-text-in 0.5s ease 0.8s forwards; }
.bc__rarity {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--b2), var(--b3));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 6px 18px color-mix(in srgb, var(--b2) 45%, transparent);
  opacity: 0;
}
.bc--legendary .bc__rarity {
  background: linear-gradient(135deg, #fde68a, #f59e0b 45%, #f472b6);
  color: #3b0764;
}
.bc__desc {
  margin: 14px auto 0;
  max-width: 320px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(226, 226, 235, 0.86);
  opacity: 0;
}
.bc__goal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  opacity: 0;
}
.bc__goal .material-symbols-outlined { font-size: 18px; color: #34d399; font-variation-settings: "FILL" 1; }
.bc.is-in .bc__rarity { animation: bc-text-in 0.5s ease 1.1s forwards; }
.bc.is-in .bc__desc { animation: bc-text-in 0.5s ease 1.25s forwards; }
.bc.is-in .bc__goal { animation: bc-text-in 0.5s ease 1.4s forwards; }

.bc__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  opacity: 0;
}
.bc.is-in .bc__actions { animation: bc-text-in 0.5s ease 1.55s forwards; }
.bc__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bc__btn:active { transform: scale(0.97); }
/* Butonlar kazanılan rozetin renklerini taşır */
.bc__btn--ghost {
  color: color-mix(in srgb, var(--b1) 70%, #fff);
  background: color-mix(in srgb, var(--b2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--b2) 45%, transparent);
}
.bc__btn--ghost:hover { background: color-mix(in srgb, var(--b2) 22%, transparent); }
.bc__btn--main {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 0;
  text-shadow: 0 1px 2px color-mix(in srgb, var(--b3) 70%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--b1) 35%, var(--b2)) 0%, var(--b2) 45%, color-mix(in srgb, var(--b2) 45%, var(--b3)) 100%);
  box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--b2) 70%, transparent), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}
.bc__btn--main::after {
  /* butonda gezinen ışıltı */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: badge-sweep 3.6s ease-in-out 2s infinite;
  pointer-events: none;
}
.bc__btn--main:hover { box-shadow: 0 14px 34px -6px color-mix(in srgb, var(--b2) 85%, transparent), 0 0 0 1px rgba(255, 255, 255, 0.32) inset; }
.bc__btn .material-symbols-outlined { font-size: 19px; }

.bc__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.bc__close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.bc__count {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

/* Efsanevi: kartın çevresinde dönen altın ışık */
.bc--legendary .bc__card::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 30px;
  background: conic-gradient(from var(--bc-a, 0deg), transparent 0 70%, #fde68a 80%, #f472b6 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 2px;
  animation: bc-orbit 3.5s linear infinite;
}
@property --bc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@keyframes bc-rays { to { transform: rotate(360deg); } }
@keyframes bc-halo { 0%, 100% { transform: scale(0.92); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes bc-ring { 0% { transform: scale(0.6); opacity: 0.95; } 100% { transform: scale(2.3); opacity: 0; border-width: 0.5px; } }
@keyframes bc-badge-in {
  0% { transform: scale(0) rotateY(-540deg); }
  60% { transform: scale(1.18) rotateY(18deg); }
  80% { transform: scale(0.96) rotateY(-6deg); }
  100% { transform: scale(1) rotateY(0); }
}
@keyframes bc-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes bc-twinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes bc-text-in { to { opacity: 1; transform: none; } }
@keyframes bc-shimmer { to { background-position: -220% 0; } }
@keyframes bc-orbit { to { --bc-a: 360deg; } }

@media (max-width: 480px) {
  .bc__card { padding: 30px 18px 18px; border-radius: 24px; }
  .bc__stage { width: 180px; height: 180px; margin-top: -84px; }
  .bc__badge .podyum-badge { --s: 112px; }
  .bc__actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  .bc *, .bc *::before, .bc *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .bc__badge { transform: none; }
  .bc__rays { animation: none; }
}

/* ================================================================== sıra yükseltme */
.rk__stage { margin-bottom: 14px; }
.rk__hero {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
}
.rk__avatar {
  position: relative;
  display: block;
  width: 118px;
  height: 118px;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from var(--bc-a, 0deg), var(--b1), var(--b2), var(--b3), var(--b2), var(--b1));
  box-shadow:
    0 0 0 3px rgba(17, 19, 25, 0.9),
    0 0 34px color-mix(in srgb, var(--b2) 75%, transparent),
    0 14px 30px color-mix(in srgb, var(--b3) 70%, transparent);
  animation: bc-orbit 4s linear infinite;
}
.rk__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #111319;
  background: #1d1b26;
}
.rk__crown {
  position: absolute;
  top: -30px;
  left: 50%;
  translate: -50% 0;
  font-size: 44px !important;
  color: #fde68a;
  font-variation-settings: "FILL" 1, "wght" 700;
  filter: drop-shadow(0 0 12px rgba(253, 230, 138, 0.9)) drop-shadow(0 4px 6px rgba(120, 53, 15, 0.8));
  opacity: 0;
  transform: translateY(-16px) rotate(-14deg) scale(0.6);
}
.bc.is-in .rk__crown { animation: rk-crown 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) 2.2s forwards; }
.rk__chip {
  position: absolute;
  bottom: -16px;
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--b1) 30%, var(--b2)), var(--b3));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 22px -4px color-mix(in srgb, var(--b2) 80%, transparent);
  font-variant-numeric: tabular-nums;
}
.rk__chip .material-symbols-outlined { font-size: 20px; font-variation-settings: "FILL" 1; }
.rk__chip.is-done { animation: rk-pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1); }

/* Avatarın altından yükselen hız çizgileri */
.rk__trail {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 120px;
  height: 120px;
  translate: -50% 0;
  pointer-events: none;
}
.rk__trail i {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 60px;
  border-radius: 3px;
  background: linear-gradient(to top, transparent, color-mix(in srgb, var(--b1) 90%, #fff));
  opacity: 0;
}
.rk__trail i:nth-child(1) { left: 14%; }
.rk__trail i:nth-child(2) { left: 32%; height: 80px; }
.rk__trail i:nth-child(3) { left: 50%; height: 96px; }
.rk__trail i:nth-child(4) { left: 68%; height: 80px; }
.rk__trail i:nth-child(5) { left: 86%; }
.bc.is-in .rk__trail i { animation: rk-streak 0.9s ease-out infinite; }
.bc.is-in .rk__trail i:nth-child(2) { animation-delay: 0.15s; }
.bc.is-in .rk__trail i:nth-child(3) { animation-delay: 0.05s; }
.bc.is-in .rk__trail i:nth-child(4) { animation-delay: 0.25s; }
.bc.is-in .rk__trail i:nth-child(5) { animation-delay: 0.35s; }
/* sayaç bittikten sonra çizgiler söner */
.bc.is-in .rk__trail { animation: rk-fade 0.6s ease 2.4s forwards; }

/* Avatar alttan uçarak gelir */
.bc.is-in .rk__hero {
  animation:
    rk-launch 1.1s cubic-bezier(0.2, 1.15, 0.35, 1) 0.2s forwards,
    bc-float 4s ease-in-out 2.4s infinite;
}
.rk__hero { transform: translateY(140px) scale(0.5); opacity: 0; }

.rk__who {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12.5px;
}

/* Merdiven: geride kalanlar */
.rk__ladder {
  list-style: none;
  margin: 16px 0 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  opacity: 0;
}
.bc.is-in .rk__ladder { animation: bc-text-in 0.4s ease 1.3s forwards; }
.rk__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.04);
}
.rk__row img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #1d1b26;
}
.rk__row b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.rk__pos {
  width: 34px;
  flex-shrink: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(226, 226, 235, 0.55);
}
.rk__pts {
  font-size: 12px;
  font-weight: 700;
  color: rgba(226, 226, 235, 0.6);
  font-variant-numeric: tabular-nums;
}
.rk__up, .rk__down { font-size: 18px !important; }
.rk__up { color: #34d399; }
.rk__down { color: rgba(248, 113, 113, 0.75); }
.rk__row--me {
  position: relative;
  z-index: 2;
  color: #fff;
  background: linear-gradient(100deg, color-mix(in srgb, var(--b2) 42%, transparent), color-mix(in srgb, var(--b3) 55%, transparent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--b1) 50%, transparent) inset, 0 8px 22px -8px color-mix(in srgb, var(--b2) 90%, transparent);
  /* aşağıdan geride kalanların arasından yukarı süzülür */
  transform: translateY(calc(var(--rk-from, 1) * 50px));
}
.rk__row--me .rk__pos { color: color-mix(in srgb, var(--b1) 80%, #fff); }
.rk__row--me .rk__pts { color: #fff; }
.rk__row--me img { box-shadow: 0 0 0 2px var(--b1); }
.bc.is-in .rk__row--me { animation: rk-climb 1s cubic-bezier(0.3, 1.25, 0.4, 1) 1.45s forwards; }
.rk__row--out { transform: translateY(-50px); }
.bc.is-in .rk__row--out { animation: rk-drop 1s cubic-bezier(0.3, 1.1, 0.4, 1) 1.45s forwards; }
.rk__more {
  padding: 2px 10px 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(226, 226, 235, 0.55);
  text-align: center;
}
.rk__city { margin-top: 12px; }
.rk__city .material-symbols-outlined { color: #f472b6; }

@keyframes rk-launch {
  0% { transform: translateY(140px) scale(0.5); opacity: 0; }
  55% { transform: translateY(-14px) scale(1.08); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes rk-streak {
  0% { transform: translateY(30px) scaleY(0.4); opacity: 0; }
  30% { opacity: 0.9; }
  100% { transform: translateY(-70px) scaleY(1); opacity: 0; }
}
@keyframes rk-fade { to { opacity: 0; } }
@keyframes rk-pop { 0% { scale: 1; } 40% { scale: 1.3; } 100% { scale: 1; } }
@keyframes rk-crown { to { opacity: 1; transform: none; } }
@keyframes rk-climb { to { transform: translateY(0); } }
@keyframes rk-drop { to { transform: translateY(0); opacity: 0.8; } }

@media (max-width: 480px) {
  .rk__avatar { width: 100px; height: 100px; }
  .rk__hero { width: 110px; height: 110px; }
  .rk__row { padding: 6px 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk__hero, .rk__row--me, .rk__row--out { transform: none; opacity: 1; }
}

/* Yarışmacının "sıra yükseldin" ekranı: seni yükselten kişi */
.rk__by {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(226, 226, 235, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid color-mix(in srgb, var(--b1) 45%, transparent);
  opacity: 0;
}
.bc.is-in .rk__by { animation: bc-text-in 0.5s ease 1.1s forwards; }
.rk__by img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--b2); }
.rk__by b { color: #fff; font-weight: 800; }
/* Teşekkür butonu durumları */
.bc__btn--main.is-busy { opacity: 0.75; cursor: progress; }
.bc__btn--main.is-done { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 26px -8px rgba(16, 185, 129, 0.8); }

/* ================================================================ Teşekkür aldın: sağ altta kalp atışı
   Kutlama ekranından (.bc) da üstte durur. */
.thx-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.thx {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(340px, calc(100vw - 36px));
  padding: 14px 40px 14px 14px;
  border-radius: 22px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  pointer-events: auto;
  border: 1px solid transparent;
  background:
    radial-gradient(80% 120% at 0% 50%, rgba(244, 63, 94, 0.35), transparent 70%),
    linear-gradient(170deg, #2a1020, #160b18) padding-box,
    linear-gradient(135deg, #fda4af, #f43f5e 45%, #f472b6) border-box;
  box-shadow: 0 22px 50px -14px rgba(244, 63, 94, 0.75), 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px) scale(0.85);
  transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.2, 1.5, 0.35, 1);
}
.thx.is-in { opacity: 1; transform: none; }
.thx.is-out { opacity: 0; transform: translateX(40px) scale(0.95); transition-duration: 0.4s; }
.thx__heart {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
}
.thx__big {
  position: relative;
  z-index: 2;
  font-size: 46px;
  line-height: 1;
  filter: drop-shadow(0 0 14px rgba(244, 63, 94, 0.85));
  animation: thx-beat 1s ease-in-out 0.25s 6;
}
.thx__ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid #fb7185;
  opacity: 0;
  animation: thx-ring 1s ease-out 0.25s 6;
}
.thx__ring--2 { animation-delay: 0.45s; }
.thx__floats { position: absolute; inset: 0; pointer-events: none; }
.thx__floats i {
  position: absolute;
  left: 50%;
  bottom: 30%;
  font-style: normal;
  font-size: calc(16px * var(--s, 1));
  opacity: 0;
  animation: thx-float 2.2s ease-out var(--d, 0s) forwards;
}
.thx__body { min-width: 0; flex: 1; }
.thx__who { display: flex; align-items: center; gap: 7px; min-width: 0; }
.thx__who img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #f43f5e;
}
.thx__who b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
}
.thx__text {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #fff, #fda4af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.thx__sub { display: block; margin-top: 2px; font-size: 11.5px; color: rgba(255, 228, 230, 0.7); }
.thx__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.thx__close:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.thx__close .material-symbols-outlined { font-size: 16px; }

@keyframes thx-beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.22); }
  70% { transform: scale(1); }
}
@keyframes thx-ring { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2); opacity: 0; } }
@keyframes thx-float {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x, 0px)), -120px) scale(1); }
}
@media (max-width: 480px) {
  .thx-host { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .thx__big, .thx__ring, .thx__floats i { animation: none; }
}
