@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 {
  display: none;
}

html {
  min-height: 100%;
}

body {
  font-family:
    "Google Sans",
    "Roboto",
    Google Sans,
    sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background-image: url(../assets/grid_Frame.svg);
  background-position: 0 0;
  background-repeat: repeat;
  /* background-size: var(--pokii-bg-pattern-width) auto; */
  background-size: cover;
  background-attachment: fixed;
}

:root {
  --text_color: #1c274c;
  --btn-rounded: 12px;
  --rounded: 20px;
  --border-color: #eef0ff;
  --btn_bg: #1877f2;
  --theme-Green: #14903e;
  --btn-text-color: #f4f4f8;
  --btn-boxShadow: 2px 2px 14px rgb(0 0 0 / 40%);
  --div-boxShadow: rgba(0, 0, 0, 0.25) 0px 12px 22px -12px;
  /* Game card footer overlay: change --game-card-accent once; gradient + play icon follow */
  --game-card-accent: rgb(86, 45, 20);
  --game-card-bg: linear-gradient(180deg,
      color-mix(in srgb, var(--game-card-accent) 0%, transparent) 0%,
      color-mix(in srgb, var(--game-card-accent) 55%, transparent) 10%,
      var(--game-card-accent) 22%,
      var(--game-card-accent) 36%,
      var(--game-card-accent) 50%,
      var(--game-card-accent) 64%,
      var(--game-card-accent) 80%,
      var(--game-card-accent) 100%);
  /* Footer panel pulls up over thumbnail so gradient can blend into the icon */
  /* Pokii watermark tile: width scales the repeat; lower = smaller / denser pattern */
  --pokii-bg-pattern-width: 550px;
}

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

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

main {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

.bg-top {
  position: fixed;
  top: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, white, rgba(30, 31, 34, 0));
}

.bg-bottom {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(0deg, white, rgba(30, 31, 34, 0));
}

.main_div {
  max-width: 400px;
  /* text-wrap: nowrap; */
  width: 100%;
  height: 100%;
  /* border-left: 1px solid var(--border-color); */
  /* border-right: 1px solid var(--border-color); */
  position: relative;
  /* background-color: white; */
  color: var(--text_color);
  /* overflow-y: scroll; */
  /* padding: 12px 8px; */
  gap: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

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

.play_btn {
  background-color: transparent;
  margin: 4px 16px 16px 16px;
  padding: 16px;
  width: 100%;
  /* box-shadow: rgba(0, 0, 0, 0.25) 0 12px 22px -12px; */
  border-radius: var(--rounded);
  border: 1px solid var(--border-color);
}

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

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

.earn-coin-content {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.redeem-coin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f7f8ff;
  border: none;
  border-radius: 17px;
  padding: 12px 14px;
  box-sizing: border-box;
}

.redeem-coin p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #62698e;
  text-transform: capitalize;
}

.redeem-coin img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.redeem-coin #coin {
  font-weight: 800;
  color: #1a79f3;
  font-size: 15px;
  line-height: 1;
}

.earn-coin-text {
  text-align: left;
}

.earn-coin-text p {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #1c274c;
  line-height: 1.2;
}

.earn-coin-text span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  color: #62698e;
  line-height: 1.25;
  text-transform: none;
}

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

.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: #ffffff;
  color: #000;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px #0000001a;
  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;
  }
}

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

.click_btn_option:hover {
  color: #fff;
}

.click_btn_option:hover .cat_img {
  filter: brightness(0) invert(1);
}

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

.choose_game {
  margin: 12px 16px 0 16px;
  background-color: var(--box-color);
  padding: 16px;
  width: 100%;
  border-radius: var(--rounded);
  background-color: white;
  border: 1px solid var(--border-color);
  /* box-shadow: var(--div-boxShadow); */
}

.class_flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}

.class_flex a {
  width: 100%;
  display: block;
}

.class_flex .click_btn {
  width: 100%;
  min-height: 52px;
  padding: 6px 22px;
  margin: 0;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 2px solid #2f85f4;
  border-radius: 17px;
  color: #62698e;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 18px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.class_flex .click_btn:hover {
  background-color: #2f85f4;
  color: #fff;
}

.class_flex .click_btn_option:hover {
  color: #fff;
}

.class_flex .click_btn_option:hover .cat_img {
  filter: revert(1);
}

.class_flex .cat_img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

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

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

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

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

.resp_choose_game {
  margin-bottom: 4px;
}

.game_section2 {
  border-radius: 20px;
  background-color: transparent;
  width: 100%;
  border: none;
  overflow: visible;
}

.game_section3 {
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}

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

.game_section_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.liveUser,
.py-2.liveUser {
  font-size: 12px;
  color: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0;
  font-weight: 500;
  gap: 3px;
}

.liveUser-person {
  width: 9px;
  height: 11px;
  flex-shrink: 0;
}

.give-coin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / 47%);
  border: 1px solid #eef0ff36;
  align-self: flex-start;
}

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

.ad-tag-earn {
  position: absolute;
  top: 0;
  right: 25px;
  color: #fff;
  font-size: 8px;
  padding: 2px 4px;
  letter-spacing: 0px;
  background-color: #1c274c45;
  z-index: 1;
  text-transform: capitalize;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.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;
  width: 100%;
  height: 58px;
  padding: 0 16px;
  background-color: #1a79f3;
  color: #fff;
  border: none;
  border-bottom: 5px solid #1a65cb;
  border-radius: 17px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.earn-coin-btn button::before,
.click_btn1::before,
.watch-btn::before {
  content: "";
  position: absolute;
  top: 0%;
  bottom: 0%;
  right: 22%;
  width: 20%;
  pointer-events: none;
  z-index: -1;
  background: #2f85f4;
  transform: translate3d(0, 0, 0) skewX(52deg);
  transform-origin: center center;
  /* animation: earn-coin-flash-inner 3.5s ease-in-out infinite; */
}

.earn-coin-btn button::after,
.click_btn1::after,
.watch-btn::after {
  content: "";
  position: absolute;
  top: 0%;
  left: 38%;
  bottom: 0%;
  width: 15%;
  pointer-events: none;
  z-index: -1;
  background: #2f85f4;
  transform: translate3d(0, 0, 0) skewX(52deg);
  transform-origin: center center;
}

.earn-coin-btn button:disabled {
  cursor: not-allowed;
}

.earn-coin-btn__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.earn-coin-btn button img {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

/* One flash: stays inside button (small drift + opacity); skew on every frame */
@keyframes earn-coin-flash-inner {

  0%,
  100% {
    transform: translate3d(425%, 0, 0) skewX(45deg);
  }

  50% {
    transform: translate3d(-425%, 0, 0) skewX(45deg);
  }
}

.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: 6px;
  width: 6px;
  background-color: #00c950;
  border-radius: 100%;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  -o-border-radius: 100%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 1);
  flex-shrink: 0;
}

.game_section5 {
  background: var(--game-card-bg, var(--game-card-accent));
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  padding: 30px 12px 12px;
  margin-top: -40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Figma drop shadow: 0 / 4 / 4 / 0 @ 40% — card accent color, bottom only */
.game_section2:has(.game_section5[class*="game-card--"]) {
  box-shadow: 0 4px 4px 0 color-mix(in srgb, var(--game-card-accent) 40%, transparent);
}

/* 2k shoot: slate #d1b841 — explicit background wins over inherited :root brown */
.game_section2:has(.game-card--2k-shoot) {
  --game-card-accent: #d1b841;
}

.game_section5.game-card--2k-shoot {
  background: linear-gradient(180deg,
      rgba(231, 221, 179, 0) 0%,
      rgba(255, 238, 130, 0.55) 10%,
      #d1b841 22%,
      #d1b841 36%,
      #d1b841 50%,
      #d1b841 64%,
      #d1b841 80%,
      #d1b841 100%);
}

/* Basketball Challenge — sky #09ABFC */
.game_section2:has(.game-card--basketball-challenge) {
  --game-card-accent: #09abfc;
}

.game_section5.game-card--basketball-challenge {
  background: linear-gradient(180deg,
      rgba(9, 171, 252, 0) 0%,
      rgba(9, 171, 252, 0.55) 10%,
      #09abfc 22%,
      #09abfc 36%,
      #09abfc 50%,
      #09abfc 64%,
      #09abfc 80%,
      #09abfc 100%);
}

/* Free Bird Challenge — sky #09ABFC */
.game_section2:has(.game-card--free-bird) {
  --game-card-accent: #09abfc;
}

.game_section5.game-card--free-bird {
  background: linear-gradient(180deg,
      rgba(9, 171, 252, 0) 0%,
      rgba(9, 171, 252, 0.55) 10%,
      #09abfc 22%,
      #09abfc 36%,
      #09abfc 50%,
      #09abfc 64%,
      #09abfc 80%,
      #09abfc 100%);
}

/* 2048: slate #d1b841 — explicit background wins over inherited :root brown */
.game_section2:has(.game-card--2048) {
  --game-card-accent: #edc401;
}

.game_section5.game-card--2048 {
  background: linear-gradient(180deg,
      rgba(237, 196, 25, 0) 0%,
      rgba(233, 203, 10, 0.55) 10%,
      #edc401 22%,
      #edc401 36%,
      #edc401 50%,
      #edc401 64%,
      #edc401 80%,
      #edc401 100%);
}

/* Flip Bottle: slate #d1b841 — explicit background wins over inherited :root brown */
.game_section2:has(.game-card--flip-bottle) {
  --game-card-accent: #00c2a7;
}

.game_section5.game-card--flip-bottle {
  background: linear-gradient(180deg,
      rgba(25, 237, 194, 0) 0%,
      rgba(10, 233, 202, 0.55) 10%,
      #00c2a7 22%,
      #00c2a7 36%,
      #00c2a7 50%,
      #00c2a7 64%,
      #00c2a7 80%,
      #00c2a7 100%);
}

/* Arrows Escape: slate #9394A2 — explicit background wins over inherited :root brown */
.game_section2:has(.game-card--arrows-escape) {
  --game-card-accent: #9394a2;
}

.game_section5.game-card--arrows-escape {
  background: linear-gradient(180deg,
      rgba(147, 148, 162, 0) 0%,
      rgba(147, 148, 162, 0.55) 10%,
      #9394a2 22%,
      #9394a2 36%,
      #9394a2 50%,
      #9394a2 64%,
      #9394a2 80%,
      #9394a2 100%);
}

/* Cannon Attack — teal #679BA0 */
.game_section2:has(.game-card--cannon-attack) {
  --game-card-accent: #679ba0;
}

.game_section5.game-card--cannon-attack {
  background: linear-gradient(180deg,
      rgba(103, 155, 160, 0) 0%,
      rgba(103, 155, 160, 0.55) 10%,
      #679ba0 22%,
      #679ba0 36%,
      #679ba0 50%,
      #679ba0 64%,
      #679ba0 80%,
      #679ba0 100%);
}

/* Ninja Fruit Slice — brown #5D3A1A */
.game_section2:has(.game-card--ninja-fruit-slice) {
  --game-card-accent: #5d3a1a;
}

.game_section5.game-card--ninja-fruit-slice {
  background: linear-gradient(180deg,
      rgba(93, 58, 26, 0) 0%,
      rgba(93, 58, 26, 0.55) 10%,
      #5d3a1a 22%,
      #5d3a1a 36%,
      #5d3a1a 50%,
      #5d3a1a 64%,
      #5d3a1a 80%,
      #5d3a1a 100%);
}

/* Car Jam Solver — green #6AA313 */
.game_section2:has(.game-card--car-jam-solver) {
  --game-card-accent: #6aa313;
}

.game_section5.game-card--car-jam-solver {
  background: linear-gradient(180deg,
      rgba(106, 163, 19, 0) 0%,
      rgba(106, 163, 19, 0.55) 10%,
      #6aa313 22%,
      #6aa313 36%,
      #6aa313 50%,
      #6aa313 64%,
      #6aa313 80%,
      #6aa313 100%);
}

/* Feed The Frog — orange #FA6307 */
.game_section2:has(.game-card--feed-the-frog) {
  --game-card-accent: #fa6307;
}

.game_section5.game-card--feed-the-frog {
  background: linear-gradient(180deg,
      rgba(250, 99, 7, 0) 0%,
      rgba(250, 99, 7, 0.55) 10%,
      #fa6307 22%,
      #fa6307 36%,
      #fa6307 50%,
      #fa6307 64%,
      #fa6307 80%,
      #fa6307 100%);
}

/* Fill Water Tank — sky #09ABFC */
.game_section2:has(.game-card--fill-water-tank) {
  --game-card-accent: #09abfc;
}

.game_section5.game-card--fill-water-tank {
  background: linear-gradient(180deg,
      rgba(9, 171, 252, 0) 0%,
      rgba(9, 171, 252, 0.55) 10%,
      #09abfc 22%,
      #09abfc 36%,
      #09abfc 50%,
      #09abfc 64%,
      #09abfc 80%,
      #09abfc 100%);
}

/* Snake Go — #121212 → #000000 (Figma stops) */
.game_section2:has(.game-card--snake-go) {
  --game-card-accent: #000000;
}

.game_section5.game-card--snake-go {
  background: linear-gradient(180deg,
      rgba(18, 18, 18, 0) 0%,
      rgba(18, 18, 18, 0.55) 10%,
      #121212 30%,
      #121212 45%,
      #0a0a0a 58%,
      #000000 72%,
      #000000 100%);
}

/* Princess Dress Up — navy #002F85 */
.game_section2:has(.game-card--princess-dress-up) {
  --game-card-accent: #002f85;
}

.game_section5.game-card--princess-dress-up {
  background: linear-gradient(180deg,
      rgba(0, 47, 133, 0) 0%,
      rgba(0, 47, 133, 0.55) 10%,
      #002f85 22%,
      #002f85 36%,
      #002f85 50%,
      #002f85 64%,
      #002f85 80%,
      #002f85 100%);
}

/* Speed Boat — sky #09ABFC */
.game_section2:has(.game-card--speed-boat) {
  --game-card-accent: #09abfc;
}

.game_section5.game-card--speed-boat {
  background: linear-gradient(180deg,
      rgba(9, 171, 252, 0) 0%,
      rgba(9, 171, 252, 0.55) 10%,
      #09abfc 22%,
      #09abfc 36%,
      #09abfc 50%,
      #09abfc 64%,
      #09abfc 80%,
      #09abfc 100%);
}

/* Goal Keeper — #3290B5 */
.game_section2:has(.game-card--goal-keeper) {
  --game-card-accent: #3290b5;
}

.game_section5.game-card--goal-keeper {
  background: linear-gradient(180deg,
      rgba(50, 144, 181, 0) 0%,
      rgba(50, 144, 181, 0.55) 10%,
      #3290b5 22%,
      #3290b5 36%,
      #3290b5 50%,
      #3290b5 64%,
      #3290b5 80%,
      #3290b5 100%);
}

/* Ludo Royal — red #A41212 */
.game_section2:has(.game-card--ludo-royal) {
  --game-card-accent: #a41212;
}

.game_section5.game-card--ludo-royal {
  background: linear-gradient(180deg,
      rgba(164, 18, 18, 0) 0%,
      rgba(164, 18, 18, 0.55) 10%,
      #a41212 22%,
      #a41212 36%,
      #a41212 50%,
      #a41212 64%,
      #a41212 80%,
      #a41212 100%);
}

/* Cross and Circle — brown #6D3F27 */
.game_section2:has(.game-card--cross-and-circle) {
  --game-card-accent: #6d3f27;
}

.game_section5.game-card--cross-and-circle {
  background: linear-gradient(180deg,
      rgba(109, 63, 39, 0) 0%,
      rgba(109, 63, 39, 0.55) 10%,
      #6d3f27 22%,
      #6d3f27 36%,
      #6d3f27 50%,
      #6d3f27 64%,
      #6d3f27 80%,
      #6d3f27 100%);
}

/* Knife Hit Emoji — dark navy #1A222D */
.game_section2:has(.game-card--knife-hit-emoji) {
  --game-card-accent: #1a222d;
}

.game_section5.game-card--knife-hit-emoji {
  background: linear-gradient(180deg,
      rgba(26, 34, 45, 0) 0%,
      rgba(26, 34, 45, 0.55) 10%,
      #1a222d 22%,
      #1a222d 36%,
      #1a222d 50%,
      #1a222d 64%,
      #1a222d 80%,
      #1a222d 100%);
}

/* Cricket Premier League (casual) — #015288 */
.game_section2:has(.game-card--cricket-premier-league) {
  --game-card-accent: #015288;
}

.game_section5.game-card--cricket-premier-league {
  background: linear-gradient(180deg,
      rgba(1, 82, 136, 0) 0%,
      rgba(1, 82, 136, 0.55) 10%,
      #015288 22%,
      #015288 36%,
      #015288 50%,
      #015288 64%,
      #015288 80%,
      #015288 100%);
}

/* Dress Up Diva (casual) — #1F86BC */
.game_section2:has(.game-card--dress-up-diva) {
  --game-card-accent: #1f86bc;
}

.game_section5.game-card--dress-up-diva {
  background: linear-gradient(180deg,
      rgba(31, 134, 188, 0) 0%,
      rgba(31, 134, 188, 0.55) 10%,
      #1f86bc 22%,
      #1f86bc 36%,
      #1f86bc 50%,
      #1f86bc 64%,
      #1f86bc 80%,
      #1f86bc 100%);
}

/* Cross Runner (arcade) — #09ABFC */
.game_section2:has(.game-card--cross-runner) {
  --game-card-accent: #09abfc;
}

.game_section5.game-card--cross-runner {
  background: linear-gradient(180deg,
      rgba(9, 171, 252, 0) 0%,
      rgba(9, 171, 252, 0.55) 10%,
      #09abfc 22%,
      #09abfc 36%,
      #09abfc 50%,
      #09abfc 64%,
      #09abfc 80%,
      #09abfc 100%);
}

/* Sprinters Challenge (arcade) — #25C24F */
.game_section2:has(.game-card--sprinters-challenge) {
  --game-card-accent: #25c24f;
}

.game_section5.game-card--sprinters-challenge {
  background: linear-gradient(180deg,
      rgba(37, 194, 79, 0) 0%,
      rgba(37, 194, 79, 0.55) 10%,
      #25c24f 22%,
      #25c24f 36%,
      #25c24f 50%,
      #25c24f 64%,
      #25c24f 80%,
      #25c24f 100%);
}

/* Rapid Racer (arcade) — #015288 */
.game_section2:has(.game-card--rapid-racer) {
  --game-card-accent: #015288;
}

.game_section5.game-card--rapid-racer {
  background: linear-gradient(180deg,
      rgba(1, 82, 136, 0) 0%,
      rgba(1, 82, 136, 0.55) 10%,
      #015288 22%,
      #015288 36%,
      #015288 50%,
      #015288 64%,
      #015288 80%,
      #015288 100%);
}

/* Moto Hill Climbing (arcade) — #227BA2 */
.game_section2:has(.game-card--moto-hill-climbing) {
  --game-card-accent: #227ba2;
}

.game_section5.game-card--moto-hill-climbing {
  background: linear-gradient(180deg,
      rgba(34, 123, 162, 0) 0%,
      rgba(34, 123, 162, 0.55) 10%,
      #227ba2 22%,
      #227ba2 36%,
      #227ba2 50%,
      #227ba2 64%,
      #227ba2 80%,
      #227ba2 100%);
}

.game_section6 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

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

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

.game_section6 p {
  margin-bottom: 0px;
  text-align: left;
  color: #fff;
  text-transform: capitalize;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 375px) {
  .game_section5 {
    padding: 20px 8px 8px;
  }

  .game_section6 p {
    font-size: 12px;
  }
}

.game_section5 button {
  background-color: 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;
  -webkit-border-radius: var(--btn-rounded);
  -moz-border-radius: var(--btn-rounded);
  -ms-border-radius: var(--btn-rounded);
  -o-border-radius: var(--btn-rounded);
}

/* Circular play control — triangle matches card accent */
.game_section5 .play-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 35px;
  height: 35px;
  min-width: 35px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.game_section5 .play-btn::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--game-card-accent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.game_section5 .play-btn:hover {
  background: #fff;
  background-color: #fff;
  transform: scale(1.05);
  filter: brightness(1);
}

.game_section5 .play-btn:active {
  transform: scale(0.97);
}

.about_section {
  margin: 16px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 17px;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
}

.about_section h1 {
  margin: auto;
  color: #1c274c;
  font-size: 18px;
  padding-top: 4px;
}

.about_section p {
  text-align: start;
  color: #90a1b9;
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

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

.anchor_text {
  color: #1c274c;
}

.anchor_text:hover {
  text-decoration: underline;
}

.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: #fff;
  padding: 20px 20px 10px;
  border-radius: 15px;
  text-align: center;
  max-width: 370px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
}

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

.popup-data .main-text {
  font-size: 14px;
  color: #1c274c;
  margin: 40px 0 4px;
}

.popup-data .sub-text {
  font-size: 16px;
  font-weight: 800;
  color: #1c274c;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

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

.watch-btn {
  cursor: pointer;
  width: 100%;
  height: 58px;
  padding: 0 16px;
  background-color: #1a79f3;
  color: #fff;
  border: none;
  border-bottom: 5px solid #1a65cb;
  border-radius: 17px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ad-tag {
  position: absolute;
  top: 0;
  right: 25px;
  color: #fff;
  font-size: 8px;
  padding: 2px 4px;
  letter-spacing: 0px;
  background-color: #1c274c45;
  z-index: 1;
  text-transform: capitalize;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.popup-data .skip-btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: #C0C3D2;
  width: fit-content;
  margin: 6px auto 0px;
  font-size: 12px;
  cursor: pointer;
}

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

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

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

.search-input {
  font-size: 15px;
  width: 100%;
  border-radius: var(--btn-rounded);
  background-color: transparent;
  height: 42px;
  color: #90a1b9;
  outline: none;
  padding-left: 35px;
  border: 1px solid var(--border-color);
}

.search-input::placeholder {
  color: #90a1b9;
}

.search-icon {
  position: absolute;
  left: 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: #90a1b9;
  /* background: var(--btn_bg); */
  pointer-events: none;
}

.search-icon svg {
  fill: #90a1b9;
}

.btn1,
.click_btn1 {
  width: 100%;
}

.click_btn1 {
  cursor: pointer;
  width: 100%;
  height: 58px;
  padding-left: 16px;
  padding-top: 4px;
  padding-right: 16px;
  background-color: #1a79f3;
  color: #fff;
  border: none;
  border-bottom: 5px solid #1a65cb;
  border-radius: 17px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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 {
    min-width: 100%;
    width: 100%;
    padding: 0px;
  }
}

@media (max-width: 500px) and (min-width: 420px) {

  .game_section1,
  #search-results {
    width: fit-content;
    margin: 0px auto;
  }
}

@media (max-width: 320px) {
  .game_section5 .play-btn {
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .game_section5 .play-btn::after {
    border-width: 5px 0px 5px 8px;
  }

  .liveUser {
    font-size: 10px;
  }

  .greenDott {
    width: 4px;
    height: 4px;
  }

  .liveUser-person {
    width: 10px;
    height: 10px;
  }
}

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

  .click_btn {
    text-wrap: nowrap;
    font-size: 12px;
  }

  .click_btn1 {
    text-wrap: nowrap;
    font-size: 12px;
  }

  .class_flex {
    gap: 10px;
  }
}

@media (max-width: 346px) {
  .cat_img {
    width: 15px;
    height: 15px;
  }

  .game_section1,
  #search-results {
    gap: 0.5rem;
  }
}

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

  .game_section5 button {
    text-wrap: nowrap;
  }

  .click_btn,
  .click_btn1 {
    font-size: 14px !important;
    text-wrap: nowrap !important;
  }

  .click_btn_option {
    padding: 10px 15px !important;
    gap: 10px !important;
  }
}

@media (max-width: 420px) {

  .game_section2,
  .choose_game,
  .play_btn,
  .more_game {
    width: 100%;
  }
}

@media screen and (max-width: 386px) {
  .earn-coin-content {
    flex-direction: column;
  }
}