body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #0f0f10;
  color: #fff;
  overflow-x: hidden;
}
*{
	text-decoration:none !important;
}
/* ======== Header ======== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background: linear-gradient(90deg, #18181b, #0f0f10);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 22px;
  font-weight: 600;
  color: #00ffc8;
  text-shadow: 0 0 10px #00ffc8;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover {
  color: #00ffc8;
}
.search-box {
  position: relative;
}
.search-box input {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: #1a1a1a;
  color: #fff;
  outline: none;
  font-size: 14px;
  box-shadow: 0 0 6px rgba(0,255,200,0.3);
}

/* ======== Game Grid ======== */


.fs_button{
    background: #ffffff;
    color: #202124;
    border: none !important;
    padding: 4px 10px;
    border-radius: 0;
    font-weight: 600;
}
.fs_button:hover{
    cursor: pointer;
    background: #ff3b3b;
    color: #ffffff;
}


.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  padding: 30px;
  margin: 0 auto;
}
.game-card {
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgb(100 255 39 / 66%);
}
.game-card img {
  width: 100%;
  display: block;
}
.game-info {
  padding: 0px 5px;
  text-align: center;
  position: absolute;
  bottom: 0;
  background: rgb(255 255 255 / 64%);
  width: 100%;
}
.game-info h3 {
  font-size: 13px;
  margin: 0;
  color: #000000;
  text-align: center;
  font-weight: 600;
  padding: 0 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  padding: 2px 10px;
}

.img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66%;
  background: #111;
}
.img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-spinner {
  position: absolute;
  top: calc(50% - 12px);
  left: calc(50% - 12px);
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 3px solid #000;
  border-top: 3px solid #00bfa5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* ======== Popup ======== */
.popup-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}


.fs_area{
    display: grid;
    margin-top: 15px;
    gap: 10px;
    position: absolute;
    top: -17px;
    right: 34px;
    grid-gap: 5px !important;
}

.popup {
  background: #181818;
  border-radius: 12px;
  min-height: 500px;
  width: 90%;
  max-width: 1200px;
  box-shadow: 0 0 25px rgba(0,255,200,0.2);
  position: relative;
  padding-bottom: 0px;
  animation: fadeIn 0.3s ease;
}
.popup iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: none;
}
.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  font-weight: 900;
  background: #ff3838;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.close-btn:hover {
  background: #ffffff;
  color: #222;
}
.ad-area {
  width: 970px;
  max-width: 95%;
  height: 250px;
  background: #111;
  margin: 20px auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 18px;
  box-shadow: inset 0 0 15px rgba(0,255,200,0.1);
}
.play-center {display: grid;grid-auto-flow: row;justify-content: center;margin: 0 auto;margin-top: 30px;text-align: center;margin-bottom: 0;}
.selected-thumb {
  width: 260px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 3px 3px 15px 0px rgb(0 0 0 / 30%);
}.selected-title {text-align: center;text-transform: capitalize;}
.play-btn {
  padding: 11px 32px;
  background: #66ff54;
  color: #000;
  border: none;
  border-radius: 10px;
  width: 130px;
  font-size: 18px;
  margin: 0 auto;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.play-btn:hover {
  background: #ffea39;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #000;
  border-top: 3px solid #00bfa5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


.smooth{
	animation: smooth both;
	animation-timeline: view(85% 0);
}


@keyframes smooth{
	from {

		filter: saturate(0) contrast(4) brightness(.1) blur(30px);
		opacity:0;
		scale:.25;
		translateY: 0 5rem;
 	}
	
	to {
		filter: none;
		opacity:1;
		scale:1;
		translate: 0 0rem;
 
	}
}

.class_r{
	width:100%;
	display: grid;
	margin: 0 auto;
	justify-content: center;
	margin-top: 20px;
}