﻿@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: "Geist", "Google Sans", "Roboto", system-ui, sans-serif;
  text-decoration: none;
}

::-webkit-scrollbar {
  display: none;
}

:root {
  /* Legacy + shared */
  --text_color: #1c274c;
  --btn-rounded: 9999px;
  --rounded: 14px;
  --border-color: #e2e8f0;
  --btn_bg: #00e2d7;
  --theme-Green: #0d9488;
  --btn-text-color: #1c274c;
  --btn-boxShadow: 0 3px 10px rgba(0, 226, 215, 0.25);
  --div-boxShadow: 0 4px 10.5px rgba(37, 99, 235, 0.08);
  /* Figma export theme (tokens from figma-export/) */
  --ui-bg: #e8f9fb;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f8fafc;
  --ui-text: #1c274c;
  --ui-text-soft: #90a1b9;
  --ui-text-muted: #62748e;
  --ui-border: #e2e8f0;
  --ui-brand: #00e2d7;
  --ui-brand-strong: #00c4bb;
  --ui-brand-navy: #04317d;
  --ui-accent-yellow: #ffe100;
  --ui-success: #0d9488;
  --ui-radius-card: 18px;
  --ui-radius-panel: 20px;
  --ui-radius-play: 10px;
  --ui-radius-mood: 14px;
  --ui-shadow-card: 0 4px 10.5px rgba(37, 99, 235, 0.08);
  --ui-shadow-soft: 0 4px 10.5px rgba(28, 39, 76, 0.08);
  --ui-shadow-panel: 0 2px 12px rgba(37, 99, 235, 0.07);
  --ui-shadow-subtle: 0 1px 4px rgba(0, 0, 0, 0.07);
}

body {
  font-family: "Geist", "Google Sans", "Roboto", system-ui, sans-serif;
}

img,
video {
  height: auto;
  max-width: 100%;
}

.ad-name {
  font-size: 10px;
  color: var(--ui-text-soft);
  letter-spacing: 2px;
  margin-bottom: 2px;
}

main {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  background-image: url(/assets/grid_Frame.svg);
  background-color: white;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  overflow-x: hidden;
}

.bg-top {
  position: fixed;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(260deg, #e3fffe, rgba(30, 31, 34, 0));
}

.bg-bottom {
  position: fixed;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #e3fffe, rgba(30, 31, 34, 0));
}

.bg-lite-watermark {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-lite-watermark img {
  display: block;
  width: 100%;
  height: auto;
}


.main_div {
  max-width: 400px;
  /* text-wrap: nowrap; */
  width: 100%;
  height: 100%;
  border-left: 1px solid rgba(226, 232, 240, 0.65);
  border-right: 1px solid rgba(226, 232, 240, 0.65);
  position: relative;
  z-index: 1;
  background-color: #DFFFFE;
  color: var(--ui-text);
  /* overflow-y: scroll; */
  /* padding: 12px 8px; */
  gap: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.Vanced_game_section {
  text-align: center;
  width: 100%;
  /* padding-top: 12px; */
}

.play_btn {
  margin: 4px 16px 16px 16px;
  padding: 16px;
  width: calc(100% - 32px);
  border-radius: var(--ui-radius-panel);
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-subtle);
}

.play_btn_txt {
  font-size: 16px;
  color: var(--ui-text);
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play_btn_txt img {
  width: 28px;
  height: 28px;
}

.redeem-coin {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--ui-text);
  font-size: 15px;
}

#coin {
  font-weight: 600;
  font-size: 18px;
}

@media (max-width: 360px) {
  .play_btn_txt {
    text-wrap: wrap;
  }

  .choose_game:has(.class_flex) {
    margin: 12px 16px 0 16px;
  }

  .choose_game:has(.class_flex) .class_flex {
    flex-wrap: wrap;
  }

  .choose_game:has(.class_flex) .class_flex a {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    max-width: calc(50% - 4px);
  }
}

.play-btn {
  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;
  }
}

.click_btn:hover {
  background-color: var(--btn_bg);

  -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;
}

.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: var(--ui-surface);
  padding: 16px;
  width: 370px;
  border-radius: var(--ui-radius-panel);
  border: 1px solid var(--ui-border);
  /* box-shadow: var(--div-boxShadow); */
}

/* Earn / coins card â€” figma promo block */

.choose_game:has(.earn-coin-btn) .redeem-coin > img {
  width: 100%;
  max-width: 90px;
  height: auto;
  object-fit: contain;
  margin-top: 6px;
}

.choose_game:has(.earn-coin-btn) .redeem-coin > div {
  position: relative;
}

.choose_game:has(.earn-coin-btn) .redeem-coin > div > div:first-child {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px 8px 12px;
  border-radius: 14px;
  background: rgba(255, 225, 0, 0.16);
  font-weight: 700;
  font-size: 20px;
  color: #1c274c;
  line-height: 1;
}

.choose_game:has(.earn-coin-btn)
  .redeem-coin
  > div
  > div:first-child
  span:first-child {
  font-size: 12px;
  font-weight: 500;
  color: #62748e;
}

.choose_game:has(.earn-coin-btn) .redeem-coin > div > div:first-child img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.choose_game:has(.earn-coin-btn) .play_btn_txt {
  margin: 34px 0 0 0;
  padding: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: #1c274c;
  text-align: left;
  justify-content: flex-start;
}

.choose_game:has(.earn-coin-btn) p {
  margin: 2px 0 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #1c274c;
  text-align: left;
}

.choose_game:has(.earn-coin-btn) .earn-coin-btn {
  margin-top: 8px;
}

@media (max-width: 340px) {
  .choose_game:has(.earn-coin-btn) .redeem-coin {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .choose_game:has(.earn-coin-btn) .redeem-coin > div {
    width: 100%;
    padding-top: 4px;
  }

  .choose_game:has(.earn-coin-btn) .redeem-coin > div > div:first-child {
    position: static;
    margin: 0 auto 12px;
  }

  .choose_game:has(.earn-coin-btn) .play_btn_txt {
    margin-top: 0;
    text-align: center;
    justify-content: center;
  }

  .choose_game:has(.earn-coin-btn) p {
    text-align: center;
  }
}

.choose_game:has(.class_flex) {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0px;
  padding: 16px 0px;
}

.choose_game:has(.class_flex) .play_btn_txt {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  font-size: 18px;
  margin-left: 4px;
  font-weight: 800;
  text-align: left;
  justify-content: flex-start;
}

.class_flex {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: stretch;
  align-items: stretch;
  gap: 8px;
}

.class_flex a {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

/* Mood cards: row of four; top/bottom pill accents on hover (amber + navy, clipped by radius) */
.class_flex > a .click_btn_option.click_btn {
  position: relative;
  overflow: hidden;
  box-shadow: none;
  border-radius: var(--ui-radius-mood);
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
  height: auto;
  margin-top: 0;
  padding: 10px 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.class_flex > a .click_btn_option.click_btn::before,
.class_flex > a .click_btn_option.click_btn::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 34px;
  height: 5px;
  border-radius: 9999px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.22s ease;
}

.class_flex > a .click_btn_option.click_btn::before {
  top: 0;
  transform: translate(-50%, -50%);
  background: #00e2d7;
}

.class_flex > a .click_btn_option.click_btn::after {
  bottom: 0;
  transform: translate(-50%, 50%);
  background: var(--ui-text);
}

.class_flex > a .click_btn_option.click_btn:hover::before,
.class_flex > a .click_btn_option.click_btn:hover::after {
  opacity: 1;
}

.class_flex .cat-mood-icon {
  background: var(--ui-surface-soft);
}

.click_btn_option.click_btn {
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  color: var(--ui-text);
  border-radius: var(--ui-radius-mood);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.2px;
}

.cat-mood-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.cat-mood-icon .cat_img {
  width: 24px;
  height: 24px;
}

.click_btn_option.click_btn:hover,
.click_btn_option:hover {
  color: var(--ui-text);
}

.click_btn_option:hover .cat_img {
  filter: none;
}
.click_btn_option:hover .cat-mood-icon{
  background-color: #00e2d7;
}
.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.9rem;
  justify-items: center;
  max-width: 500px;
}

#show-all-wrapper {
  display: none;
  justify-content: center;
}

#search-message {
  color: var(--ui-text-soft);
  font-weight: 600;
}

#show-all-btn {
  justify-content: center;
  font-size: 12px;
  color: var(--ui-brand-navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 700;
}


.game_section2 {
  border-radius: var(--ui-radius-card);
  background: var(--ui-surface);
  width: 100%;
  border: 1px solid var(--ui-border);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow: var(--ui-shadow-card);
}

.game_section2:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: var(--ui-shadow-card);
}

.game_section3 {
  overflow: hidden;
  border-radius: var(--ui-radius-card);
  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: var(--ui-surface-soft);
}

.game-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.game-card-badge--trending {
  background: var(--ui-accent-yellow);
  color: var(--ui-text);
}

.game-card-badge--hot {
  background: #e53935;
  color: #fff;
}

.game-card-badge-icon {
  display: block;
  flex-shrink: 0;
}

.game-card-badge-icon--stroke {
  overflow: visible;
}

.game-card-category {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: #fff;
  color: #1e3a5f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.game-card-rating {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 50%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.game-card-rating-star {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.game-details {
  padding: 12px 16px;
}

.gamebox {
  border: 1px solid var(--border-color);
  padding: 16px 4px 12px;
  border-radius: var(--rounded);
}

.game_section_img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ui-radius-card) var(--ui-radius-card) 0 0;
}

.user-coin {
  grid-column: 1;
  justify-self: start;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: auto;
}

.liveUser {
  font-size: 12px;
  color: #62748e;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: auto;
  font-weight: 600;
  gap: 4px;
  white-space: nowrap;
}

.give-coin {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2px;
  color: #ff8b00;
  font-size: 10px;
  font-weight: 700;
  background: #fff3c1a3;
  border-radius: 999px;
  padding: 2px 6px;
  line-height: 1;
  flex-shrink: 0;
}

.give-coin img {
  width: 14px;
  height: 14px;
}

.ad-tag-earn {
  position: absolute;
  top: 0;
  right: 18px;
  z-index: 2;
  padding: 3px 5px 4px;
  border-radius: 0 0px 6px 6px;
  background: #00e2d7;
  color: #000;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: capitalize;
  pointer-events: none;
}

.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(--ui-accent-yellow);
  color: var(--ui-text);
  border: none;
  height: 42px;
  width: 100%;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  gap: 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: collect-btn-glow 2.2s ease-in-out infinite;
}

.earn-coin-btn button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  transform: skewX(-16deg);
  animation: collect-btn-shine 2.6s ease-in-out infinite;
  pointer-events: none;
}

.earn-coin-btn button img {
  width: 24px;
  height: 24px;
  margin-top: 4px;
}

@keyframes collect-btn-shine {
  0% {
    left: -75%;
  }

  100% {
    left: 165%;
  }
}

@keyframes collect-btn-glow {
  0%,
  100% {
    box-shadow: 0 1px 0 rgba(28, 39, 76, 0.06);
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(255, 225, 0, 0.65),
      0 4px 16px rgba(255, 200, 0, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .earn-coin-btn button {
    animation: none;
  }

  .earn-coin-btn button::before {
    animation: none;
    display: none;
  }
}

.ad-container {
  /* border-top: 1px solid var(--border-color); */
  /* border-bottom: 1px solid var(--border-color); */
  text-align: center;
  margin: 0px 0 0px;
  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(--ui-success);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
  border-radius: 100%;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  -o-border-radius: 100%;
}

.game_section5 {
  background: var(--ui-surface);
  border-bottom-right-radius: var(--ui-radius-card);
  border-bottom-left-radius: var(--ui-radius-card);
  padding: 10px 10px 9px;
  display: grid;
  /* auto: user count keeps one line; 1fr: entry stays right without squeezing text */
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  row-gap: 8px;
}

.game_section5 .card-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game_section5 .card-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game_section5 .card-action {
  width: 100%;
}

.game_section6 {
  grid-column: 1 / -1;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: 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: 10px;
}

.game_section6 p {
  margin-bottom: 0;
  text-align: left;
  color: var(--ui-text);
  font-weight: 700;
  line-height: 1.25;
  text-transform: capitalize;
}


/* Home grid: teal â€œPlay Nowâ€ (class play-btn) */
.game_section5 .play-btn {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  gap: 8px;
  background: var(--ui-brand);
  color: var(--ui-text);
  border: none;
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(0, 226, 215, 0.25);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.game_section5 .play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent var(--ui-text);
  flex-shrink: 0;
}

/* Game card ad countdown: same thin ring + dark segment loader as design; text left, loader right */
.game_section5 .play-btn.play-btn--ad-countdown {
  text-transform: none;
  color: var(--ui-text);
}

.game_section5 .play-btn.play-btn--ad-countdown::before {
  content: none;
}

.game_section5 .play-btn.play-btn--ad-countdown::after {
  content: "";
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--ui-text);
  border-radius: 50%;
  flex-shrink: 0;
  animation: play-btn-ad-countdown-spin 0.7s linear infinite;
}

@keyframes play-btn-ad-countdown-spin {
  to {
    transform: rotate(360deg);
  }
}

.play-btn:hover {
  background-color: var(--ui-brand-strong);
}

.about_section {
  margin-top: 20px;
  width: calc(100% - 32px);
  padding: 18px 16px 2px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-panel);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-panel);
}

.about_section h1 {
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 700;
  margin: auto;
  margin-bottom: 8px;
}

.about_section p {
  text-align: start;
  color: var(--ui-text-soft);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 10px;
}

footer {
  display: flex;
  width: calc(100% - 32px);
  justify-content: space-between;
  align-items: center;
  padding: 7px 0px;
  color: var(--ui-text-soft) !important;
}

.anchor_text {
  color: black;
  font-weight: 600;
}

.anchor_text:hover {
  text-decoration: underline;
  color: var(--ui-brand-navy);
}

.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 20px;
  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;
}

/* Oops modal (rewarded ad gate) */
#oopsPopup.popup--oops {
  box-sizing: border-box;
}

#oopsPopup .oops-popup-art {
  width: 100%;
}

#oopsPopup .oops-popup-art img {
 width: auto;
}

#oopsPopup .oops-popup-line1 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: #1a2b47;
}

#oopsPopup .oops-popup-line2 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: #1a2b47;
}

#oopsPopup .oops-popup-line2 strong {
  font-weight: 700;
}

#oopsPopup .oops-collect-wrap {
  position: relative;
  width: 100%;
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

#oopsPopup .oops-collect-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: #ffd700;
  color: #1a2b47;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

#oopsPopup .oops-collect-btn:hover:not(:disabled) {
  background: #ffdf33;
}

#oopsPopup .oops-collect-btn:active:not(:disabled) {
  transform: scale(0.99);
}

#oopsPopup .oops-collect-btn:disabled {
  cursor: wait;
  opacity: 0.92;
}

#oopsPopup .oops-collect-ad-badge {
  position: absolute;
  top: 0;
  right: 14px;
  z-index: 2;
  padding: 4px 7px 5px;
  border-radius: 0 0 8px 8px;
  background: #00e5ff;
  color: #0f172a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: capitalize;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

#oopsPopup .oops-skip-btn {
 text-decoration: underline;
 font-size: 14px;
 background: none;
 border: none;
 margin: 8px auto 0px;
 text-align: center;
 cursor: pointer;
}


#oopsPopup .oops-skip-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.popup-data .main-text {
  font-size: 14px;
  color: #555;
  margin: 40px 0 10px;
}

.popup-data .sub-text {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  margin-bottom: 20px;
}

.watch-btn-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.watch-btn {
  color: var(--ui-text);
  background: var(--ui-brand);
  box-shadow: 0 3px 10px rgba(0, 226, 215, 0.25);
  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;
  /*neededforshimmer*/
  z-index: 1;
}

.watch-btn:hover {
  background: var(--ui-brand-strong);
}

/* .watch-btn::before,
.watch-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 10%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);

    animation: shimmer 2s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
} */

@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: 22px;
  color: #e36414;
  margin-bottom: 8px;
}

.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: auto;
}

.extra-s1space .container {
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.search-wrapper {
  position: relative;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: white;
  overflow: hidden;
}

.search-input {
  font-size: 14px;
  width: 100%;
  border: none;
  background: white;
  color: var(--ui-text);
  border-radius: 14px;
  height: 47px;
  outline: none;
  padding-left: 50px;
  padding-right: 14px;
}

.search-input::placeholder {
  color: var(--ui-text-soft);
}

.search-icon {
  position: absolute;
  left: 7px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 37px;
  height: 37px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 232, 240, 0.53);
  border-radius: 21px;
  border: none;
  color: var(--ui-text);
  pointer-events: none;
  font-size: 18px;
}

.search-icon svg {
  fill: currentColor;
}

.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: 20%;
  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;
}

.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 {
  width: 100%;
}

.click_btn1 {
  background: var(--ui-accent-yellow);
  color: var(--ui-text);
  border: none;
  border-radius: var(--ui-radius-mood);
  box-shadow: var(--ui-shadow-soft);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 10px 28px 10px 28px;
  font-size: 14px;
  height: 42px;
  cursor: pointer;
  -webkit-border-radius: var(--ui-radius-mood);
}

.click_btn1:hover {
  background: #f5e400;
  filter: none;
}

.click_btn1.click_btn:hover {
  background: #f5e400;
  color: var(--ui-text);
}

.resp_footer {
  margin-top: 10px;
  border: 0;
  border-top: 1px solid #eff6ff;
  background: transparent;
}

.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;
    border: none;
    box-shadow: none;
  }

  main {
    background-image: none;
  }

  .game_section2 {
    width: 180px;
  }

  .game_section {
    margin: 0 12px;
  }
}

@media (max-width: 380px) {
  .game_section5 {
    grid-template-columns: 1fr;
  }

  .game_section6 {
    justify-content: center;
  }

  .game_section6 p {
    text-align: center;
  }

  .user-coin {
    grid-column: 1;
    justify-self: center;
  }

  .give-coin {
    grid-column: 1;
    justify-self: center;
  }
}

@media (max-width: 500px) and (min-width: 420px) {
  .game_section1,
  #search-results {
    width: fit-content;
    margin: 0px auto;
  }

  .game-details {
    margin: 12px auto;
    max-width: 370px;
    width: 100%;
    padding: 0px;
  }
}

@media (max-width: 400px) {
  /* .game_section5 button {
        padding: 10px 45px;
    } */

  .about_section {
    padding: 0 16px 16px 16px;
  }

  footer {
    padding: 7px 16px;
  }
}

/* @media(max-width:360px) {
    .game_section5 button {
        padding: 10px 35px;
    }
} */

/* @media(max-width:320px) {
    .game_section5 button {
        padding: 10px 20px;
    }
} */

@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: 4px;
  }
}

@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;
    text-wrap: nowrap;
  }

  .click_btn_option {
    padding: 10px 15px;
  }
}

@media (max-width: 420px) {
  .game_section2,
  .choose_game,
  .play_btn,
  .more_game {
    width: 100%;
  }
  .choose_game:has(.class_flex) {
    margin: 12px 16px 0 16px;
  }
}

@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);
  }
}
