/* Live Stats — ホーム3秒ダッシュボード */

.home-dashboard {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* プロフィール帯 */
.home-profile-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  padding: 0.15rem 0;
}

.home-profile-strip__name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.home-profile-strip__name-row .profile-league-badge--home {
  flex-shrink: 0;
  font-size: 0.58rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(236, 72, 153, 0.14));
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.15);
}

.home-profile-strip__avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.home-profile-strip__name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-profile-strip__handle {
  margin: 0.08rem 0 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
}

.profile-league-badge--home {
  flex-shrink: 0;
  font-size: 0.62rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}

/* 現在リーグのみ（段階表示なし） */
.league-current-panel {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0.5rem;
}

.league-current-panel__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--league-color) 45%, transparent);
  background: color-mix(in srgb, var(--league-color) 14%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--league-color) 22%, transparent);
}

.league-current-panel__code {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.league-current-panel__empty {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
}

/* 4指標 */
.home-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.home-stat-card {
  padding: 0.45rem 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  min-height: 4.2rem;
}

.home-stat-card--diamond {
  border-color: rgba(59, 130, 246, 0.28);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.02));
}

.home-stat-card--pk {
  border-color: rgba(168, 85, 247, 0.28);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.14), rgba(255, 255, 255, 0.02));
}

.home-stat-card--streak {
  border-color: rgba(251, 146, 60, 0.28);
  background: linear-gradient(160deg, rgba(234, 88, 12, 0.12), rgba(255, 255, 255, 0.02));
}

.home-stat-card--gifter {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.02));
}

.home-stat-card__label {
  margin: 0;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}

.home-stat-card__icon {
  font-size: 0.72rem;
  line-height: 1;
}

.home-stat-card__value {
  margin: 0.18rem 0 0;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: clamp(1rem, 4.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.1;
}

.home-stat-card--diamond .home-stat-card__value {
  color: #93c5fd;
}

.home-stat-card__value--name {
  font-family: inherit;
  font-size: clamp(0.72rem, 3.2vw, 0.88rem);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-stat-card__sub {
  margin: 0.14rem 0 0;
  font-size: 0.54rem;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-stat-card__sub--up {
  color: #6ee7b7;
}

.home-stat-card__sub--down {
  color: #fca5a5;
}

/* クイックナビ */
.home-quick-nav {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.15rem 0;
}

.home-quick-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0.35rem 0.2rem;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.52rem;
}

.home-quick-nav__item--active {
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.18);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}

.home-quick-nav__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.home-quick-nav__label {
  white-space: nowrap;
  font-size: 0.48rem;
}

/* 直近PK（コンパクトリスト） */
.home-pk-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-pk-recent {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-pk-recent__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.home-pk-recent__badge--win {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.home-pk-recent__badge--lose {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.home-pk-recent__opp {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.home-pk-recent__time {
  margin: 0.1rem 0 0;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-pk-recent__score {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-pk-recent__score--win {
  color: #93c5fd;
}

.home-pk-recent__score--lose {
  color: #fca5a5;
}

/* ホーム上部 — 直近PK / VS */
.home-recent-battles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.home-recent-battle-card {
  padding: 0.5rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.1), rgba(255, 255, 255, 0.02));
}

.home-recent-battle-card--vs {
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.02));
}

.home-recent-battle-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.home-recent-battle-card__title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.home-recent-battle-card__link {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  line-height: 1;
  padding: 0.1rem 0.2rem;
  cursor: pointer;
}

.home-battle-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 4.5rem;
}

.home-battle-chip--empty {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 0.5rem 0;
}

.home-battle-chip__top {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.home-battle-chip__result {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.home-battle-chip__result--win {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
}

.home-battle-chip__result--lose {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.15);
}

.home-battle-chip__rank {
  font-size: 0.58rem;
  font-weight: 700;
  color: #fbbf24;
}

.home-battle-chip__format,
.home-battle-chip__vs {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-battle-chip__score {
  margin: 0;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.home-battle-chip__diff {
  margin-left: 0.25rem;
  font-size: 0.68rem;
  color: #6ee7b7;
}

.home-battle-chip--lose .home-battle-chip__diff {
  color: #fca5a5;
}

.home-battle-chip__time {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.4);
}

/* セクションブロック */
.home-block {
  padding: 0.55rem 0.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.home-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  position: relative;
  z-index: 2;
}

.home-block__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}

.home-block__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.75rem;
  margin: -0.35rem -0.25rem -0.35rem 0;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  color: #bfdbfe;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(147, 197, 253, 0.35);
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.home-block__action-chevron {
  font-size: 0.82rem;
  line-height: 1;
  opacity: 0.95;
}

.home-block__action:active {
  transform: scale(0.97);
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(147, 197, 253, 0.65);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.home-block__link {
  font-size: 0.58rem;
  color: rgba(147, 197, 253, 0.85);
  text-decoration: none;
  white-space: nowrap;
}

.home-league-snippet {
  margin: 0;
  padding: 0.15rem 0.05rem 0.25rem;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fdba74;
}

.home-league-snippet[data-real='0'] {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
}

button.profile-league-badge {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(168, 85, 247, 0.35);
}

button.profile-league-badge:active {
  transform: scale(0.97);
}

.home-block__empty {
  margin: 0;
  padding: 0.65rem 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
  list-style: none;
}

/* 直近PK */
.home-pk-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.15rem;
}

.home-pk-hero__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.home-pk-hero__side--opp {
  text-align: center;
}

.home-pk-hero__badge {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.home-pk-hero__badge--win {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.18);
}

.home-pk-hero__badge--lose {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.18);
}

.home-pk-hero__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.home-pk-hero__avatar--opp {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.35);
}

.home-pk-hero__name {
  margin: 0.08rem 0 0;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.home-pk-hero__score {
  margin: 0;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.home-pk-hero__score--win {
  color: #93c5fd;
}

.home-pk-hero__score--lose {
  color: #fca5a5;
}

.home-pk-hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0 0.15rem;
}

.home-pk-hero__vs {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.home-pk-hero__opp {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.home-pk-hero__time {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

/* 3人個人 / 4人個人 — 順位表（ホーム） */
.home-pk-standings {
  padding: 0.15rem 0;
}

.home-pk-standings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.home-pk-standings__format {
  font-size: 0.68rem;
  font-weight: 700;
  color: #c4b5fd;
}

.home-pk-standings__time {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.home-pk-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.home-pk-rank-row {
  display: grid;
  grid-template-columns: 2rem 1.6rem 1fr auto;
  align-items: center;
  gap: 0.25rem 0.4rem;
  padding: 0.2rem 0.15rem;
  border-radius: 8px;
}

.home-pk-rank-row--win {
  background: rgba(59, 130, 246, 0.1);
}

.home-pk-rank-row--self:not(.home-pk-rank-row--win) {
  background: rgba(124, 58, 237, 0.12);
}

.home-pk-rank-row__badge {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
}

.home-pk-rank-row__badge--win {
  color: #93c5fd;
}

.home-pk-rank-row__rank {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.home-pk-rank-row--win .home-pk-rank-row__rank {
  color: #93c5fd;
}

.home-pk-rank-row__name {
  font-size: 0.68rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-pk-rank-row__score {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.home-pk-rank-row--win .home-pk-rank-row__score {
  color: #93c5fd;
}

/* PKサマリー 2×4 */
.home-pk-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.home-pk-summary__cell {
  padding: 0.4rem 0.25rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  text-align: center;
}

.home-pk-summary__label {
  margin: 0;
  font-size: 0.48rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-pk-summary__value {
  margin: 0.1rem 0 0;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-pk-summary__cell--win .home-pk-summary__value {
  color: #93c5fd;
}

.home-pk-summary__cell--lose .home-pk-summary__value {
  color: #fca5a5;
}

.home-pk-summary__cell--streak .home-pk-summary__value {
  color: #fdba74;
}

/* 今月TOPギフター */
.home-gifter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-gifter-row {
  display: grid;
  grid-template-columns: 1.4rem 1.8rem 1fr auto;
  align-items: center;
  gap: 0.35rem;
}

.home-gifter-row__rank {
  font-size: 0.85rem;
  text-align: center;
}

.home-gifter-row__avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(236, 72, 153, 0.28);
}

.home-gifter-row__name {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-gifter-row__track {
  margin-top: 0.18rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.home-gifter-row__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.home-gifter-row__diamonds {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  color: #93c5fd;
}

/* PKブロック */
.home-pk-block {
  padding: 0.5rem 0.55rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-pk-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.home-pk-block__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-pk-block__link {
  font-size: 0.62rem;
  color: rgba(147, 197, 253, 0.85);
  text-decoration: none;
}

.home-pk-block__empty {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 0.5rem 0;
}

.home-pk-block__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* 直近PKマッチ */
.home-pk-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.home-pk-match__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.home-pk-match__side--opp {
  text-align: center;
}

.home-pk-match__avatar {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.home-pk-match__avatar--opp {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.35);
}

.home-pk-match__badge {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
}

.home-pk-match__badge--win {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
}

.home-pk-match__badge--lose {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.18);
}

.home-pk-match__score {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.home-pk-match__name {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-pk-match__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.home-pk-match__vs {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.35);
}

.home-pk-match__time {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

/* PKサマリー */
.home-pk-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
}

.home-pk-summary__cell {
  padding: 0.35rem 0.3rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.home-pk-summary__cell--win .home-pk-summary__value {
  color: #6ee7b7;
}

.home-pk-summary__cell--lose .home-pk-summary__value {
  color: #fca5a5;
}

.home-pk-summary__cell--streak .home-pk-summary__value {
  color: #fdba74;
}

.home-pk-summary__label {
  margin: 0;
  font-size: 0.48rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-pk-summary__value {
  margin: 0.08rem 0 0;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
}

/* シンプルリーグ（リーグタブ） */
.league-simple {
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.league-simple__head {
  margin-bottom: 0.55rem;
}

.league-simple__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.league-simple__period {
  margin: 0.15rem 0 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
}

.league-tier-ladder--simple {
  padding: 0.75rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.league-tier-ladder--simple .league-tier-ladder__row {
  display: block;
  grid-template-columns: none;
  padding: 0;
  border-bottom: none;
  background: transparent;
}

.league-tier-ladder--simple .league-tier-ladder__track {
  justify-content: center;
  padding: 0.15rem 0;
}

.league-tier-ladder--tiktok {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.15rem;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.league-tier-ladder__row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.5rem 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.league-tier-ladder__row:last-child {
  border-bottom: none;
}

.league-tier-ladder__row--active {
  background: rgba(255, 255, 255, 0.04);
}

.league-tier-gem {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
}

.league-tier-gem__shape {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.35rem;
  line-height: 1;
  opacity: 0.95;
}

.league-tier-gem__letter {
  position: relative;
  z-index: 1;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.league-tier-gem--a .league-tier-gem__shape { color: #fbbf24; filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.45)); }
.league-tier-gem--b .league-tier-gem__shape { color: #93c5fd; filter: drop-shadow(0 0 6px rgba(147, 197, 253, 0.4)); }
.league-tier-gem--c .league-tier-gem__shape { color: #fb923c; filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.4)); }
.league-tier-gem--d .league-tier-gem__shape { color: #c4886a; filter: drop-shadow(0 0 6px rgba(196, 136, 106, 0.4)); }

.league-tier-ladder__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.12rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
  min-width: 0;
}

.league-tier-ladder__track::-webkit-scrollbar {
  display: none;
}

.league-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.22rem 0.42rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  flex-shrink: 0;
}

.league-pill__gem {
  font-size: 0.42rem;
  line-height: 1;
  opacity: 0.85;
}

.league-pill__code {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
}

.league-pill--tier-a .league-pill__gem, .league-pill--tier-a .league-pill__code { color: #fde68a; }
.league-pill--tier-b .league-pill__gem, .league-pill--tier-b .league-pill__code { color: #bfdbfe; }
.league-pill--tier-c .league-pill__gem, .league-pill--tier-c .league-pill__code { color: #fed7aa; }
.league-pill--tier-d .league-pill__gem, .league-pill--tier-d .league-pill__code { color: #d4a574; }

.league-pill--current {
  border-color: var(--pill-color);
  background: color-mix(in srgb, var(--pill-color) 18%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--pill-color) 28%, transparent);
}

.league-pill--tier-a { --pill-color: #fbbf24; }
.league-pill--tier-b { --pill-color: #93c5fd; }
.league-pill--tier-c { --pill-color: #fb923c; }
.league-pill--tier-d { --pill-color: #c4886a; }

.league-pill--current .league-pill__code {
  color: #fff;
}

.league-pill-arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid rgba(255, 255, 255, 0.22);
  margin: 0 0.05rem;
}

.league-simple__badge,
.league-simple__code {
  display: none;
}

@media (max-width: 960px) {
  .home-legacy-sections,
  .dash-today-battle-wrap,
  #week-summary-section,
  #monthly-growth-section,
  .growth-hero--compact {
    display: none !important;
  }

  .home-dashboard {
    order: 1;
    gap: 0.5rem;
  }

  .home-profile-strip {
    display: flex;
  }

  .home-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .home-stat-card {
    min-height: 5rem;
    padding: 0.55rem 0.5rem;
    border-radius: 12px;
  }

  .home-quick-nav {
    display: grid;
  }

  .home-pk-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 961px) {
  .home-profile-strip {
    display: none;
  }
}

@media (max-width: 380px) {
  .home-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-pk-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
