.site-header {
  display: flex;
  justify-content: flex-start;
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0 10px;
}

.site-header .brand {
  gap: 14px;
  align-items: center;
  letter-spacing: 0.18em;
  line-height: 1;
}

.site-header .brand span,
.footer-brand span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(1px);
}

.site-header .brand img,
.footer-brand img {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-brand img {
  transform: translateY(-1px);
}

.site-header .brand img {
  animation: cat-float 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.42));
  transform-origin: center bottom;
}

.search-stage {
  width: var(--content);
  margin: 10px auto 0;
  padding: clamp(46px, 7vw, 92px) 0 0;
}

.search-intro {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0 auto 30px;
  text-align: center;
}

.search-kicker {
  color: var(--cyan);
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.search-intro h1 {
  margin: 0;
  font-size: clamp(1.06rem, 2vw, 1.7rem);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.02em;
}


.search-panel {
  display: flex;
  justify-content: center;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1200px, 100%);
  min-height: 78px;
  padding: 0 26px;
  border: 1px solid rgba(37, 99, 235, 0.88);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.86);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.04), 0 0 36px rgba(37, 99, 235, 0.18);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.search-shell:focus-within {
  border-color: rgba(96, 165, 250, 0.96);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08), 0 0 44px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.search-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #c061ff;
}

.search-icon svg {
  width: 100%;
  height: 100%;
}

.search-shell input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.search-shell input::placeholder {
  color: #7c8498;
}

.tray-section {
  width: var(--content);
  margin: 38px auto 0;
  padding: 0 0 30px;
}

.tray-summary {
  min-height: 22px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.tray-grid {
  display: grid;
  gap: 18px 22px;
}

.tray-grid[data-mode='games'] {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.tray-grid[data-mode='codes'] {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.scroll-sentinel {
  width: 100%;
  height: 18px;
}

.section-block {
  width: var(--content);
  margin: 10px auto 0;
  padding: 22px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: 1.48rem;
}

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

.site-footer {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 18, 0.84);
}

.footer-shell {
  width: min(1680px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.footer-brand {
  justify-self: start;
  align-items: center;
  color: var(--text);
  line-height: 1;
}

.footer-copy {
  text-align: center;
  color: var(--muted-strong);
}

.footer-copy p {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.footer-copy span {
  color: #ef4444;
}

.social-button {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.44);
  color: #91a0bb;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.social-button:hover {
  color: var(--text);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}

.social-button svg {
  width: 20px;
  height: 20px;
}


@keyframes cat-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-2px) rotate(-4deg);
  }
  60% {
    transform: translateY(1px) rotate(3deg);
  }
}

@media (max-width: 860px) {
  .footer-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-brand,
  .social-button {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(1380px, calc(100vw - 64px));
    padding-top: 20px;
  }

  .site-header .brand {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }

  .search-stage {
    width: min(1380px, calc(100vw - 40px));
    margin-top: 2px;
    padding-top: 42px;
  }

  .search-intro {
    gap: 8px;
    margin-bottom: 24px;
  }

  .search-kicker {
    font-size: clamp(1.72rem, 8.6vw, 3.05rem);
  }

  .search-intro h1 {
    font-size: clamp(0.98rem, 4.2vw, 1.22rem);
  }

  .search-shell {
    width: calc(100% - 26px);
    min-height: 68px;
    padding: 0 20px;
    gap: 12px;
  }

  .search-icon {
    width: 24px;
    height: 24px;
  }

  .tray-grid[data-mode='games'] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
  }

  .tray-grid[data-mode='codes'] {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 1.28rem;
  }
}
