* {
  letter-spacing: 0;
}

.home-body {
  background: #171a22;
  color: #f6f7fb;
}

.home-body::before,
.home-body::after {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: 260px minmax(260px, 390px) 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 0 20px;
  background: #0d1018;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.site-header .brand img,
.footer-brand img {
  width: 250px !important;
  height: auto !important;
  max-height: 58px;
  object-fit: contain;
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.brand small,
.footer-brand small {
  display: block;
  margin-top: 3px;
  color: #a6adbc;
  font-size: 11px;
  white-space: nowrap;
}

.site-search {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 10px 0 16px;
  background: #21242d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  max-width: none;
}

.site-search span {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.site-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.site-search input::placeholder {
  color: #d9dce5;
}

.site-search button {
  position: static;
  transform: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #0e1118;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 0;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #ffda73;
}

.member-area {
  display: flex;
  justify-content: flex-end;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #141821;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.home-page {
  overflow: hidden;
}

.section-shell {
  width: min(1800px, calc(100% - 68px));
  margin: 0 auto;
}

.interest-hero {
  position: relative;
  min-height: 330px;
  padding: 74px 0 44px;
  background:
    linear-gradient(180deg, rgba(23, 26, 34, 0.38), #171a22 82%),
    linear-gradient(90deg, rgba(23, 26, 34, 0.98), rgba(23, 26, 34, 0.58)),
    var(--hero-image) center / cover;
}

.interest-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.35;
  pointer-events: none;
}

.interest-hero .section-shell {
  position: relative;
  z-index: 1;
}

.interest-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3vw, 42px);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 212px));
  gap: 16px;
}

.topic-card {
  min-height: 148px;
  padding: 26px 24px;
  border-radius: 34px;
  color: #fff;
  text-decoration: none;
  box-shadow: inset -22px -22px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.08);
}

.topic-card strong {
  display: block;
  font-size: 25px;
  line-height: 1.25;
}

.topic-card span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.topic-card em {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.topic-card.blue { background: #3957dd; }
.topic-card.orange { background: #d27d5a; }
.topic-card.green { background: #1d8c73; }
.topic-card.red { background: #b73b3f; }

.showcase-panel {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  margin-top: 26px;
  padding: 32px 40px;
  background: #232735;
  border-radius: 14px;
}

.showcase-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-label h2,
.home-section-title h2,
.trending-strip h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.showcase-label h2 {
  color: #ffb7d7;
}

.showcase-label a,
.home-section-title a,
.feature-band a {
  display: inline-flex;
  margin-top: 22px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.wide-game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 28px 16px;
}

.home-game-card {
  width: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-game-card a {
  display: block;
  color: #fff;
  text-decoration: none;
}

.home-game-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  background: #10131b;
}

.home-game-card.poster .thumb {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
}

.home-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.home-game-card:hover img {
  transform: scale(1.045);
  filter: brightness(0.78);
}

.play-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 5px;
  color: #151821;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.home-game-card h3 {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-game-card p {
  margin: 7px 0 0;
  color: #a8aebb;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-panel {
  margin-top: 34px;
  border: 1px solid #343945;
  border-radius: 14px;
  overflow: hidden;
}

.top-comments {
  padding: 28px 32px 34px;
  border-bottom: 1px solid #343945;
}

.top-comments h2 {
  margin: 0 0 20px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comment-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.mini-pick {
  min-height: 150px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08));
}

.mini-pick img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.mini-pick strong,
.mini-pick span {
  display: block;
}

.mini-pick strong {
  margin-top: 14px;
  font-size: 14px;
}

.mini-pick span {
  margin-top: 10px;
  color: #a8aebb;
  font-size: 13px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.rank-grid section {
  padding: 26px 32px 28px;
  border-right: 1px solid #343945;
}

.rank-grid section:last-child {
  border-right: 0;
}

.rank-grid h3 {
  margin: 0 0 22px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rank-grid a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.rank-grid b {
  color: #6f7481;
  font-size: 17px;
}

.game-section {
  margin-top: 46px;
}

.home-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.home-section-title a {
  margin-top: 0;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid #5c6270;
  border-radius: 50%;
  color: transparent;
  position: relative;
}

.home-section-title a::after {
  content: ">";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}

.poster-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(130px, 1fr));
  gap: 16px;
}

.feature-band {
  min-height: 290px;
  margin-top: 44px;
  padding: 48px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(23, 26, 34, 0.98) 0%, rgba(23, 26, 34, 0.78) 44%, rgba(23, 26, 34, 0.34)),
    var(--feature-image) center / cover;
  display: flex;
  align-items: center;
}

.feature-band div {
  max-width: 520px;
}

.feature-band h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.feature-band p {
  color: #d4d8e2;
  line-height: 1.6;
}

.feature-band a {
  width: fit-content;
  padding: 11px 18px;
  border-radius: 999px;
  background: #ffda73;
  color: #171a22;
}

.trending-strip {
  margin-top: 46px;
}

.home-custom-content {
  margin-top: 22px;
  padding: 28px;
  border-radius: 10px;
  background: #20242f;
  color: #d7dbe5;
  line-height: 1.8;
}

.home-content-body {
  position: relative;
  max-height: 9em;
  overflow: hidden;
}

.home-content-body::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4.8em;
  background: linear-gradient(180deg, rgba(32, 36, 47, 0), #20242f);
  pointer-events: none;
}

.home-content-body.is-expanded {
  max-height: none;
}

.home-content-body.is-expanded::after {
  display: none;
}

.home-custom-content h2,
.home-custom-content h3,
.home-custom-content h4 {
  margin: 22px 0 10px;
  color: #fff;
}

.home-custom-content h2:first-child,
.home-custom-content h3:first-child,
.home-custom-content h4:first-child {
  margin-top: 0;
}

.home-custom-content p {
  margin: 0 0 16px;
}

.home-custom-content a {
  color: #ffda73;
  font-weight: 800;
  text-decoration: none;
}

.home-content-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #ffda73;
  color: #171a22;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.home-content-toggle:hover {
  filter: brightness(1.06);
}

.home-content-toggle[hidden] {
  display: none;
}

.numbered-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.numbered-row article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: end;
}

.numbered-row article > span {
  color: #ffda73;
  font-size: 44px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
}

.numbered-row a {
  color: #fff;
  text-decoration: none;
}

.numbered-row img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  margin-bottom: 10px;
}

.numbered-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.site-footer {
  margin-top: 70px;
  padding: 34px 34px 26px;
  background: #0d1018;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 0;
}

.footer-social,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  min-width: 0;
}

.footer-social a,
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 46px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #20242f;
  white-space: nowrap;
}

.footer-links {
  justify-content: flex-end;
}

.footer-copy {
  margin: 26px 0 0;
  color: #a8aebb;
  font-size: 13px;
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: 230px minmax(240px, 1fr) auto;
  }

  .site-nav {
    display: none;
  }

  .wide-game-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .poster-row {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
  }

  .numbered-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }

  .brand {
    justify-content: center;
  }

  .site-header .brand img,
  .footer-brand img {
    width: 230px !important;
    height: auto !important;
    max-height: 54px;
  }

  .member-area {
    display: none;
  }

  .section-shell {
    width: min(100% - 24px, 1800px);
  }

  .topic-grid,
  .comment-row,
  .rank-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main {
    justify-items: center;
    gap: 20px;
  }

  .footer-social,
  .footer-links {
    justify-content: center;
    width: 100%;
  }

  .footer-social a {
    min-width: 88px;
  }

  .showcase-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .wide-game-grid,
  .poster-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-grid section {
    border-right: 0;
    border-bottom: 1px solid #343945;
  }

  .rank-grid section:last-child {
    border-bottom: 0;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .interest-hero {
    padding-top: 34px;
  }

  .topic-card {
    min-height: 126px;
    border-radius: 22px;
  }

  .numbered-row {
    grid-template-columns: 1fr;
  }
}
