* {
  font-family: "Dosis" !important;
}

a {
  text-decoration: none;
}

body {
  font-family:
    "Dosis",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-style: normal;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  color: white;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
  margin: auto;
  width: 100% !important;
  height: 100% !important;
}

/* Animated background particles */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 120px;
  height: 120px;
  left: 20%;
  animation-delay: -2s;
}

.particle:nth-child(3) {
  width: 100px;
  height: 100px;
  left: 35%;
  animation-delay: -4s;
}

.particle:nth-child(4) {
  width: 60px;
  height: 60px;
  left: 50%;
  animation-delay: -1s;
}

.particle:nth-child(5) {
  width: 90px;
  height: 90px;
  left: 70%;
  animation-delay: -3s;
}

.particle:nth-child(6) {
  width: 110px;
  height: 110px;
  left: 85%;
  animation-delay: -5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  50% {
    transform: translateY(-10vh) rotate(180deg);
  }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  background: #667eea81;
  border-radius: 20px;
}

.search-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  width: 100%;
  margin-left: -20px;
}

.search-box {
  position: relative;
  width: 80%;
}

.search-box input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.search-icon {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
}

/* Search Results Container */
#searchResultsContainer {
  padding: 10px;
  width: 100%;
  border-radius: 12px;
}

/* ✅ Separate grid (NO conflict) */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.coin-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 320px;
  margin: 16px auto;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1a1a1a, #222, #141414);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  color: #fff;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont;
}

.coin-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.coin-count {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffd54f;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.coin-right {
  text-align: right;
  width: 100%;
}

.coin-text {
  font-size: 11px;
  margin: 0 0 6px;
  opacity: 0.65;
  letter-spacing: 0.3px;
}

.earn-btn {
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #053e1d;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    0 6px 14px rgba(0, 200, 83, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.earn-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 20px rgba(0, 200, 83, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.earn-btn:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(0, 200, 83, 0.3),
    inset 0 2px 0 rgba(0, 0, 0, 0.25);
}

.earn-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.games-container {
  max-width: 375px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  max-width: 1000px;
  margin-top: 10px;
}

.game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.game-card a {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.game-card:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #f2f0f0b8;
}

.game-image {
  border-radius: 10px;
  background: #c5c5c5a8;
  background-size: 400% 400%;
  animation: gradientShift 4s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  position: relative;
}

.img-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-spinner::after {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #00e676;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* Loaded state */
.game-image img.loaded {
  opacity: 1;
}

.game-image img.loaded + .img-spinner,
.game-image img.loaded ~ .img-spinner {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.popup-overlay {
  width: 100%;
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.popup-overlay.active {
  display: flex;
}

.popup-box {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  position: relative;
}

/* OOPS IMAGE */
.oops-img {
  width: 100px;
  margin: -70px auto 10px;
  display: block;
}

/* TEXT */
.popup-title {
  font-size: 16px;
  color: #333;
  margin: 12px 0 6px;
}

.popup-subtitle {
  font-size: 18px;
  color: #000;
  margin-bottom: 18px;
}

/* CLAIM BUTTON */
.claim-btn {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2f6df6, #3f7bff);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 109, 246, 0.45);
}

.claim-btn:active {
  transform: scale(0.98);
}

/* SKIP */
.skip-btn {
  background: none;
  border: none;
  margin-top: 14px;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  text-decoration: underline;
}

/* AD LABEL */
.ad-label {
  position: absolute;
  right: 20px;
  bottom: 110px;
  font-size: 12px;
  color: #999;
}

.game-image img {
  z-index: 999;
  width: 165px;
  height: 110px;
  border-radius: 10px;
  border: 2px solid #fff;
  background-size: cover;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Game categories section */
.game-categories {
  padding: 0 30px 20px;
  background: rgba(0, 0, 0, 0.1);
  max-width: 400px;
  border-radius: 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 10px 0;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(78, 205, 196, 0.8);
  }
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.category-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.category-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.category-card:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% {
    transform: rotate(45deg) translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(45deg) translateX(100%);
    opacity: 0;
  }
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.category-icon {
  font-size: 1.5rem;
  margin: 0;
}

.category-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #4ecdc4;
}

.category-card p {
  opacity: 0.8;
  line-height: 1.6;
}

.game-info {
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

h2 {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  color: #ffeb3b;
}

.game-info h3 {
  font-size: 0.8rem;
  margin: 0.5rem 0;
  color: #64ffda;
}

.play-button {
  font-weight: 400;
  height: auto;
  background-color: #e40000;
  color: #fff;
  border-radius: 10px;
  border: 2px solid #fff;
  font-size: 0.7rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 140px;
  font-size: 0.8rem;
}

.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.load-more-container {
  text-align: center;
  margin: 20px 0;
  width: 100%;
}

.game-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 0 0 20px 20px;
  padding: 30px;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.game-container::before {
  content: "";
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.gameName {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(180deg, #88c6ff, #58dad0, #eaff61);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 1s ease-in-out infinite alternate;
}

.gameImgLink {
  width: 70%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.gameImgLink:hover {
  transform: scale(1.01) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.playLink {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px 0 20px 0;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
  overflow: hidden;
  width: 260px;
}

.playLink::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.playLink:hover::before {
  left: 100%;
}

.playLink:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 107, 107, 0.6);
  background: linear-gradient(45deg, #ff5252, #ff6b6b);
}

.playLink:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.4);
}

.gameDescription {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 20px 20px 0px 0px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.game-meta-details {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 0px 0px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: fit-content;
  margin-top: 20px;
}

.meta-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #ff85855c;
}

.meta-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.meta-label {
  color: rgba(255, 255, 255, 0.9);
}

.meta-value {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.rating-stars {
  color: #ffd700;
}

#loadMoreBtn {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  background: #ff6b6b;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  width: 80%;
}

#loadMoreBtn:hover {
  background: #fd5353;
}

.bottom-nav-menu {
  font-size: 1rem !important;
  line-height: 1.6rem !important;
}

.about-gameswtskoa {
  padding: 0 20px;
  margin: 0 100px;
}

@media screen and (max-width: 374px) {
  main {
    width: 320px !important;
  }

  .games-container {
    max-width: 300px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.4rem;
  }

  h2 {
    font-size: 0.7rem;
  }

  .game-image img {
    width: 138px;
    height: 90px;
  }
}

@media screen and (max-width: 320px) {
  .coin-widget {
    width: 280px;
  }
}

footer p {
  text-align: center;
  font-size: 1rem;
  margin: 20px 0;
  color: #ffffff;
}

.wtskora_banner_top,
.wtskora_banner_mid,
.wtskora_banner_bottom {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  min-height: 300px;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  border: 1px solid #ffffff57;
  overflow: scroll;
}
