.hp-section h2 {
  position: relative;
  padding-bottom: 10px;
  margin: 0;
  color: var(--sc-ink);
  font-weight: 850;
  letter-spacing: 0;
}

.hp-section h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--sc-highlight);
  content: "";
}

.hp-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--sc-radius-md);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.hp-text-link:hover,
.hp-channel-card:hover {
  background: var(--sc-accent-soft);
}

.hp-section {
  padding: 36px 0;
  border-top: 1px solid var(--sc-border);
}

.hp-section-plain {
  border-top: 0;
}

.hp-section-first {
  padding-top: 22px;
}

.hp-section-plain + .hp-section-plain {
  padding-top: 18px;
}

.hp-section-head-compact {
  margin-bottom: 16px;
}

.hp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.hp-section h2 {
  font-size: 30px;
  line-height: 1.25;
}

.hp-text-link {
  flex: 0 0 auto;
  padding: 0 4px;
  color: var(--sc-accent);
}

.hp-text-link:hover {
  color: var(--sc-accent-hover);
}

.hp-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hp-latest-item {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--sc-radius-md);
  background: var(--sc-surface-hover);
  transition: background-color 0.2s ease;
}

.hp-latest-item:hover {
  background: var(--sc-accent-soft);
}

.hp-latest-item > a {
  display: block;
  height: 100%;
  color: var(--sc-text);
  text-decoration: none;
}

.hp-latest-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: var(--sc-border);
  color: var(--sc-text-subtle);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.hp-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hp-latest-item:hover .hp-latest-thumb img {
  transform: scale(1.04);
}

.hp-latest-body {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.hp-latest-body h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 850;
}

.hp-latest-body time {
  order: -1;
  color: var(--sc-text-faint);
  font-size: 13px;
}

.hp-latest-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 10px 0 0;
  color: var(--sc-text-subtle);
  font-size: 14px;
  line-height: 1.55;
}

.hp-tool-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.hp-tool-card {
  --hp-card-accent: var(--sc-accent);
  --hp-card-soft: var(--sc-accent-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 148px;
  padding: 18px 12px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  background: var(--sc-surface);
  color: var(--sc-text);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.hp-tool-card:hover {
  border-color: var(--hp-card-accent);
  background: var(--hp-card-soft);
  transform: translateY(-2px);
}

.hp-tool-card-royale {
  --hp-card-accent: var(--sc-game-royale);
  --hp-card-soft: var(--sc-game-royale-soft);
}

.hp-tool-card-brawl {
  --hp-card-accent: var(--sc-game-brawl);
  --hp-card-soft: var(--sc-game-brawl-soft);
}

.hp-tool-card-clash {
  --hp-card-accent: var(--sc-game-clash);
  --hp-card-soft: var(--sc-game-clash-soft);
}

.hp-tool-card-squad {
  --hp-card-accent: var(--sc-game-squad);
  --hp-card-soft: var(--sc-game-squad-soft);
}

.hp-tool-icon,
.hp-channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--hp-icon-accent);
  border-radius: var(--sc-radius-md);
  background: var(--hp-icon-soft);
  box-shadow: inset 0 3px 0 var(--hp-icon-accent);
}

.hp-tool-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 13px;
  padding: 10px;
}

.hp-tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hp-icon-royale {
  --hp-icon-accent: var(--sc-game-royale);
  --hp-icon-soft: var(--sc-game-royale-soft);
}

.hp-icon-brawl {
  --hp-icon-accent: var(--sc-game-brawl);
  --hp-icon-soft: var(--sc-game-brawl-soft);
}

.hp-icon-clash {
  --hp-icon-accent: var(--sc-game-clash);
  --hp-icon-soft: var(--sc-game-clash-soft);
}

.hp-icon-moco {
  --hp-icon-accent: var(--sc-game-moco);
  --hp-icon-soft: var(--sc-game-moco-soft);
}

.hp-icon-squad {
  --hp-icon-accent: var(--sc-game-squad);
  --hp-icon-soft: var(--sc-game-squad-soft);
}

.hp-tool-card strong {
  font-size: 14px;
  line-height: 1.4;
}

.hp-pinned-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.hp-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--sc-radius-md);
}

.hp-carousel-viewport {
  overflow: hidden;
  border-radius: var(--sc-radius-md);
}

.hp-pinned-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hp-pinned-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  background: var(--sc-ink-strong);
}

.hp-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hp-pinned-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sc-border);
  color: var(--sc-text-subtle);
  font-size: 14px;
  font-weight: 850;
}

.hp-pinned-image::after,
.hp-focus-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.82));
}

.hp-pinned-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hp-pinned-card:hover .hp-pinned-image img {
  transform: scale(1.04);
}

.hp-pinned-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 18px;
}

.hp-pinned-card-main .hp-pinned-body {
  padding: 22px;
}

.hp-pinned-card h3 {
  margin: 8px 0 0;
  color: var(--sc-surface);
  font-weight: 850;
  line-height: 1.32;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.34);
}

.hp-pinned-card-main h3 {
  font-size: 28px;
}

.hp-pinned-card-small h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
}

.hp-pinned-body time,
.hp-focus-body time {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.hp-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s ease;
}

.hp-carousel-card {
  position: relative;
  flex: 0 0 calc((100% - 40px) / 3.5);
  overflow: hidden;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  background: var(--sc-ink-strong);
}

.hp-focus-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hp-focus-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sc-border);
  color: var(--sc-text-subtle);
  font-size: 14px;
  font-weight: 850;
}

.hp-focus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-focus-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 18px;
}

.hp-focus-body h3 {
  margin: 8px 0 0;
  color: var(--sc-surface);
  font-size: 16px;
  line-height: 1.28;
  font-weight: 850;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.34);
}

.hp-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 58px;
  border: 0;
  border-radius: var(--sc-radius-md);
  background: rgba(17, 24, 39, 0);
  color: var(--sc-surface);
  font-size: 42px;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.hp-carousel:hover .hp-carousel-arrow {
  background: rgba(17, 24, 39, 0.46);
  opacity: 1;
}

.hp-carousel-arrow-prev {
  left: 14px;
}

.hp-carousel-arrow-next {
  right: 14px;
}

.hp-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hp-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sc-border-strong);
  cursor: pointer;
}

.hp-carousel-dot-active {
  width: 24px;
  background: var(--sc-highlight);
}

.hp-channel-grid {
  display: grid;
  gap: 14px;
}

.hp-channel-card {
  --hp-card-accent: var(--sc-accent);
  --hp-card-soft: var(--sc-accent-soft);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  background: var(--sc-surface);
  color: var(--sc-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.hp-channel-card:hover {
  border-color: var(--hp-card-accent);
  background: var(--hp-card-soft);
  transform: translateY(-2px);
}

.hp-channel-card-royale {
  --hp-card-accent: var(--sc-game-royale);
  --hp-card-soft: var(--sc-game-royale-soft);
}

.hp-channel-card-brawl {
  --hp-card-accent: var(--sc-game-brawl);
  --hp-card-soft: var(--sc-game-brawl-soft);
}

.hp-channel-card-clash {
  --hp-card-accent: var(--sc-game-clash);
  --hp-card-soft: var(--sc-game-clash-soft);
}

.hp-channel-card-moco {
  --hp-card-accent: var(--sc-game-moco);
  --hp-card-soft: var(--sc-game-moco-soft);
}

.hp-channel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-channel-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.hp-channel-icon {
  width: 52px;
  height: 52px;
  padding: 9px;
}

.hp-channel-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hp-channel-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
}

.hp-channel-card p {
  margin: 6px 0 0;
  color: var(--sc-text-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .hp-pinned-layout {
    grid-template-columns: 1fr;
  }

  .hp-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hp-section {
    padding: 28px 0;
  }

  .hp-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  #latest > .hp-section-head {
    align-items: flex-end;
    flex-direction: row;
  }

  #latest > .hp-section-head .hp-text-link {
    min-height: 0;
    padding-bottom: 3px;
  }

  .hp-channel-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .hp-channel-grid {
    grid-template-columns: 1fr;
  }

  .hp-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hp-tool-card {
    min-height: 124px;
    padding: 14px 10px;
  }

  .hp-tool-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    padding: 9px;
  }

  .hp-tool-card strong {
    font-size: 13px;
  }

  .hp-pinned-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hp-pinned-card-small .hp-pinned-body {
    padding: 12px;
  }

  .hp-pinned-card-small h3 {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.3;
  }

  .hp-pinned-card-small .hp-pinned-body time {
    font-size: 10px;
  }

  .hp-focus-body h3 {
    font-size: 14px;
  }

  .hp-pinned-card-main h3 {
    font-size: 22px;
  }

  .hp-latest-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hp-latest-item {
    overflow: visible;
    background: transparent;
  }

  .hp-latest-item:hover {
    background: transparent;
  }

  .hp-latest-item > a {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    color: var(--sc-text);
    text-decoration: none;
  }

  .hp-latest-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 116px;
    aspect-ratio: 10 / 7;
    margin: 0;
    border-radius: var(--sc-radius-md);
    background: var(--sc-border);
    color: var(--sc-text-subtle);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
  }

  .hp-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
  }

  .hp-latest-item a:hover .hp-latest-thumb img {
    transform: scale(1.04);
  }

  .hp-latest-body {
    min-width: 0;
    padding: 0;
  }

  .hp-latest-body h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
  }

  .hp-latest-body time {
    display: flex;
    align-items: center;
    order: 0;
    gap: 6px;
    margin-top: 7px;
    color: var(--sc-text-subtle);
    font-size: 13px;
    line-height: 1.2;
  }

  .hp-latest-body time::before {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
  }

  .hp-latest-body p {
    display: none;
  }

  .hp-carousel-arrow {
    width: 36px;
    height: 48px;
    background: rgba(17, 24, 39, 0.42);
    font-size: 34px;
    opacity: 1;
  }

  .hp-carousel-card {
    flex-basis: calc((100% - 12px) / 1.25);
  }

}

@media (max-width: 360px) {
  .hp-pinned-card-small .hp-pinned-body {
    padding: 10px;
  }

  .hp-pinned-card-small .hp-pinned-body time {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-carousel-track,
  .hp-pinned-image img,
  .hp-focus-image img,
  .hp-latest-thumb img,
  .hp-tool-card {
    transition: none;
  }

  .hp-pinned-card:hover .hp-pinned-image img,
  .hp-carousel-card:hover .hp-focus-image img,
  .hp-latest-item a:hover .hp-latest-thumb img,
  .hp-tool-card:hover {
    transform: none;
  }
}
