/* Live Stats — ギフト分析（モバイル優先） */

.gift-page {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gift-page__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.gift-page__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.gift-page__month {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
}

.gift-total-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(236, 72, 153, 0.28);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(124, 58, 237, 0.08));
}

.gift-total-banner__label {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.52);
}

.gift-total-banner__value {
  margin: 0.12rem 0 0;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #f9a8d4;
}

.gift-total-banner__month {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
  white-space: nowrap;
}

.gift-hero-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.gift-hero-card {
  padding: 0.55rem 0.6rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gift-hero-card--top {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.12), transparent);
  border-color: rgba(236, 72, 153, 0.25);
}

.gift-hero-card--king {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.12), transparent);
  border-color: rgba(251, 191, 36, 0.28);
}

.gift-hero-card__label {
  margin: 0;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.48);
}

.gift-hero-card__name {
  margin: 0.12rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-hero-card__meta {
  margin: 0.1rem 0 0;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
}

.gift-panel {
  padding: 0.5rem 0.55rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gift-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.gift-panel__title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.gift-panel__head .gift-panel__title {
  margin-bottom: 0;
}

.gift-panel__meta {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.72rem;
  color: #f9a8d4;
}

.gift-rank-list,
.gift-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.gift-rank-row,
.gift-history-row {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gift-rank-row:last-child,
.gift-history-row:last-child {
  border-bottom: none;
}

.gift-rank-row__rank {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(236, 72, 153, 0.85);
  min-width: 2rem;
}

.gift-rank-row__name,
.gift-history-row__gifter {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-rank-row__meta,
.gift-history-row__gift {
  margin: 0.05rem 0 0;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.45);
}

.gift-rank-row__diamonds,
.gift-history-row__diamonds {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.gift-history-row {
  grid-template-columns: 3.2rem 1fr auto;
}

.gift-history-row__time {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.2;
}

.gift-trend-chart {
  min-height: 5.5rem;
}

.gift-trend-chart__empty {
  margin: 0;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.gift-trend-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  height: 5.5rem;
  padding-top: 0.25rem;
}

.gift-trend-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  min-width: 0;
}

.gift-trend-chart__bar {
  display: block;
  width: 100%;
  max-width: 1.1rem;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #f472b6, #a855f7);
  min-height: 3px;
}

.gift-trend-chart__label {
  font-size: 0.48rem;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .gift-page {
    margin-bottom: 0.25rem;
  }
}

.gift-period-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.gift-period-switch__btn {
  padding: 0.4rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.gift-period-switch__btn.is-active {
  color: #fce7f3;
  border-color: rgba(236, 72, 153, 0.35);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(124, 58, 237, 0.12));
}

.gift-panel--top3 {
  margin-top: 0.15rem;
}

.gift-top3-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gift-top3-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gift-top3-row--empty {
  justify-content: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.gift-top3-row__rank {
  font-size: 0.85rem;
}

.gift-top3-row__avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(124, 58, 237, 0.2);
}

.gift-top3-row__name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-top3-row__track {
  margin-top: 0.15rem;
  height: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gift-top3-row__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ec4899, #a855f7);
}

.gift-top3-row__diamonds {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f9a8d4;
  white-space: nowrap;
}
