.header-inner {
  padding: 10px 0;
}

.brand {
  font-size: 22px;
  line-height: 1;
}

.brand-with-logo {
  min-width: 0;
}

.brand-with-logo span {
  white-space: nowrap;
}

.site-logo {
  width: 34px;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
  border-radius: 9px;
}

.category-nav {
  background: rgba(8, 17, 31, .9);
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.category-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.category-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}

.category-nav a:hover,
.category-nav a.active {
  color: #07111f;
  background: var(--accent);
}

.home-hero {
  padding: 28px 0 18px;
}

.home-feature-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.home-feature-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.tag-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.tag-feature-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(16, 28, 48, .82);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
}

.tag-feature-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #22d3ee, #fb7185);
  color: #07111f;
  font-weight: 900;
}

.tag-feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag-feature-info {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.tag-feature-info h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
}

.tag-feature-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.hero-empty-panel {
  grid-column: 1 / -1;
  padding: 30px 22px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(16, 28, 48, .62);
  color: var(--muted);
}

.hero-empty-panel strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  margin-bottom: 6px;
}

.game-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border-radius: 18px;
}

.game-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.game-thumb-link,
.thumb {
  position: relative;
}

.thumb {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 14px;
}

.game-tag-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
}

.tag-hot {
  background: #ef4444;
}

.tag-trending {
  background: #16a34a;
}

.tag-original {
  background: #2563eb;
}

.tag-top {
  background: #f97316;
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-stats span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-stats .rating-stat b {
  color: #fbbf24;
  font-size: 14px;
  line-height: 1;
}

.empty-games {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.game-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin: 0 0 18px;
}

.game-search input {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 17, 31, .9);
  color: var(--text);
  padding: 0 14px;
}

.game-search .btn {
  margin-top: 0;
}

.blog-page {
  max-width: 1040px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.blog-card,
.blog-article {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(16, 28, 48, .82);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .2);
}

.blog-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.blog-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.blog-read-link {
  color: var(--accent);
  font-weight: 900;
}

.blog-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px;
}

.blog-article h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.05;
}

.blog-excerpt {
  color: var(--text);
  font-size: 19px;
  line-height: 1.6;
}

.blog-content {
  color: #dbe5f6;
  font-size: 17px;
  line-height: 1.8;
  white-space: normal;
}

@media (max-width: 720px) {
  .home-feature-head {
    display: block;
  }

  .home-feature-head h1 {
    font-size: 28px;
  }

  .game-search {
    grid-template-columns: 1fr;
  }

  .blog-article {
    padding: 18px;
  }

  .blog-article h1 {
    font-size: 31px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 19px;
  }

  .site-logo {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    flex-basis: 30px;
  }
}
