@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

@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: "Outfit", "Inter", "Google Sans", "Roboto", sans-serif;
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff007f, #00f0ff);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff3399, #33f3ff);
}

body {
  font-family: "Outfit", "Inter", "Google Sans", "Roboto", sans-serif;
  background-color: #09090e;
  color: #f4f4f8;
}

:root {
  --text_color: #f4f4f8;
  --btn-rounded: 393px;
  --rounded: 20px;
  --border-color: rgba(255, 255, 255, 0.08);
  --btn_bg: linear-gradient(135deg, #ff007f 0%, #00f0ff 100%);
  --btn_bg_hover: linear-gradient(135deg, #ff3399 0%, #33f3ff 100%);
  --theme-Green: #00f0ff; /* Changed from green to cyan for neon theme consistency */
  --btn-text-color: #ffffff;
  --btn-boxShadow: 0 8px 25px rgba(255, 0, 127, 0.4);
  --div-boxShadow: 0 16px 40px 0 rgba(0, 0, 0, 0.5);
  --card-bg: rgba(255, 255, 255, 0.03);
  --main-bg: rgba(9, 9, 14, 0.85);
  --text-muted: #a0a0b0;
  --box-color: var(--card-bg);
  --glow-primary: rgba(255, 0, 127, 0.6);
  --glow-secondary: rgba(0, 240, 255, 0.6);
}

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: #0b0b0e;
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(138, 43, 226, 0.2),
      transparent 35%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(65, 105, 225, 0.2),
      transparent 35%
    ),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.05), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  animation: bgPulse 20s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    background-position:
      0% 0%,
      100% 100%,
      50% 50%;
  }
  100% {
    background-position:
      20% 20%,
      80% 80%,
      60% 40%;
  }
}

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.15;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

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

.main_div {
  max-width: 1200px;
  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(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--text_color);
  gap: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  z-index: 1;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.ayush_game_section {
  text-align: center;
  width: 100%;
  padding: 0 16px;
}

.play_btn {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 4px 16px 16px 16px;
  padding: 16px;
  width: 100%;
  max-width: 1160px;
  border-radius: var(--rounded);
  border: 1px solid var(--border-color);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text_color);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--div-boxShadow);
}

.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: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  padding: 10px 28px 10px 28px;
  letter-spacing: 1px;
  font-size: 14px;
  height: 48px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: var(--text_color);
  border-radius: var(--btn-rounded);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(8px);
}

.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(255, 0, 127, 0.5);
  box-shadow: 0 4px 15px rgba(255, 0, 127, 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:
    0 10px 25px rgba(65, 105, 225, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.click_btn:hover {
  background: var(--btn_bg);
  box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.more_game {
  width: 100%;
  max-width: 1160px;
  margin-top: 24px;
}

.click_btn_option {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  height: 48px;
  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: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  width: 100%;
  max-width: 1160px;
  border-radius: var(--rounded);
  border: 1px solid var(--border-color);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--div-boxShadow);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}
.choose_game:hover {
  border-color: rgba(255, 0, 127, 0.6);
  box-shadow:
    0 0 25px rgba(255, 0, 127, 0.2),
    var(--div-boxShadow);
}

.class_flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.class_flex a {
  flex: 1 1 calc(50% - 12px);
  min-width: 120px;
  max-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(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  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: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  border: 1px solid var(--border-color);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  overflow: hidden;
  position: relative;
  z-index: 1;

  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
@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(-10px) scale(1.03);
  box-shadow:
    0 15px 35px rgba(255, 0, 127, 0.4),
    0 0 20px rgba(0, 240, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.game_section2::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: all 0.7s ease;
  z-index: 2;
  pointer-events: none;
}

.game_section2:hover::after {
  left: 200%;
}

.game_section3 {
  overflow: hidden;
  border-radius: var(--rounded);
  text-decoration: none;
  height: 100%;
  width: 100%;
  display: block;
}

.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);
  transition: transform 0.5s ease;
  object-fit: cover;
}
.game_section2:hover .game_section_img {
  transform: scale(1.08);
}

.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: 1px solid rgba(255, 255, 255, 0.1);
  height: 48px;
  padding: 10px 0px;
  width: 100%;
  border-radius: var(--btn-rounded);
  font-weight: 700;
  font-size: 15px;
  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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.earn-coin-btn button:hover {
  background: var(--btn_bg_hover);
  transform: translateY(-2px);
  box-shadow:
    0 10px 25px rgba(0, 240, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.earn-coin-btn button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.6s ease;
  z-index: -1;
}

.earn-coin-btn button:hover::before {
  left: 100%;
}

.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: 15px;
  text-transform: uppercase;
  height: 48px;
  width: 95%;
  font-weight: 700;
  color: var(--btn-text-color);
  border-radius: var(--btn-rounded);
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.game_section5 button:hover {
  box-shadow: 0 8px 20px rgba(255, 0, 127, 0.4);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--btn_bg_hover);
}

.about_section {
  margin-top: 20px;
  width: 100%;
  max-width: 1160px;
}

.about_section h1 {
  margin: auto;
  margin-bottom: 20px;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  text-shadow:
    0 0 15px rgba(255, 0, 127, 0.8),
    0 0 30px rgba(0, 240, 255, 0.6);
  letter-spacing: 1px;
}

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

footer {
  display: flex;
  width: 100%;
  max-width: 1160px;
  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: 100%;
  max-width: 1160px;
  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: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: var(--btn-rounded);
  width: 100%;
  font-size: 15px;
  cursor: pointer;
  height: 48px;
  font-weight: 700;
  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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.watch-btn:hover {
  background: var(--btn_bg_hover);
  transform: translateY(-2px);
  box-shadow:
    0 10px 25px rgba(0, 240, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.watch-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.6s ease;
  z-index: -1;
}

.watch-btn:hover::before {
  left: 100%;
}

@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: 1200px;
  width: 100%;
  margin: 0px auto;
  height: 66px;
}

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

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

.search-input {
  font-size: 16px;
  width: 100%;
  border-radius: var(--btn-rounded);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  color: var(--text_color);
  height: 52px;
  outline: none;
  padding-left: 24px;
  padding-right: 50px; /* space for the icon */
  border: 1px solid var(--border-color);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}
.search-input:focus {
  border-color: rgba(0, 240, 255, 0.8);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(0, 240, 255, 0.4),
    0 0 0 2px rgba(0, 240, 255, 0.2);
}

.search-icon {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  height: 46px;
  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(255, 0, 127, 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: 15px;
  height: 48px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 700;
  color: var(--btn-text-color);
  border-radius: var(--btn-rounded);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.click_btn1 {
  background: var(--btn_bg);
  padding: 10px 28px 10px 28px;
  letter-spacing: 1px;
  font-size: 15px;
  height: 48px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 700;
  color: var(--btn-text-color);
  border-radius: var(--btn-rounded);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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;
}

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----------------------------------------------- */

@media (max-width: 500px) {
  .main_div {
    width: 100%;
    padding: 0px;
  }

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

@media (max-width: 400px) {
  .about_section {
    padding: 0 16px 16px 16px;
  }

  footer {
    padding: 7px 16px;
  }
}

@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 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Slightly tighter gap on very small screens */
  }
  .class_flex a {
    flex: 1 1 calc(50% - 8px); /* Enforce side-by-side columns */
    min-width: 0; /* Remove min-width constraint to allow shrinking */
    max-width: 100%;
  }
}

@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(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    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);
  }
}

.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, #ff007f, #00f0ff, #ff3399, #33f3ff);
  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%;
  }
}
