.box--kepu {
  width: min(96%, 920px);
  text-align: left;
}

.kepu-header {
  text-align: center;
  margin-bottom: clamp(24px, 5vw, 36px);
}

.kepu-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(20px, 5vw, 32px);
  line-height: 1.25;
  color: #9c62df;
  text-shadow:
    2px 2px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff;
  letter-spacing: 0.06em;
}

.kepu-version {
  margin: 8px 0 0;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 700;
  color: #9b94b0;
  letter-spacing: 0.12em;
}

.show-chart {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 4vw, 28px);
}

.show-row {
  display: grid;
  grid-template-columns: minmax(48px, 64px) 1fr;
  gap: clamp(6px, 1.5vw, 12px);
  align-items: start;
}

.show-row__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
}

.show-row__logo {
  width: 100%;
  max-width: 56px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.show-row__logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 4px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #7a6fa0;
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(215, 200, 255, 0.9);
  border-radius: 8px;
}

.show-row__name {
  font-size: clamp(9px, 2.2vw, 12px);
  font-weight: 800;
  color: #5a5870;
  text-align: center;
  line-height: 1.25;
}

.show-row__body {
  min-width: 0;
}

.score-labels {
  display: flex;
  width: 100%;
  margin-bottom: 4px;
  align-items: flex-end;
}

.score-label {
  flex: var(--w) 1 0;
  min-width: 0;
  padding: 0 1px;
  font-size: clamp(9px, 2.2vw, 11px);
  font-weight: 700;
  line-height: 1.3;
  color: #5a5870;
  text-align: center;
  white-space: normal;
  overflow: visible;
  word-break: break-all;
}

.score-label--narrow {
  font-size: clamp(8px, 1.9vw, 10px);
  line-height: 1.25;
}

.score-label--long {
  font-size: clamp(7.5px, 1.8vw, 9.5px);
  line-height: 1.2;
}

.score-label__pct {
  display: block;
  font-size: clamp(10px, 2.4vw, 12px);
  font-weight: 800;
  color: #8d7db8;
}

.score-bar {
  display: flex;
  width: 100%;
  height: clamp(14px, 3.5vw, 18px);
  overflow: hidden;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(90, 88, 112, 0.12);
}

.score-seg {
  flex: var(--w) 1 0;
  min-width: 2px;
}

.score-seg--1 { background: #f3d4ff; }
.score-seg--2 { background: #e4bcff; }
.score-seg--3 { background: #d4a4ff; }
.score-seg--4 { background: #c48ef5; }
.score-seg--5 { background: #b078eb; }
.score-seg--6 { background: #9c62df; }

.score-icons {
  display: flex;
  width: 100%;
  margin-top: 8px;
}

.score-above {
  display: flex;
  width: 100%;
  align-items: flex-end;
  margin-bottom: 4px;
}

.score-above__col {
  flex: var(--w) 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 1px;
}

.score-icons--above {
  margin-top: 0;
  margin-bottom: 4px;
}

.score-icons--above + .score-bar {
  margin-top: 0;
}

.score-icons__col {
  flex: var(--w) 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 0 2px;
}

.score-icons__span {
  flex: var(--w) 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 0 2px;
}

.score-icons__brace-wrap {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 6px);
}

.score-icons__brace {
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 700;
  line-height: 1;
  color: #b078eb;
  user-select: none;
}

.score-icons__apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.score-icons__col--vote-above {
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.score-vote-block--above {
  gap: 4px;
}

.score-icons__col--vote {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.score-vote-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.score-vote-block__label {
  font-size: clamp(8px, 1.9vw, 10px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #5a5870;
}

.score-vote-block__pct {
  display: block;
  font-size: clamp(10px, 2.4vw, 12px);
  font-weight: 800;
  color: #8d7db8;
}

.score-vote-block--above .score-vote-block__icons {
  flex-wrap: nowrap;
}

.score-vote-block__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.score-icon {
  width: clamp(22px, 5vw, 28px);
  height: clamp(22px, 5vw, 28px);
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
}

.show-row__logo:not([src]),
.show-row__logo[src=""],
.score-icon:not([src]),
.score-icon[src=""] {
  display: none;
}

.score-icon--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  min-width: clamp(22px, 5vw, 28px);
  min-height: clamp(22px, 5vw, 28px);
  font-size: clamp(8px, 1.8vw, 10px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: #6a6488;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(215, 200, 255, 0.75);
  border-radius: 6px;
}

.score-note {
  display: block;
  width: 100%;
  font-size: clamp(9px, 2.1vw, 11px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #8d7db8;
}

@media (max-width: 520px) {
  .show-row {
    grid-template-columns: 40px 1fr;
    gap: 6px;
  }

  .show-row__logo {
    max-width: 38px;
  }

  .show-row__name {
    font-size: 8px;
  }

  .score-label {
    font-size: 8px;
    line-height: 1.28;
  }

  .score-label--narrow {
    font-size: 7px;
  }

  .score-label--long {
    font-size: 6.5px;
    line-height: 1.18;
  }

  .score-label__pct {
    font-size: 9px;
  }
}
