body.aplay-homepage {
  scrollbar-color: #b4b4b4e6 transparent;
  scrollbar-width: auto;
  scrollbar-margin-top: 45px;
}

body.aplay-homepage::-webkit-scrollbar {
  width: 16px;
}

body.aplay-homepage::-webkit-scrollbar-track {
  background: none;
  margin-top: 45px;
}

@media (width <= 800px) {
  body.aplay-homepage {
    scrollbar-margin-top: 44px;
  }

  body.aplay-homepage::-webkit-scrollbar-track {
    margin-top: 44px;
  }
}

@media (width <= 600px) {
  body.aplay-homepage {
    scrollbar-margin-top: 41px;
  }

  body.aplay-homepage::-webkit-scrollbar-track {
    margin-top: 41px;
  }
}

@media (width <= 480px) {
  body.aplay-homepage {
    scrollbar-margin-top: 39px;
  }

  body.aplay-homepage::-webkit-scrollbar-track {
    margin-top: 39px;
  }
}

@media (width <= 320px) {
  body.aplay-homepage {
    scrollbar-margin-top: 37px;
  }

  body.aplay-homepage::-webkit-scrollbar-track {
    margin-top: 37px;
  }
}

body.aplay-homepage::-webkit-scrollbar-thumb {
  background: #96969699;
  border-radius: 8px;
  border: 2px solid #0000;
  background-clip: padding-box;
}

body.aplay-homepage::-webkit-scrollbar-thumb:hover {
  background: #b4b4b4e6;
  background-clip: padding-box;
}

.aplay-home {
  width: 100%;
  background: none;
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem;
  padding-top: 10px;
  box-sizing: border-box;
  z-index: 1;
  pointer-events: auto;
}

.hero-section {
  flex-shrink: 0;
  margin-bottom: 1.5rem;
  padding: 1.5rem 0 1rem;
  text-align: center;
  position: relative;
}

.hero-section:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(#8a2be226 0%, #0000 70%);
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-title {
  font-size: 5rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-title-retro {
  font-family: "Press Start 2P", cursive;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15em;
  display: inline-flex;
  color: #fff;
  text-shadow: 0 0 20px #ff64ffe6, 0 0 40px #ff64ffb3, 0 0 60px #ff64ff80, 0 0 80px #8a2be266, 0 4px 8px #00000080;
  filter: drop-shadow(0 8px 16px #8a2be266);
}

.wave-letter {
  display: inline-block;
  animation: 2s ease-in-out infinite bounce;
}

.wave-letter.space {
  width: .3em;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.03);
  }
}

@keyframes bounce-mobile {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.featured-section {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 1.5rem;
}

.section-label {
  font-family: "Press Start 2P", cursive;
  font-size: .85rem;
  color: #ffffffe6;
  display: block;
  margin-bottom: 1rem;
  text-align: left;
  text-shadow: 0 2px 8px #ff64ff66;
}

.featured-games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.other-games-section {
  width: 100%;
  max-width: 1200px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1e1e3c99;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 2px solid #0000;
  padding: 1.2rem .8rem;
  text-decoration: none;
  color: #fff;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: #282850cc;
  box-shadow: 0 12px 48px #64c8ff4d;
}

.game-card.featured {
  min-height: 200px;
  padding: 1.8rem 1.5rem;
}

.game-card.featured .game-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.game-card.featured .game-title {
  font-size: 1rem;
}

.game-card.featured .game-description {
  font-size: .75rem;
  margin-top: .6rem;
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.game-blockfit:hover {
  border-color: #ff6b6b;
}

.game-boom:hover {
  border-color: #ff9f43;
}

.game-bounce:hover {
  border-color: #4ecdc4;
}

.game-chromadrift:hover {
  border-color: #ff6b9d;
}

.game-citydef:hover {
  border-color: #ffe66d;
}

.game-dodge:hover {
  border-color: #a8e6cf;
}

.game-gboard:hover {
  border-color: #ff8b94;
}

.game-keytest:hover {
  border-color: #c7ceea;
}

.game-plantex:hover {
  border-color: #7bed9f;
}

.game-skyhop:hover {
  border-color: #74b9ff;
}

.game-soundx:hover {
  border-color: #ffa502;
}

.game-squarex:hover {
  border-color: #ff6348;
}

.game-stacker:hover {
  border-color: #70a1ff;
}

.game-sudoku:hover {
  border-color: #eccc68;
}

.game-target-shoot:hover {
  border-color: #e17055;
}

.game-tiletog:hover {
  border-color: #ff7979;
}

.game-tilemerge:hover {
  border-color: #badc58;
}

.game-wordsearch:hover {
  border-color: #f368e0;
}

.game-icon {
  font-size: 2.5rem;
  margin-bottom: .6rem;
  line-height: 1;
  transition: transform .3s;
  filter: drop-shadow(0 2px 8px #64c8ff4d);
}

.game-card:hover .game-icon {
  transform: scale(1.15);
}

.game-title {
  font-family: "Press Start 2P", cursive;
  font-size: .65rem;
  font-weight: 400;
  color: #fff;
  margin: 0;
  text-align: center;
  letter-spacing: .05em;
}

.game-description {
  font-size: .65rem;
  color: #c0c0ff;
  margin: .4rem 0 0;
  text-align: center;
  line-height: 1.3;
  opacity: .85;
  font-family: Arial, sans-serif;
  font-weight: normal;
}

@media (width <= 1400px) {
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .featured-section, .games-grid {
    max-width: 1000px;
  }
}

@media (width <= 1200px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-title-retro {
    font-size: 2.5rem;
  }

  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .featured-section, .games-grid {
    max-width: 900px;
  }
}

@media (width <= 1000px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-title-retro {
    font-size: 2rem;
  }
}

@media (width <= 800px) {
  .aplay-home {
    padding: 1.25rem 1rem;
  }

  .hero-section {
    padding: 1.5rem 0 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title-retro {
    font-size: 1.25rem;
    letter-spacing: .12em;
  }

  .section-label {
    font-size: .75rem;
    margin-bottom: .75rem;
  }

  .featured-games {
    grid-template-columns: 1fr;
    gap: .75rem;
    margin-bottom: 1.25rem;
  }

  .game-card.featured {
    min-height: 140px;
    padding: 1.5rem 1.2rem;
  }

  .game-card.featured .game-icon {
    font-size: 3rem;
    margin-bottom: .75rem;
  }

  .game-card.featured .game-title {
    font-size: .9rem;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .875rem;
  }

  .game-card {
    padding: 1rem .75rem;
    min-height: 130px;
  }

  .game-icon {
    font-size: 2.25rem;
    margin-bottom: .375rem;
  }

  .game-title {
    font-size: .75rem;
  }

  .game-description {
    font-size: .55rem;
    margin-top: .3rem;
  }
}

@media (width <= 600px) {
  .aplay-home {
    padding: 1rem .75rem;
  }

  .hero-section {
    padding: 1rem 0 .75rem;
    margin-bottom: 1.25rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-title-retro {
    font-size: .85rem;
    letter-spacing: .08em;
  }

  .wave-letter {
    animation: 2s ease-in-out infinite bounce-mobile;
  }

  .section-label {
    font-size: .65rem;
    margin-bottom: .6rem;
  }

  .featured-games {
    gap: .6rem;
    margin-bottom: 1rem;
  }

  .game-card.featured {
    min-height: 120px;
    padding: 1.2rem 1rem;
  }

  .game-card.featured .game-icon {
    font-size: 2.5rem;
    margin-bottom: .6rem;
  }

  .game-card.featured .game-title {
    font-size: .8rem;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .game-card {
    padding: .9rem .6rem;
    min-height: 120px;
  }

  .game-icon {
    font-size: 2rem;
    margin-bottom: .3rem;
  }

  .game-title {
    font-size: .65rem;
  }

  .game-description {
    font-size: .5rem;
    margin-top: .25rem;
  }
}

@media (width <= 480px) {
  .aplay-home {
    padding: .875rem .625rem;
  }

  .hero-section {
    padding: .75rem 0 .5rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-title-retro {
    font-size: .7rem;
    letter-spacing: .06em;
  }

  .section-label {
    font-size: .6rem;
    margin-bottom: .5rem;
  }

  .featured-games {
    gap: .5rem;
    margin-bottom: .875rem;
  }

  .game-card.featured {
    min-height: 110px;
    padding: 1rem .8rem;
  }

  .game-card.featured .game-icon {
    font-size: 2.2rem;
    margin-bottom: .5rem;
  }

  .game-card.featured .game-title {
    font-size: .75rem;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .625rem;
  }

  .game-card {
    padding: .8rem .5rem;
    min-height: 115px;
  }

  .game-icon {
    font-size: 1.8rem;
    margin-bottom: .25rem;
  }

  .game-title {
    font-size: .6rem;
  }

  .game-description {
    font-size: .48rem;
    margin-top: .2rem;
  }
}

.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  height: 40px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  width: 400px;
  height: 40px;
}

.search-input {
  width: 100%;
  height: 100%;
  background: #1b2735e6;
  border: 2px solid #8a2be266;
  border-radius: .3rem;
  color: #fff;
  font-family: "Press Start 2P", cursive;
  font-size: .55rem;
  padding: .4rem .6rem;
  outline: none;
  transition: all .3s;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.search-input::placeholder {
  color: #fff6;
}

.search-input:focus {
  border-color: #8a2be2cc;
  box-shadow: 0 0 15px #8a2be24d;
}

.no-results-message {
  text-align: center;
  padding: 3rem 2rem;
  color: #ffffffb3;
  font-family: "Press Start 2P", cursive;
}

.no-results-message p {
  font-size: .9rem;
  margin: .5rem 0;
  text-shadow: 0 2px 8px #8a2be266;
}

.no-results-hint {
  font-size: .7rem !important;
  color: #ffffff80 !important;
  margin-top: 1rem !important;
}

@media (width <= 800px) {
  .search-container {
    margin: 0 auto 1.25rem;
    height: 36px;
  }

  .search-input-wrapper {
    height: 36px;
    width: 320px;
  }

  .search-input {
    font-size: .5rem;
    padding: .35rem .55rem;
  }

  .no-results-message {
    padding: 2.5rem 1.5rem;
  }

  .no-results-message p {
    font-size: .8rem;
  }

  .no-results-hint {
    font-size: .6rem !important;
  }
}

@media (width <= 600px) {
  .search-container {
    margin: 0 auto 1rem;
    height: 34px;
  }

  .search-input-wrapper {
    height: 34px;
    width: 280px;
  }

  .search-input {
    font-size: .45rem;
    padding: .3rem .5rem;
  }

  .no-results-message {
    padding: 2rem 1.25rem;
  }

  .no-results-message p {
    font-size: .75rem;
  }

  .no-results-hint {
    font-size: .55rem !important;
  }
}

@media (width <= 480px) {
  .search-container {
    margin: 0 auto .875rem;
    height: 32px;
  }

  .search-input-wrapper {
    height: 32px;
    width: 240px;
  }

  .search-input {
    font-size: .4rem;
    padding: .25rem .45rem;
  }

  .no-results-message {
    padding: 1.75rem 1rem;
  }

  .no-results-message p {
    font-size: .7rem;
  }

  .no-results-hint {
    font-size: .5rem !important;
  }
}
