@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto_Condensed-Regular.ttf") format("ttf");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007F;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Google Sans",
    "Roboto",
    Google Sans,
    sans-serif;
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8a2be2, #4169e1);
  border-radius: 4px;
  border: 2px solid #0f0f13; /* matches main bg */
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #9b4dca, #547cf0);
}

body {
  font-family:
    "Google Sans",
    "Roboto",
    Google Sans,
    sans-serif;
}

:root {
  --text_color: #f4f4f8;
  --btn-rounded: 393px;
  --rounded: 16px;
  --border-color: rgba(255, 255, 255, 0.1);
  --btn_bg: linear-gradient(135deg, #8a2be2, #4169e1);
  --btn_bg_hover: linear-gradient(135deg, #9b4dca, #547cf0);
  --theme-Green: #00ff88;
  --btn-text-color: #ffffff;
  --btn-boxShadow: 0 4px 15px rgba(138, 43, 226, 0.4);
  --div-boxShadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --card-bg: rgba(255, 255, 255, 0.05);
  --main-bg: rgba(15, 15, 19, 0.85);
  --text-muted: #a0a0b0;
  --box-color: var(--card-bg);
}

img,
video {
  height: auto;
  max-width: 100%;
}

.ad-name {
  font-size: 10px;
  color: #88888873;
  letter-spacing: 3px;
  margin-bottom: 2px;
}

main {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  background: #0f0f13;
  background-image:
    radial-gradient(
      circle at 15% 50%,
      rgba(138, 43, 226, 0.15),
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(65, 105, 225, 0.15),
      transparent 25%
    );
  background-attachment: fixed;
  overflow-x: hidden;
  animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

main::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/assets/grid_Frame.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.bg-top,
.bg-bottom {
  display: none;
}

.main_div {
  max-width: 400px;
  width: 100%;
  min-height: 100vh;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  position: relative;
  background: var(--main-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text_color);
  gap: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  z-index: 1;
}

.ayush_game_section {
  text-align: center;
  width: 100%;
  /* padding-top: 12px; */
}

.play_btn {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  margin: 4px 16px 16px 16px;
  padding: 16px;
  width: 370px;
  border-radius: var(--rounded);
  border: 1px solid var(--border-color);
  color: var(--text_color);
}

.play_btn_txt {
  font-size: 16px;
  color: var(--text_color);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play_btn_txt img {
  width: 32px;
  height: 32px;
}

.redeem-coin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#coin {
  font-weight: 600;
  color: #ff9900;
  text-shadow: 0 0 8px rgba(255, 153, 0, 0.6);
  animation: pulseCoin 2s infinite alternate;
  display: inline-block;
}
@keyframes pulseCoin {
  from {
    text-shadow: 0 0 5px rgba(255, 153, 0, 0.4);
    transform: scale(1);
  }
  to {
    text-shadow: 0 0 15px rgba(255, 153, 0, 1);
    transform: scale(1.05);
  }
}

@media (max-width: 360px) {
  .play_btn_txt {
    text-wrap: wrap;
  }
}

.click_btn {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 28px 10px 28px;
  letter-spacing: 1px;
  font-size: 14px;
  height: 42px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text_color);
  border-radius: var(--btn-rounded);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.play-btn {
  -webkit-transition: all 0.3s ease-in-out;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn svg {
  margin-left: 8px;
  height: 12.8px;
  width: 8.24px;
}

.toast-message {
  display: none;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  color: var(--text_color);
  border: 1px solid rgba(138, 43, 226, 0.5);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 15px;
  z-index: 9999;
  max-width: 90vw;
  width: max-content;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  text-align: center;
  text-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.toast-message.show {
  display: flex;
  animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
  0%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    display: none;
  }
}

.play-btn:hover,
.click_btn1:hover {
  background: var(--btn_bg_hover);
  box-shadow: var(--btn-boxShadow);
  transform: translateY(-2px);
  -moz-animation-duration: 2s;
  animation-duration: 2s;
}

.click_btn:hover {
  background: var(--btn_bg);
  box-shadow: var(--btn-boxShadow);
  transform: translateY(-2px);
  border-color: transparent;
  color: #fff;
  -moz-animation-duration: 2s;
  animation-duration: 2s;
}

.more_game {
  width: 370px;
  margin-top: 12px;
}

.click_btn_option {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  height: 42px;
  gap: 10px;
  width: 100%;
}

.click_btn_option:hover {
  color: #fff;
}

.cat_img {
  width: 20px;
  height: 20px;
  filter: invert(1) brightness(2);
}

.choose_game {
  margin: 12px 16px 0 16px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
  width: 370px;
  border-radius: var(--rounded);
  border: 1px solid var(--border-color);
  box-shadow: var(--div-boxShadow);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.choose_game:hover {
  border-color: rgba(138, 43, 226, 0.4);
}

.class_flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.class_flex a {
  width: 100%;
}

.game_section {
  margin: 0px 16px 0 16px;
  border-radius: var(--rounded);
}

.img-loader,
.img-loader::after {
  right: 0;
  bottom: 0;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
}

.img-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20%;
  height: 0;
  padding-top: 20%;
}

.img-loader::after {
  content: "";
  width: 100%;
  height: 100%;
  border: 5px solid #dcdddb;
  border-top-color: #48a8ff;
  border-radius: 50%;
  -webkit-animation: 0.75s ease-out infinite loading;
  animation: 0.75s ease-out infinite loading;
  box-sizing: border-box;
}

@keyframes loading {
  0% {
    transform: rotate(0turn);
  }

  100% {
    transform: rotate(1turn);
  }
}

.loader {
  width: 14px;
  height: 14px;
  border: 2px solid #888;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.game_section1,
#search-results {
  padding: 0px 0 4px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  justify-items: center;
  max-width: 500px;
  /* Smooth height transitions if items are removed/added */
  transition: all 0.5s ease-in-out;
}

#show-all-wrapper {
  display: none;
  justify-content: center;
}

#show-all-btn {
  justify-content: center;
  font-size: 12px;
  color: var(--text_color);
  text-decoration: underline;
}

.resp_choose_game {
  margin-bottom: 4px;
}

.game_section2 {
  border-radius: var(--rounded);
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 100%;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  animation: fadeInUp 0.5s ease-out backwards;
  animation:
    fadeInUp 0.5s ease-out backwards,
    floatCard 6s ease-in-out infinite alternate;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.game_section1 .game_section2:nth-child(1) {
  animation:
    fadeInUp 0.5s ease-out backwards 0.1s,
    floatCard 6s ease-in-out infinite alternate 0.4s;
}
.game_section1 .game_section2:nth-child(2) {
  animation:
    fadeInUp 0.5s ease-out backwards 0.2s,
    floatCard 6s ease-in-out infinite alternate 0.8s;
}
.game_section1 .game_section2:nth-child(3) {
  animation:
    fadeInUp 0.5s ease-out backwards 0.30000000000000004s,
    floatCard 6s ease-in-out infinite alternate 1.2000000000000002s;
}
.game_section1 .game_section2:nth-child(4) {
  animation:
    fadeInUp 0.5s ease-out backwards 0.4s,
    floatCard 6s ease-in-out infinite alternate 1.6s;
}
.game_section1 .game_section2:nth-child(5) {
  animation:
    fadeInUp 0.5s ease-out backwards 0.5s,
    floatCard 6s ease-in-out infinite alternate 2s;
}
.game_section1 .game_section2:nth-child(6) {
  animation:
    fadeInUp 0.5s ease-out backwards 0.6000000000000001s,
    floatCard 6s ease-in-out infinite alternate 2.4000000000000004s;
}
.game_section1 .game_section2:nth-child(7) {
  animation:
    fadeInUp 0.5s ease-out backwards 0.7000000000000001s,
    floatCard 6s ease-in-out infinite alternate 2.8000000000000003s;
}
.game_section1 .game_section2:nth-child(8) {
  animation:
    fadeInUp 0.5s ease-out backwards 0.8s,
    floatCard 6s ease-in-out infinite alternate 3.2s;
}

.game_section2:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(138, 43, 226, 0.5);
  /* The border itself is hidden since the aura takes over */
  border-color: transparent;
}

.game_section3 {
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
  height: 100%;
  width: 100%;
}

.game_section4 {
  display: flex;
  position: relative;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  align-items: center;
  cursor: pointer;
  background-color: transparent;
}

.game-details {
  padding: 12px 16px;
}

.gamebox {
  border: 1px solid var(--border-color);
  padding: 16px 4px 12px;
  border-radius: var(--rounded);
}

.game_section_img {
  width: 100%;
  height: 100%;
  border-top-left-radius: var(--rounded);
  border-top-right-radius: var(--rounded);
}

.user-coin {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  justify-content: space-evenly;
}

.liveUser {
  font-size: 12px;
  color: var(--theme-Green);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: auto;
  font-weight: 500;
}

.give-coin {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 14px;
}

.give-coin img {
  width: 16px;
  height: 16px;
}

.ad-tag-earn {
  position: absolute;
  top: 0;
  right: -10px;
  color: #8a8e91;
  font-size: 10px;
  letter-spacing: 0px;
  text-transform: capitalize;
}

.earn-coin-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 14px;
  text-transform: uppercase;
  position: relative;
}

.earn-coin-btn button {
  cursor: pointer;
  background: var(--btn_bg);
  color: #fff;
  border: none;
  height: 42px;
  padding: 10px 0px;
  width: 100%;
  border-radius: var(--btn-rounded);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}
.earn-coin-btn button:hover {
  background: var(--btn_bg_hover);
  box-shadow: 0 0 15px rgba(65, 105, 225, 0.6);
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(65, 105, 225, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.earn-coin-btn button img {
  width: 24px;
  height: 24px;
}

.ad-container {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  margin-bottom: 12px;
  align-items: center;
  /* display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; */
}

.me-1 {
  margin-right: 4px;
}

.greenDott {
  height: 10px;
  width: 10px;
  background-color: var(--theme-Green);
  border-radius: 100%;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  -o-border-radius: 100%;
}

.game_section5 {
  background-color: transparent;
  border-bottom-right-radius: var(--rounded);
  border-bottom-left-radius: var(--rounded);
  padding: 8px 5px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.game_section6 {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

.play_btn_txt1 {
  display: flex;
  line-height: 18px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.game_section6 p {
  margin-bottom: 0px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  text-transform: capitalize;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.game_section5 button {
  background: var(--btn_bg);
  padding: 10px 0px;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
  height: 42px;
  width: 95%;
  font-weight: 600;
  color: var(--btn-text-color);
  border-radius: var(--btn-rounded);
  margin-bottom: 4px;
  border: none;
  transition: all 0.3s ease;
}
.game_section5 button:hover {
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
  transform: scale(1.02);
}

.about_section {
  margin-top: 20px;
  width: 370px;
}

.about_section h1 {
  margin: auto;
  margin-bottom: 15px;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-shadow:
    0 0 10px rgba(138, 43, 226, 0.8),
    0 0 20px rgba(65, 105, 225, 0.6);
  letter-spacing: 1px;
}

.about_section p {
  text-align: start;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 10px;
}

footer {
  display: flex;
  width: 370px;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0px;
  color: white !important;
}

.anchor_text {
  color: var(--text-muted);
}

.anchor_text:hover {
  text-decoration: underline;
  color: var(--text_color);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-data {
  background: var(--main-bg);
  backdrop-filter: blur(12px);
  padding: 20px 20px 20px;
  border-radius: 15px;
  text-align: center;
  max-width: 370px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-data .oops-img {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: auto;
}

.popup-data .main-text {
  font-size: 14px;
  color: var(--text-muted);
  margin: 40px 0 10px;
}

.popup-data .sub-text {
  font-size: 16px;
  font-weight: bold;
  color: var(--text_color);
  margin-bottom: 20px;
}

.watch-btn-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.watch-btn {
  background: var(--btn_bg);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--btn-rounded);
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  height: 42px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}
.watch-btn:hover {
  background: var(--btn_bg_hover);
  box-shadow: 0 0 15px rgba(65, 105, 225, 0.6);
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(65, 105, 225, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes shimmer {
  0% {
    left: -150%;
  }

  100% {
    left: 150%;
  }
}

.ad-tag {
  position: absolute;
  top: 0;
  right: -15px;
  color: #8a8e91;
  font-size: 10px;
  letter-spacing: 0px;
  text-transform: capitalize;
}

.popup-data .watch-btn .play-icon {
  font-size: 18px;
}

.popup-data .skip-btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: #666;
  width: fit-content;
  margin: 8px auto 0px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.popup-data .congrats-stars {
  width: 80px;
  margin-bottom: 10px;
}

.congrats-heading {
  font-family: "Comic Sans MS", cursive;
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
  text-shadow:
    0 0 10px rgba(255, 153, 0, 0.8),
    0 0 20px rgba(255, 153, 0, 0.5);
}

.coin-won-text {
  font-size: 20px;
  color: #f7941d;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.coin-won-text .coin-img {
  width: 22px;
  height: 22px;
}

.close-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  opacity: 0;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 1000;
  pointer-events: none;
}

.popup-content {
  position: relative;
  height: auto;
  border: 1px solid #888;
  color: #fff;
  border-radius: 5px;
  margin: 0 auto;
  width: 600px;
  padding: 10px;
  position: absolute;
  pointer-events: auto;
  z-index: 1001;
}

.popup {
  align-items: center;
}

.extra-s1space {
  max-width: 400px;
  width: 100%;
  margin: 0px auto;
  height: 66px;
}

.extra-s1space .container {
  padding: 12px 16px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  font-size: 14px;
  width: 100%;
  border-radius: var(--rounded);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text_color);
  height: 42px;
  outline: none;
  padding-left: 24px;
  border: 1px solid var(--border-color);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.search-input:focus {
  border-color: rgba(138, 43, 226, 0.6);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.search-icon {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border-top-right-radius: var(--rounded);
  border-bottom-right-radius: var(--rounded);
  border: 1px solid transparent;
  color: #fff;
  background: transparent;
  pointer-events: none;
}

.search-icon svg {
  fill: #fff;
}

.gsc-search-box-tools .gsc-search-box .gsc-input {
  padding: 0;
}

.gsc-search-button-v2 {
  width: auto !important;
  padding: 11px 10px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.gsc-input-box {
  padding-top: 6px;
  padding-bottom: 5px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.close-popup {
  outline: none;
  background-color: #ffffff;
  border: 1px solid #000;
  border-radius: 50%;
  color: #000;
  cursor: pointer;
  font-family: arial;
  font-size: 25px;
  font-weight: 700;
  height: 30px;
  line-height: 25px;
  margin-bottom: 10px;
  position: relative;
  text-align: center;
  width: 30px;
  z-index: 1003;
  transition: all 0.3s ease;
}
.close-popup:hover {
  background: var(--btn_bg);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.bottom-ad {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  text-align: center;
  background-color: transparent;
  color: white;
  padding: 10px 16px 0px 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: none;
  animation: slideUp 0.5s ease-out forwards;
}

.btn1,
.click_btn1 {
  background: var(--btn_bg);
  padding: 10px 28px 10px 28px;
  letter-spacing: 1px;
  font-size: 14px;
  height: 42px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  color: var(--btn-text-color);
  border-radius: var(--btn-rounded);
  border: none;
  transition: all 0.3s ease;
}

.click_btn1 {
  background: var(--btn_bg);
  padding: 10px 28px 10px 28px;
  letter-spacing: 1px;
  font-size: 14px;
  height: 42px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  color: var(--btn-text-color);
  border-radius: var(--btn-rounded);
  border: none;
  transition: all 0.3s ease;
}

.resp_footer {
  border: 1px solid #e5e7eb;
}

.resp_play_btn,
.resp_choose_game,
.resp_more_game,
.resp_about_section,
.resp_footer,
.resp_play_btn {
  display: flex;
  justify-content: center;
}

/* -------------------------------------------media----------------------------------------------- */

@media (max-width: 500px) {
  .main_div {
    max-width: 400px;
    width: 100%;
    min-height: 100vh;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    position: relative;
    background: var(--main-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text_color);
    gap: 12px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    z-index: 1;
  }

  main {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    background: #0f0f13;
    background-image:
      radial-gradient(
        circle at 15% 50%,
        rgba(138, 43, 226, 0.15),
        transparent 25%
      ),
      radial-gradient(
        circle at 85% 30%,
        rgba(65, 105, 225, 0.15),
        transparent 25%
      );
    background-attachment: fixed;
    overflow-x: hidden;
    animation: bgPulse 15s ease-in-out infinite alternate;
  }

  @keyframes bgPulse {
    0% {
      background-position: 0% 0%;
    }
    100% {
      background-position: 100% 100%;
    }
  }

  main::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/assets/grid_Frame.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
  }
}

@media (max-width: 500px) and (min-width: 420px) {
  .game_section1,
  #search-results {
    padding: 0px 0 4px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    justify-items: center;
    max-width: 500px;
    /* Smooth height transitions if items are removed/added */
    transition: all 0.5s ease-in-out;
  }

  .game-details {
    margin: 12px auto;
    max-width: 370px;
    width: 100%;
    padding: 0px;
  }
}

@media (max-width: 400px) {
  /* .game_section5 button {
  background: var(--btn_bg);
  padding: 10px 0px;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
  height: 42px;
  width: 95%;
  font-weight: 600;
  color: var(--btn-text-color);
  border-radius: var(--btn-rounded);
  margin-bottom: 4px;
  border: none;
  transition: all 0.3s ease;
}
.game_section5 button:hover {
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
  transform: scale(1.02);
} */

  .about_section {
    padding: 0 16px 16px 16px;
  }

  footer {
    padding: 7px 16px;
  }
}

/* @media(max-width:360px) {
    .game_section5 button {
  background: var(--btn_bg);
  padding: 10px 0px;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
  height: 42px;
  width: 95%;
  font-weight: 600;
  color: var(--btn-text-color);
  border-radius: var(--btn-rounded);
  margin-bottom: 4px;
  border: none;
  transition: all 0.3s ease;
}
.game_section5 button:hover {
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
  transform: scale(1.02);
}
} */

/* @media(max-width:320px) {
    .game_section5 button {
  background: var(--btn_bg);
  padding: 10px 0px;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
  height: 42px;
  width: 95%;
  font-weight: 600;
  color: var(--btn-text-color);
  border-radius: var(--btn-rounded);
  margin-bottom: 4px;
  border: none;
  transition: all 0.3s ease;
}
.game_section5 button:hover {
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
  transform: scale(1.02);
}
} */

@media (max-width: 280px) {
  .game_section {
    margin: 16px 12px 0 12px;
  }

  .click_btn {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 28px 10px 28px;
    letter-spacing: 1px;
    font-size: 14px;
    height: 42px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text_color);
    border-radius: var(--btn-rounded);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
  }

  .click_btn1 {
    background: var(--btn_bg);
    padding: 10px 28px 10px 28px;
    letter-spacing: 1px;
    font-size: 14px;
    height: 42px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
    color: var(--btn-text-color);
    border-radius: var(--btn-rounded);
    border: none;
    transition: all 0.3s ease;
  }

  .class_flex {
    gap: 4px;
  }
}

@media (max-width: 346px) {
  .cat_img {
    width: 20px;
    height: 20px;
    filter: invert(1) brightness(2);
  }

  .game_section1,
  #search-results {
    padding: 0px 0 4px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    justify-items: center;
    max-width: 500px;
    /* Smooth height transitions if items are removed/added */
    transition: all 0.5s ease-in-out;
  }
}

@media (max-width: 450px) {
  .game_section {
    border: none;
    padding: 0;
  }

  .game_section5 button {
    background: var(--btn_bg);
    padding: 10px 0px;
    letter-spacing: 1px;
    font-size: 14px;
    text-transform: uppercase;
    height: 42px;
    width: 95%;
    font-weight: 600;
    color: var(--btn-text-color);
    border-radius: var(--btn-rounded);
    margin-bottom: 4px;
    border: none;
    transition: all 0.3s ease;
  }
  .game_section5 button:hover {
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
    transform: scale(1.02);
  }

  .click_btn,
  .click_btn1 {
    background: var(--btn_bg);
    padding: 10px 28px 10px 28px;
    letter-spacing: 1px;
    font-size: 14px;
    height: 42px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
    color: var(--btn-text-color);
    border-radius: var(--btn-rounded);
    border: none;
    transition: all 0.3s ease;
  }

  .click_btn_option {
    padding: 10px 15px;
  }
}

@media (max-width: 500px) {
  .game_section2 {
    border-radius: var(--rounded);
    background: var(--card-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;

    animation: fadeInUp 0.5s ease-out backwards;
    animation:
      fadeInUp 0.5s ease-out backwards,
      floatCard 6s ease-in-out infinite alternate;
  }
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .game_section1 .game_section2:nth-child(1) {
    animation:
      fadeInUp 0.5s ease-out backwards 0.1s,
      floatCard 6s ease-in-out infinite alternate 0.4s;
  }
  .game_section1 .game_section2:nth-child(2) {
    animation:
      fadeInUp 0.5s ease-out backwards 0.2s,
      floatCard 6s ease-in-out infinite alternate 0.8s;
  }
  .game_section1 .game_section2:nth-child(3) {
    animation:
      fadeInUp 0.5s ease-out backwards 0.30000000000000004s,
      floatCard 6s ease-in-out infinite alternate 1.2000000000000002s;
  }
  .game_section1 .game_section2:nth-child(4) {
    animation:
      fadeInUp 0.5s ease-out backwards 0.4s,
      floatCard 6s ease-in-out infinite alternate 1.6s;
  }
  .game_section1 .game_section2:nth-child(5) {
    animation:
      fadeInUp 0.5s ease-out backwards 0.5s,
      floatCard 6s ease-in-out infinite alternate 2s;
  }
  .game_section1 .game_section2:nth-child(6) {
    animation:
      fadeInUp 0.5s ease-out backwards 0.6000000000000001s,
      floatCard 6s ease-in-out infinite alternate 2.4000000000000004s;
  }
  .game_section1 .game_section2:nth-child(7) {
    animation:
      fadeInUp 0.5s ease-out backwards 0.7000000000000001s,
      floatCard 6s ease-in-out infinite alternate 2.8000000000000003s;
  }
  .game_section1 .game_section2:nth-child(8) {
    animation:
      fadeInUp 0.5s ease-out backwards 0.8s,
      floatCard 6s ease-in-out infinite alternate 3.2s;
  }

  .game_section2:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.5);
    /* The border itself is hidden since the aura takes over */
    border-color: transparent;
  }

  .game-details {
    /* margin: 0px auto; */
    /* padding: 12px 16px; */
  }
}

@media (max-width: 420px) {
  .game_section2,
  .choose_game,
  .play_btn,
  .more_game {
    width: 100%;
  }
}

@media screen and (max-width: 640px) {
  .popup-content {
    width: 350px;
  }
}

@media screen and (max-width: 470px) {
  .popup-content {
    width: 100%;
  }
}

@media screen and (max-width: 386px) {
  .bottom-ad {
    width: 100%;
  }
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(100%);
  }

  to {
    transform: translateX(-50%) translateY(0);
  }
}

.earn-coin-btn button::before,
.watch-btn::before,
.click_btn1::before,
.play-btn::before,
.game_section5 button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 30%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  animation: shimmerSwipe 3s infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes shimmerSwipe {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

.game_section2 {
  position: relative;
  z-index: 1;
}
.game_section2::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #8a2be2, #4169e1, #00ff88, #8a2be2);
  background-size: 300% 300%;
  z-index: -1;
  border-radius: calc(var(--rounded) + 2px);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: bgGradientCycle 4s ease infinite;
}
.game_section2:hover::before {
  opacity: 1;
}
@keyframes bgGradientCycle {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
