.current-pair {
  margin-bottom: 14px;
}

.boot-screen.is-hidden,
.boot-screen[hidden] {
  display: none;
}

.streak-panel {
  position: relative;
}

.streak-core {
  padding-right: min(138px, 34vw);
}

.streak-core span {
  max-width: min(330px, calc(100% - 24px));
}

.streak-panel::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  width: 120px;
  height: 136px;
  background: url("./chibi-fire.svg") center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42)) saturate(0.82) grayscale(0.28);
  opacity: 0.32;
  pointer-events: none;
  transform: translateY(8px) rotate(-3deg) scale(0.9);
  transform-origin: 50% 92%;
}

.streak-panel[data-status="live"]::after {
  opacity: 1;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.38)) drop-shadow(0 0 24px rgba(255, 174, 72, 0.34)) saturate(1.1);
  animation: chibiFireFloat 2.1s ease-in-out infinite;
}

.streak-panel[data-status="waiting"]::after {
  opacity: 0.58;
  animation: chibiFireFloat 3.2s ease-in-out infinite;
}

.streak-panel[data-status="burned"]::after,
.streak-panel[data-status="empty"]::after {
  opacity: 0.24;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.36)) grayscale(0.78) saturate(0.62);
}

.history-item {
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 0;
  padding: 0;
}

.history-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 70px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px 6px 8px 8px;
  text-align: left;
}

.history-fire {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(230, 232, 228, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.history-fire[aria-pressed="true"] {
  border-color: rgba(255, 208, 106, 0.72);
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 220, 122, 0.32), transparent 44%),
    rgba(255, 126, 62, 0.2);
  box-shadow:
    0 0 22px rgba(255, 103, 72, 0.36),
    0 0 34px rgba(255, 208, 106, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: scale(1.08);
}

.fire-emoji,
.fire-mark {
  display: grid;
  place-items: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.22rem;
  line-height: 1;
  opacity: 0.48;
  filter: grayscale(1) saturate(0.1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.08));
  transform: translateY(-1px);
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.fire-mark::before {
  content: "🔥";
}

.history-fire[aria-pressed="true"] .fire-emoji,
.history-fire[aria-pressed="true"] .fire-mark {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 126, 62, 0.58)) drop-shadow(0 0 16px rgba(255, 208, 106, 0.32));
  animation: emojiFirePop 1.05s ease-in-out infinite;
}

.reaction-count {
  display: none;
}

.history-item.has-fire {
  border-color: rgba(255, 208, 106, 0.34);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(255, 126, 62, 0.12);
}

@keyframes emojiFirePop {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(255, 126, 62, 0.58)) drop-shadow(0 0 16px rgba(255, 208, 106, 0.32));
    transform: translateY(-1px) scale(0.96) rotate(-2deg);
  }
  35% {
    filter: drop-shadow(0 0 14px rgba(255, 190, 92, 0.76)) drop-shadow(0 0 22px rgba(255, 103, 72, 0.34));
    transform: translateY(-4px) scale(1.14) rotate(4deg);
  }
  70% {
    filter: drop-shadow(0 0 10px rgba(255, 103, 72, 0.62)) drop-shadow(0 0 18px rgba(255, 208, 106, 0.24));
    transform: translateY(1px) scale(1.02) rotate(-5deg);
  }
}

@keyframes chibiFireFloat {
  0%, 100% {
    transform: translateY(6px) rotate(-3deg) scale(0.94);
  }
  35% {
    transform: translateY(-4px) rotate(2deg) scale(0.99);
  }
  70% {
    transform: translateY(2px) rotate(-1deg) scale(0.96);
  }
}

@media (max-width: 420px) {
  .streak-core {
    padding-right: 98px;
  }

  .streak-panel::after {
    right: -1px;
    bottom: 10px;
    width: 98px;
    height: 116px;
  }

  .history-item {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .history-fire {
    width: 36px;
    height: 36px;
    margin-right: 7px;
  }
}
