/* tokens.css */
:root {
  --color-white: #ffffff;
  --color-black : #000000;
  --color-primary: #4a90e2;
  --color-secondary: #FF0044;
  --color-ash-theme: #EBEBEB;

  --space-xxs: 4px;
  --space-xl5: 5px;
  --space-sm: 8px;
  --space-xs: 10px; /* added reusable 10px token */
  --space-md: 16px;
  --space-2xs: 20px;
  --space-xl: 22px;
  --space-lg: 24px;
  --space-xl: 32px;
  --font-base: "Arial", sans-serif;
  --radius-md: 8px;
/* FONT SIZES */
  --font-size-sm: 12px;
  --font-size-xs: 14px;
  --font-size-md: 16px;    
  --font-size-base: 18px; 
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 30px;
  --font-size-3xl: 36px;
  
  /* font weight */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}


/* COMMON CSS FOR ALL PAGES */
.font-size-30{font-size: 30px;}
.fw-800{font-weight: 700;}
h1{font-size: var(--font-size-2xl) !important; font-weight: var(--font-weight-bold) !important; color: var(--color-black);}
 h2{font-size: var(--font-size-2xl) !important; font-weight: var(--font-weight-bold) !important; color: var(--color-white);}
 h6{
  font-size: var(--font-size-xs) !important;
  font-weight: var(--font-weight-medium) !important;
  color: var(--color-black) !important;
}
 
 body{overflow-x: hidden; font-size: var(--font-size-md);}
 .text-right{text-align: right;}
 .sub_heading{font-size: var(--font-size-lg);font-weight: var(--font-weight-semibold);color: var(--color-black);}
.header {background: var(--color-white);padding: var(--space-md);}
.header--hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.new_container{max-width: 1200px; margin:auto;}
.search-icon{padding: 0;position: absolute;right: var(--space-md); top: var(--space-xxs);}
.search-bar,.search-bar:hover,.search-bar:focus{background-color: #EBEBEB;border-radius: 32px;border: 0;box-shadow: none;outline: 0;font-size: 14px;}
.w-40{width: 40%;}
.game-list li{padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-xs);}
.game-list li a, .game-list li a:hover{font-size: var(--font-size-xs);background-color: var(--color-secondary);color:var(--color-white);border-radius: var(--space-xl);padding: var(--space-xl5)var(--space-2xs);}
.footer-bg{background-color: var(--color-ash-theme);}

.desktop-ads {width: 100%;height: 250px;}
.left-rail-ads{position: sticky;top: 10px;z-index: 99;}
.new_card{background-color: #EDEDED;border-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;}
.desktop-bottom-ad{
  width: 728px;
  height: 90px;
  margin: 0 auto;
      position: fixed;
    bottom: 0;
    z-index: 999;
}
.search-bottom-ad{
 width: 728px;
  height: 90px;
  position: fixed;
  bottom: 0;
  left: 40%;
  transform: translateX(-50%);
  z-index: 9999;
}


/* Play overlay on game card image (hover) */
.new_card > div:first-child {
  position: relative;
  overflow: hidden;
}

/* dark overlay */
.new_card > div:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 220ms ease;
  border-radius: inherit;
  pointer-events: none;
  border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* play button */
.new_card > div:first-child::after {
  content: "Play";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.9);
  padding: 8px 22px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .2px;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: auto;
  z-index: 5;
  backdrop-filter: blur(4px);
}

/* reveal on hover / focus (keyboard accessible) */
.new_card:hover > div:first-child::before,
.new_card:focus-within > div:first-child::before {
  opacity: 1;
}
.new_card:hover > div:first-child::after,
.new_card:focus-within > div:first-child::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* make sure image covers area nicely */
.new_card .card-img-top {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Disable hover overlay on small/touch screens */
@media (max-width: 991.98px) {
  .new_card > div:first-child::before,
  .new_card > div:first-child::after {
    display: none;
  }
}
.header{
  top: 0; left: 0; width: 100%; z-index: 1000;
  position: fixed;
    transition: .5s ease;
   border-bottom: .1px solid rgba(0,0,0,0.1);
}
.mt-100{ margin-top: 100px; }

.new_card .flex-grow-1 {
    flex-grow: 0 !important;
}
