.summary-screen {
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  animation: screen-in 300ms var(--ease-out) both;
}

.summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.summary-heading h2 {
  margin: 7px 0 0;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.06em;
}

.summary-record {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
}

.summary-hero {
  padding: 22px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.summary-hero > span {
  font-size: 10px;
  font-weight: 750;
  opacity: .58;
}

.summary-hero > div {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 8px;
}

.summary-hero strong {
  font-size: 72px;
  line-height: .8;
  letter-spacing: -.08em;
}

.summary-hero small {
  font-size: 11px;
  font-weight: 800;
  opacity: .48;
}

.summary-hero p {
  max-width: 76%;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  opacity: .7;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.summary-stats > div {
  min-height: 66px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(120, 120, 120, .09);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-stats span {
  font-size: 9px;
  font-weight: 700;
  opacity: .48;
}

.summary-stats strong {
  font-size: 15px;
  letter-spacing: -.03em;
}

.summary-rounds-block {
  padding: 15px 16px 14px;
  border: 1px solid rgba(120, 120, 120, .14);
  border-radius: 17px;
}

.summary-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.summary-section-title span {
  font-size: 11px;
  font-weight: 800;
}

.summary-section-title small {
  font-size: 9px;
  opacity: .4;
}

.summary-rounds {
  height: 80px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 5px;
}

.summary-round {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.summary-round i {
  width: 100%;
  height: calc(var(--score) * .52%);
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  background: var(--bar-color);
  transform-origin: bottom;
  animation: summary-bar-in 480ms var(--ease-out) both;
  animation-delay: var(--delay);
}

.summary-round b {
  font-size: 8px;
}

.summary-round small {
  font-size: 7px;
  opacity: .42;
}

.summary-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.summary-actions .primary-button {
  grid-column: 1 / -1;
  margin-top: 0;
}

.summary-secondary-button,
.summary-home-button {
  min-height: 42px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 750;
}

.summary-secondary-button {
  border: 1px solid rgba(120, 120, 120, .18);
  background: rgba(120, 120, 120, .08);
}

.summary-home-button {
  border: 0;
  background: transparent;
  opacity: .5;
}

.summary-secondary-button:active,
.summary-home-button:active {
  transform: scale(.97);
}

@keyframes summary-bar-in {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .summary-screen {
    padding: 24px 20px 18px;
    gap: 14px;
  }

  .summary-heading h2 {
    font-size: 34px;
  }

  .summary-hero {
    padding: 18px;
  }

  .summary-hero strong {
    font-size: 64px;
  }

  .summary-stats > div {
    min-height: 58px;
    padding: 11px 12px;
  }

  .summary-rounds {
    height: 72px;
  }

  .summary-actions .primary-button {
    min-height: 52px;
    padding: 15px 18px;
  }
}
