:root {
  color-scheme: dark;
  --orange: #ff873c;
  --white: #faf8f5;
  --muted: #96918d;
  --line: #ffffff10;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: transparent !important; }
body { padding: 16px; color: var(--white); font-family: Inter, 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.card {
  opacity: .9;
  overflow: hidden;
  border: 1px solid #ffffff12;
  border-radius: 24px;
  background: #111111f7;
  box-shadow: 0 10px 28px #0004;
}
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.interaction { display: flex; align-items: center; gap: 18px; width: min(760px, 100%); padding: 25px 28px; animation: enter .3s ease; }
.avatar { position: relative; flex: none; display: grid; place-items: center; width: 60px; height: 60px; overflow: hidden; border: 2px solid #ffffff12; border-radius: 50%; background: #28211d; color: #f9b98f; font-size: 21px; font-weight: 700; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-name { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.025em; overflow-wrap: anywhere; }
.interaction-copy { flex: 1; min-width: 0; }
.interaction .eyebrow { width: fit-content; margin-bottom: 10px; padding: 5px 9px; border-radius: 7px; color: var(--orange); background: #ff873c12; font-size: 9px; letter-spacing: .06em; }
.message { margin: 8px 0 0; color: #d7d2ce; font-size: 20px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.gift-line { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.gift-line p { margin: 0; color: #d7d2ce; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.gift-icon { position: relative; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #ffffff06; }
.gift-icon img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.gift-count { display: inline-block; padding: 2px 7px; margin: 0 2px; border-radius: 6px; color: var(--orange); background: #ff873c14; font-size: .95em; font-weight: 800; font-variant-numeric: tabular-nums; }
.rankings { width: min(490px, 100%); padding: 26px; min-height: 420px; }
.rankings header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; }
.rankings h1 { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 750; letter-spacing: -.045em; }
.panel-symbol { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 16px; background: #ff873c12; font-size: 24px; }
.ranking-content { min-height: 280px; padding-top: 4px; opacity: 1; transform: translateY(0); transition: opacity .25s ease, transform .25s ease; }
.ranking-content.leaving { opacity: 0; transform: translateY(-8px); }
.ranking-row { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; padding: 10px 9px; border-radius: 13px; }
.ranking-row:first-child { background: #ff873c0c; }
.rank { display: grid; place-items: center; flex: none; width: 24px; color: #827c77; font-size: 21px; font-weight: 650; }
.ranking-row:nth-child(n+4) .rank { font-size: 13px; }
.ranking-row .avatar { width: 36px; height: 36px; font-size: 14px; border-width: 1px; }
.ranking-person { flex: 1; min-width: 0; }
.ranking-person .person-name { overflow: hidden; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.ranking-person small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.ranking-score { display: flex; align-items: center; gap: 6px; color: var(--white); font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.03em; white-space: nowrap; }
.score-emote { font-size: 13px; font-weight: 400; }
.rankings footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.dots { display: flex; gap: 5px; }
.dots i { display: block; width: 5px; height: 5px; border-radius: 5px; background: #ffffff25; }
.dots i.active { width: 18px; background: var(--orange); }
.empty { padding: 72px 12px; color: var(--muted); text-align: center; font-size: 15px; line-height: 1.5; }
.latest { display: flex; flex-direction: column; align-items: center; padding: 20px 0; text-align: center; }
.latest .avatar { width: 76px; height: 76px; margin-bottom: 15px; font-size: 28px; }
.latest .person-name { font-size: 24px; }
.latest .gift-line { justify-content: center; margin-top: 20px; padding: 14px 18px; border-radius: 18px; background: #ffffff04; }
.latest small { margin-top: 15px; color: var(--muted); font-size: 12px; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: .9; transform: translateY(0); } }
@media (max-width: 420px) {
  .rankings { padding: 20px; }
  .rankings h1 { font-size: 22px; }
  .ranking-row { gap: 8px; padding: 9px 4px; }
  .ranking-score { font-size: 16px; }
  .interaction { gap: 14px; padding: 20px; }
  .interaction .avatar { width: 48px; height: 48px; }
  .person-name, .message, .gift-line p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
