.home-shooting {
  padding: clamp(54px, 8vw, 92px) 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, #657149 11%, var(--paper)), var(--paper));
}

.home-shooting__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
}

.home-shooting__visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #5d654c;
  border-radius: var(--radius-lg);
  background: #192016;
  box-shadow: var(--shadow);
}

.home-shooting__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(9 13 8 / 82%));
  content: '';
}

.home-shooting__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.home-shooting__visual:hover img,
.home-shooting__visual:focus-visible img {
  transform: scale(1.035);
}

.home-shooting__visual > span {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 24px;
  left: 26px;
  display: grid;
  color: #f4eedb;
}

.home-shooting__visual small {
  color: #c8d49b;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-shooting__visual strong {
  font: 600 clamp(1.8rem, 4vw, 3.2rem)/1.1 Georgia, serif;
}

.home-shooting__ranking {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.home-shooting__ranking > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.home-shooting__ranking h2 {
  margin: 5px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.home-shooting__ranking > header > a {
  color: var(--accent-strong);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.home-shooting__list {
  display: grid;
  gap: 9px;
}

.home-shooting__row {
  display: grid;
  grid-template-columns: 38px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
}

.home-shooting__row.is-winner {
  border-color: color-mix(in srgb, #e4c451 55%, var(--line));
  background: linear-gradient(90deg, color-mix(in srgb, #e4c451 14%, var(--surface)), var(--surface));
}

.home-shooting__place {
  color: var(--muted);
  font: 800 1rem/1 monospace;
  text-align: center;
}

.is-winner .home-shooting__place {
  font-size: 1.45rem;
}

.home-shooting__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #657149;
  color: #fff;
  font-weight: 850;
}

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

.home-shooting__user {
  display: grid;
  min-width: 0;
}

.home-shooting__user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shooting__user small {
  color: var(--muted);
}

.home-shooting__row > b {
  color: var(--accent-strong);
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}

.home-shooting__button {
  align-self: flex-start;
  margin-top: auto;
  padding-inline: 24px;
}

.home-shooting__empty {
  color: var(--muted);
}

@media (max-width: 850px) {
  .home-shooting__grid {
    grid-template-columns: 1fr;
  }

  .home-shooting__visual {
    min-height: 330px;
  }
}

@media (max-width: 480px) {
  .home-shooting__visual {
    min-height: 260px;
  }

  .home-shooting__ranking > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-shooting__row {
    grid-template-columns: 30px 38px minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 8px;
  }

  .home-shooting__avatar {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shooting__visual img {
    transition: none;
  }
}
