@charset "utf-8";

/* =========================================================
  Game Blog Home
========================================================= */

.game-home {
  padding-top: var(--header-height);
}

.game-home .section {
  padding: clamp(64px, 8vw, 120px) 0;
}

.game-home-header {
  position: relative;
  overflow: hidden;
}

.game-home-header::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -18%;
  width: min(56vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 42%, rgba(107, 140, 154, 0.28), transparent 32%),
    radial-gradient(circle at 64% 60%, rgba(136, 98, 92, 0.2), transparent 35%);
  pointer-events: none;
}

.game-home-header .container {
  position: relative;
  z-index: 1;
}

.game-home-header__en {
  margin-bottom: 14px;
  color: var(--color03);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.32em;
}

.game-home-header__title {
  color: var(--txt_white);
  font-size: clamp(2.2rem, 1.55rem + 2.75vw, 4.6rem);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.game-home-header__description {
  max-width: 800px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.9;
}

.game-home-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.game-home-category-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(107, 140, 154, 0.3);
  border-radius: 999px;
  color: var(--color02);
  background: rgba(255, 255, 255, 0.025);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.game-home-category-tabs a:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 140, 154, 0.7);
  background: rgba(107, 140, 154, 0.12);
}

.game-home-category-tabs span {
  font-size: 13px;
}

.game-home-category-tabs .en {
  color: var(--color03);
}

.game-home-content {
  padding-top: 0 !important;
}

.game-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.game-home-main {
  min-width: 0;
}

.game-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
}

.game-post-card__link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(107, 140, 154, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.game-post-card__link:hover {
  transform: translateY(-5px);
  border-color: rgba(107, 140, 154, 0.7);
  background: rgba(107, 140, 154, 0.07);
}

.game-post-card__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #171717;
}

.game-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.game-post-card__link:hover img {
  transform: scale(1.04);
}

.game-post-card__body {
  padding: 22px;
}

.game-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
  color: rgba(196, 196, 196, 0.62);
}

.game-card-meta time,
.game-card-meta span {
  font-size: 12px;
  line-height: 1.5;
}

.game-card-meta span {
  padding-left: 14px;
  border-left: 1px solid rgba(107, 140, 154, 0.42);
  color: var(--color03);
}

.game-post-card__title {
  color: var(--txt_white);
  font-size: clamp(1.12rem, 1rem + 0.4vw, 1.4rem);
  font-weight: var(--fw-bold);
  line-height: 1.65;
}

.game-post-card__excerpt {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.8;
}

.game-home-empty {
  padding: 60px 24px;
  border: 1px solid rgba(107, 140, 154, 0.24);
  border-radius: var(--radius);
  text-align: center;
}

.game-home-empty p {
  text-align: center;
  color: rgba(255, 255, 255, 0.66);
}

.game-no-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background:
    linear-gradient(135deg, rgba(107, 140, 154, 0.16), rgba(136, 98, 92, 0.12)),
    #171717;
}

.game-no-image span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  letter-spacing: 0.15em;
}

/* Sidebar */
.game-archive-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.game-side-box {
  padding: 22px;
  border: 1px solid rgba(107, 140, 154, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.game-side-box + .game-side-box {
  margin-top: 22px;
}

.game-side-box__title {
  margin-bottom: 18px;
  color: var(--color03);
  font-size: 12px;
  letter-spacing: 0.24em;
}

.game-side-category {
  display: grid;
  gap: 8px;
}

.game-side-category li {
  color: rgba(255, 255, 255, 0.7);
}

.game-side-category a {
  color: var(--color02);
  font-size: 14px;
}

.game-side-posts {
  display: grid;
  gap: 16px;
}

.game-side-post a {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
}

.game-side-post__thumb {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #171717;
}

.game-side-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-side-post__body time {
  color: rgba(196, 196, 196, 0.54);
  font-size: 11px;
}

.game-side-post__body h3 {
  margin-top: 4px;
  color: var(--txt_white);
  font-size: 13px;
  line-height: 1.6;
}

.pagination {
  margin-top: 46px;
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination__item .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(107, 140, 154, 0.28);
  border-radius: 999px;
  color: var(--color02);
  background: rgba(255, 255, 255, 0.025);
}

.pagination__item .page-numbers.current {
  color: var(--txt_white);
  background: var(--color03);
  border-color: var(--color03);
}

@media screen and (max-width: 1024px) {
  .game-home-layout {
    grid-template-columns: 1fr;
  }

  .game-archive-sidebar {
    position: static;
  }
}

@media screen and (max-width: 768px) {
  .game-post-grid {
    grid-template-columns: 1fr;
  }
}
