.game-achievements-page {
  margin-top: calc(-1 * var(--big-picture-header-height));
  width: 100%;
  min-width: 0;
  height: calc(100% + var(--big-picture-header-height));
  min-height: calc(100% + var(--big-picture-header-height));
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  background: var(--background);

  &__hero {
    position: relative;
    height: 460px;
    overflow: hidden;
  }

  &__hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
  }

  &__hero-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: calc(
        var(--big-picture-header-height) + calc(var(--spacing-unit) * 12)
      )
      calc(var(--spacing-unit) * 24) calc(var(--spacing-unit) * 12);
    gap: calc(var(--spacing-unit) * 6);
    background:
      linear-gradient(
        90deg,
        #080808 0%,
        rgba(8, 8, 8, 0) 25%,
        rgba(8, 8, 8, 0) 75%,
        #080808 99.53%
      ),
      linear-gradient(180deg, rgba(8, 8, 8, 0) 0%, #080808 97%);
  }

  &__hero-logo {
    width: 337px;
    max-width: 50%;
    height: auto;
    object-fit: contain;
  }

  &__content {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 24)
      calc(var(--spacing-unit) * 16);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
  }

  &__summary {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
    width: 100%;
    background-color: var(--secondary);
    border-radius: 12px;
    padding: 16px;
  }

  &__summary-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(8, 8, 8, 1);
    color: var(--text-secondary);

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  &__summary-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  &__summary-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
  }

  &__summary-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  &__summary-name {
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    line-height: 1.2;
    margin: 0;
  }

  &__summary-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.2;
  }

  &__summary-percentage {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
  }

  &__summary-progress {
    position: relative;
    width: 100%;
    height: 6px;
  }

  &__summary-progress-track {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 300px;
  }

  &__summary-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--text);
    border-radius: 300px;
    transition: width 0.4s ease;
  }

  &__points-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: var(--secondary);
    border-radius: 12px 12px 0 0;
    padding: 16px;
  }

  &__points-label {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1;
  }

  &__points-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
  }

  &__list-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  &__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;

    > *:last-child .game-achievements-row {
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
    }
  }
}

.game-achievements-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--secondary);
  padding: 16px;
  outline: none;
  cursor: default;
  min-height: 88px;

  &[data-focused="true"] {
    z-index: 1;
    outline: 2px solid #fff;
    outline-offset: 4px;
  }

  &__icon {
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  }

  &__icon--locked {
    filter: grayscale(100%);
    opacity: 0.55;
  }

  &__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  &__title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
  }

  &__hidden-note {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.25;
  }

  &__description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  &__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
  }

  &__points {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
  }

  &__status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
  }
}
