/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/



body {
  font-size: 18px;
}
h1 {
  font-size: 2rem!important;
}
h2 {
  font-size: 1.7rem!important;
}

/* Base styles for the image container */


/* ── Game card: Poki-style square tiles ─────────────────────────────── */

/* ── Outer query loop grid: uniform gap ── */
.game-element {
  gap: 0 !important;
  row-gap: 0 !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
.game-element > .gb-grid-column {
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  padding: 3px !important;          /* 3+3 = 6px gap between adjacent cards */
  box-sizing: border-box !important;
}

/* Shadow wrapper — OUTSIDE the card so shadow isn't clipped */
.game-element .gb-query-loop-item {
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}
.game-element .gb-query-loop-item:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
}

/* ── THE CARD: square, hard-clips ALL children ── */
.game-element .home-grid {
  position: relative;       /* reference for absolute children */
  aspect-ratio: 1 / 1;     /* always square */
  border-radius: 12px;
  overflow: hidden;         /* clips image scale */
  clip-path: inset(0 round 12px); /* hard clip (fixes Safari border-radius bug) */
}

/* ── Intermediate wrappers: full size, zero margin/padding/gap ── */
.game-element .home-grid > .gb-container,
.game-element .home-grid .gb-grid-wrapper,
.game-element .home-grid .gb-grid-wrapper > .gb-grid-column,
.game-element .home-grid .gb-grid-wrapper > .gb-grid-column > .gb-container,
.game-element .home-grid .gb-inside-container,
.game-element .home-grid figure[class*="gb-block-image"],
.game-element .home-grid figure[class*="gb-block-image"] > a {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;  /* override GB's max-width: 1280px on inner container */
  margin: 0 !important;
  padding: 0 !important;
  position: static; /* don't create new stacking context — img/video anchor to .home-grid */
}
.game-element .home-grid .gb-grid-wrapper {
  gap: 0 !important; /* remove any GB default grid gap */
}

/* ── Image fills the FULL card, scales on hover ── */
.game-element .home-grid img[class*="gb-image-"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s ease;
  z-index: 0;
}
.game-element .gb-query-loop-item:hover img[class*="gb-image-"] {
  transform: scale(1.07);
}

/* ── Gradient overlay via .home-grid::after (no ID dependency) ── */
.game-element .home-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.28) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
  pointer-events: none;
}
.game-element .gb-query-loop-item:hover .home-grid::after {
  opacity: 1;
}

/* ── Poki video preview (injected by JS) ── */
.poki-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.poki-preview-video.ready {
  opacity: 1;
}
/* ensure image wrapper is the positioning parent – only inside game cards */
.gb-query-loop-item .gb-inside-container {
  position: relative;
}

/* ── Game title at bottom ── */
.game-element .home-grid [class*="gb-headline"] {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  padding: 24px 8px 9px;
  margin: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 5px rgba(0,0,0,1), 0 2px 10px rgba(0,0,0,0.8);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-element .gb-query-loop-item:hover .home-grid [class*="gb-headline"] {
  opacity: 1;
}
.game-element .home-grid [class*="gb-headline"] a {
  display: block;
  max-width: 100%;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Sidebar cards: same hover style as main grid ── */
.game-element .sidebar-listing {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  clip-path: inset(0 round 12px);
}
.game-element .sidebar-listing > .gb-container,
.game-element .sidebar-listing .gb-grid-wrapper,
.game-element .sidebar-listing .gb-grid-wrapper > .gb-grid-column,
.game-element .sidebar-listing .gb-grid-wrapper > .gb-grid-column > .gb-container,
.game-element .sidebar-listing .gb-inside-container {
  display: block; width: 100%; height: 100%;
  max-width: none !important;
  margin: 0 !important; padding: 0 !important;
  position: static;
}
.game-element .sidebar-listing .gb-grid-wrapper { gap: 0 !important; }
.game-element .sidebar-listing img[class*="gb-image-"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.32s ease; z-index: 0;
}
.game-element .gb-query-loop-item:hover .sidebar-listing img[class*="gb-image-"] {
  transform: scale(1.07);
}
.game-element .sidebar-listing::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.28) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.25s ease; z-index: 2; pointer-events: none;
}
.game-element .gb-query-loop-item:hover .sidebar-listing::after { opacity: 1; }
.game-element .sidebar-listing [class*="gb-headline"] {
  position: absolute; bottom: 0; left: 0; right: 0;
  text-align: center; color: #fff; padding: 24px 8px 9px;
  margin: 0; z-index: 3; opacity: 0; transition: opacity 0.25s ease;
  font-size: 13px; font-weight: 700; line-height: 1.2;
  text-shadow: 0 1px 5px rgba(0,0,0,1), 0 2px 10px rgba(0,0,0,0.8);
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-element .gb-query-loop-item:hover .sidebar-listing [class*="gb-headline"] { opacity: 1; }
.game-element .sidebar-listing [class*="gb-headline"] a { color: #fff; text-decoration: none; pointer-events: auto; }
.game-element .sidebar-listing [class*="gb-headline"] a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Placeholder for missing thumbnails */
.game-element .gb-container .gb-block-image img[src=""],
.game-element .gb-container .gb-block-image img:not([src]),
.game-no-thumb .gb-block-image img {
  content: url('/wp-content/themes/generatepress_child/game-placeholder.png');
  object-fit: cover;
}

/* Fallback via onerror handled in JS - base style for placeholder container */
.game-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 10%;
  flex-direction: column;
  gap: 6px;
}

.game-thumb-placeholder svg {
  width: 38%;
  height: 38%;
  fill: rgba(255,255,255,0.25);
}

[class^="gb-container-"] {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2)!important;
}

/* Hide original search item to avoid duplicating icons */
.search-item, a[data-gpmodal-trigger="gp-search"] { display: none !important; }

/* Additional styles for game container */
#game-container {
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}


#game-info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
}

#game-info {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  overflow: hidden;
}
/* Media Query for Mobile Devices */
@media only screen and (max-width: 600px) {
  #game-info img {
    width: 100%; /* Make it fill the container width on mobile */
    height: auto; /* Automatically adjust the height to maintain the aspect ratio */
  }
}
#game-info img {
  width: 50px;
  height: 50px;
  min-height:100%;
  margin-right: 10px;
  border-radius: 10px;
}



#game-info > div {
  display: flex;
  flex-direction: column;
}

/* developer left / rating right row */
.game-meta-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .4rem;
  flex-wrap: nowrap;
}
.game-meta-row > p {
  margin: 0 !important;
  font-size: .78rem;
  color: #8892b0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Fix kk-star-ratings – small, horizontal, pushed right */
#game-info .kk-star-ratings,
#game-info .kk-star-ratings.kksr-shortcode {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  margin: 0;
  flex-shrink: 0;
}
#game-info .kk-star-ratings .kksr-stars {
  display: inline-flex !important;
  flex-direction: row !important;
}
#game-info .kk-star-ratings .kksr-stars .kksr-stars-active,
#game-info .kk-star-ratings .kksr-stars .kksr-stars-inactive {
  display: flex !important;
  flex-direction: row !important;
}
/* Smaller star icons */
#game-info .kk-star-ratings .kksr-icon {
  width: 14px !important;
  height: 14px !important;
}
#game-info .kk-star-ratings .kksr-legend {
  display: none !important;
}

#game-info h1 {
  margin: 0;
  margin-bottom: 3px;
  font-size: 1.5em;
}

#game-info p {
  margin: 0;
  font-size: 80%;
}

#fullscreen-button {
  display: flex;
  align-items: center;
}

#fullscreen-button span {
  display: flex;
  align-items: center;
}

#fullscreen-button span svg {
  margin-right: 5px;
	width:35px;
	height:35px;
}

button,
input,
textarea {
  border-radius: 10px !important;
}

/* .control-btn: see below */

/* Hover effect for the fullscreen button */
#fullscreen-button {
    cursor: pointer;
    color: #0866ff;
    text-decoration: none;
    transition: color 0.5s ease, transform 0.3s ease;
}

/* Change color when hovering over the fullscreen button */
#fullscreen-button:hover {
  color: #0553cc; /* Color on hover */
  transform: scale(1.07);
}

/* Increase the spacing between the select and the fullscreen button */
#server-select {
  margin-right: 20px; /* Adjust the spacing as needed */
}
select {
  cursor: pointer;
  padding: 15px; /* Optional: Add padding to make it look better */
  border-radius: 10px; /* Border radius for rounded corners */
}
.list-has-columns {
  column-count: 2;
  column-gap: 10px; /* Adjust the gap between columns as needed */
  line-height: 1.15; /* Adjust the line height as needed */
}

.list-has-columns li {
  margin-bottom: 1px; /* Adjust spacing between items as needed */
}
.site-logo {
  position: relative;
  overflow: hidden;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%; /* Set the width to match the image width */
  height: 100%; /* Set the height to match the image height */
  transform: skew(-30deg);
  background: rgba(255, 255, 255, 0.5);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 10%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-out;
  animation-name: sweep;
}

@keyframes sweep {
  0% {
    left: -180px;
  }

  60% {
    left: 180px;
  }

  100% {
    left: 180px;
  }
}


#mobile-fullscreen {
            width: 100%;
            height: 100%;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            background-color: #000;
	
        }
        

        #exit-fullscreen-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 0;
    z-index: 1002;
    background-color: white;
    border: none;
    padding: 5px 7px;
    cursor: pointer;
    font-size: 16px;
    width: 45px;
    height: 40px;
    box-shadow: rgb(0 0 0/24%) 0 16px 32px;
    border-radius: 0 16px 16px 0!important;
}


        #game-container {
            position: relative;
        }

        #mobile-start-btn {
    color: white;
    cursor: pointer;
    width: 100px;
    height: 100px;
}
#mobile-background-container {
		display: none;
    position: relative;
    width: 100%;
    height: 350px;
		align-items: center;
    justify-content: center;
}

#mobile-blur-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    filter: blur(8px);
    z-index: 1;
}


.body-no-scroll {
    overflow: hidden;
    position: fixed; /* This can help on some mobile browsers */
    width: 100%;
}


.game-title{
	font-size: 1.8rem;
}
.site-footer li.wp-social-link.wp-block-social-link {
    margin-bottom: unset;
}
h3 {
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 2.25rem;
    font-weight: 600;
    margin-bottom: 32px;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: rgba(0,0,0,.87);
    margin: 0;
    text-size-adjust: 100%;
}
#menu-footer-menu{
	line-height: 1.15;
}
.site-header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
	z-index:3;
}
#menu-main-menu li.menu-item a{
    font-weight: 500;
}
.IUvXcc {
    box-shadow: rgba(65,69,73,.25) 0 1px 10px 0;
}
#related-game .gb-grid-wrapper{
  justify-content: center;
  align-items: center;
	gap:10px;
	
}
#related-game{
	
	padding: 20px 0px;
}
 .gb-container-b850d34d{
	border-radius:10px!important;
}
img{
	border-radius:10px;
}

.entry-content:not(:first-child), .entry-summary:not(:first-child), footer.entry-meta {
    margin-top: 0em;
}
/*tablet*/
@media (min-width: 768px) and (max-width: 1024px) {
    .generate-columns.tablet-grid-50, .grid-sizer.tablet-grid-50 {
        width: 33%;
    }
}
/*mobile*/
@media (max-width: 767px) {
    .generate-columns.mobile-grid-100, .grid-sizer.mobile-grid-100 {
        width: calc(50% - 5px);
        padding-left: 10px;
    }
}

.gg-external-games .gb-container-6d526422 {
    padding: 5px!important;
}
.gg-external-games {
	padding: 10px 0px;
	
	
}



.gg-external-games .gb-grid-wrapper > .gb-grid-column-d475d71b {
    width: 33%!important;
}


#game-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
#game-preview .video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
  opacity: 1;
}

#game-preview .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(8, 8, 18, 0.82);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.13) 0%, transparent 50%),
    radial-gradient(circle at 60% 85%, rgba(34, 211, 238, 0.10) 0%, transparent 45%),
    radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: auto, auto, auto, 22px 22px;
  z-index: 1;
}

#game-preview button {
  max-width: 320px;
  display: flex;
  overflow: visible;
  position: relative;
  padding: 0.9rem 4.5rem 0.9rem 1.5rem;
  background-color: #FFD700;
  background-image: none;
  color: #000000;
  font-size: 14px;
  line-height: 1.25rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
  align-items: center;
  border-radius: 0;
  gap: 0.75rem;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  letter-spacing: 1px;
  transition: transform 0.06s, box-shadow 0.06s;
  cursor: pointer;
}
#game-preview .button-container{
  display:flex;
  align-items: center;
justify-content: center;
z-index: 1;
  
  
}
#game-preview .desc-container {
  padding:1px;
  color: white;
  text-align: center;
  z-index: 1;
   display: flex;
  flex-direction: column; /* Ensure a vertical stacking of elements */
  align-items: center;
  justify-content: center;
  margin: 5px 0;
}

#game-preview button span {
  background-color: #FFA000;
  display: grid;
  position: absolute;
  right: 0;
  place-items: center;
  width: 3rem;
  height: 100%;
  border-left: 3px solid #000;
}

#game-preview button span svg {
  width: 1.5rem;
  height: 1.5rem;
}

#game-preview button:hover {
  box-shadow: 7px 7px 0 #000;
  transform: translateY(-2px);
}
#game-preview button:active {
  box-shadow: 1px 1px 0 #000;
  transform: translateY(4px) translateX(4px);
}


#game-preview img {
  border-radius: 10%;
}

#game-preview .desc-container h1, #game-preview img, #game-preview p {
  margin: 5px 0;
  padding: 0px 20px;
}

#game-preview span {
  font-size: 2rem;
}

#game-preview p{
  margin-bottom:20px;
  color:gray;
}


#nav-below.paging-navigation {
  opacity: 1;
  text-align: center;
}

.nav-previous, .nav-links {
  display: inline-block;
  margin-right: 20px;
}

#nav-below.paging-navigation {
  opacity: 1;
  text-align: center;
}

.nav-previous, .nav-links {
  display: inline-block;
  margin-right: 20px;
}

.nav-previous a, .nav-links a {
  text-decoration: none;
  color: black;
  background-color: transparent;
  border: 2px solid black;
  border-radius: 10px; /* Bo góc 10px */
  padding: 10px 20px;
  font-size: 1.2em;
  transition: background-color 0.3s, color 0.3s;
}

.nav-previous a:hover, .nav-links a:hover {
  background-color: black;
  color: white;
}

.page-numbers.current {
  border: 2px solid black;
  background-color: #007bff; /* Màu nền cho trang hiện tại */
  color: white;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1.2em;
}

.icon-arrow svg {
  width: 20px; /* Kích thước mũi tên */
  height: 20px;
}
.control-btn {
   display: flex;
   gap: 1.5rem;
   align-items: center;
   justify-content: flex-end;
   position: relative;
}

.tooltip {
   position: relative;
   display: flex;
   align-items: center;
}

.icon-btn {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 2.5rem;
   height: 2.5rem;
   padding: 0.5rem;
   border-radius: 0.375rem;
   background: transparent;
   border: none;
   cursor: pointer;
   text-decoration: none;
   transition: all 0.3s ease;
}

.icon-btn:hover {
   background: #e6f4ff;
}


.icon-btn:active {
   background: #e6f4f3;
}
.icon-btn:hover svg {
   stroke: #1677ff;
}

.icon-btn:hover #fullscreen-button svg {
   fill: #1677ff;
}

.tooltiptext {
   visibility: hidden;
   position: absolute;
   bottom: calc(100% + 6px);
   left: 50%;
   transform: translateX(-50%);
   background: #1f2937;
   color: white;
   padding: 0.5rem 0.75rem;
   border-radius: 0.25rem;
   font-size: 0.875rem;
   white-space: nowrap;
   z-index: 9999;
   min-width: 80px;
   text-align: center;
}

.tooltip:hover .tooltiptext {
   visibility: visible;
}

.control-icon,
#fullscreen-button svg,
#comments-button svg,
#goto-button svg {
   width: 1.8rem;
   height: 1.8rem;
   stroke: #1677ff;
   stroke-width: 2;
   transition: all 0.3s ease;
	fill: #1677ff;
}


/* ── Search bar layout ───────────────────────────────────────────────── */
.gg-header-search {
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
}
@media (max-width: 768px) {
  .gg-header-search { width: 100%; margin-top: 8px; }
}
.gg-header-search .w3gi-search-wrapper { display: inline-flex !important; width: 100%; }

.w3gi-search-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.w3gi-search-input {
  min-width: 260px;
  max-width: 340px !important;
  padding: 8px 36px 8px 18px !important;
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
  color: #1e293b;
}
@media (max-width: 768px) {
  .w3gi-search-input { min-width: 0; width: 100%; }
}
.w3gi-search-input:focus {
  border-color: var(--sb-a, #8b5cf6) !important;
  box-shadow: 0 0 0 3px rgba(139,92,246,.15) !important;
  background: #fff !important;
}

/* ── Search results dropdown ──────────────────────────────────────────── */
.w3gi-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 300px;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #16182a;
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(139,92,246,.08);
  z-index: 999999;
  padding: 4px 0;
  /* Firefox custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,.4) transparent;
}
/* show when JS adds .w3gi-open */
.w3gi-results.w3gi-open { display: block; }

/* WebKit custom scrollbar */
.w3gi-results::-webkit-scrollbar { width: 4px; }
.w3gi-results::-webkit-scrollbar-track { background: transparent; }
.w3gi-results::-webkit-scrollbar-thumb {
  background: rgba(139,92,246,.45);
  border-radius: 4px;
}
.w3gi-results::-webkit-scrollbar-thumb:hover {
  background: rgba(139,92,246,.7);
}

/* ── Loading spinner ─────────────────────────────────────────────────── */
.w3gi-spin-box {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  display: none;
  border: 2px solid rgba(139,92,246,.25);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: w3gi-spin .55s linear infinite;
}
.w3gi-spin-box.is-loading { display: block; }
@keyframes w3gi-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ── Section header "Trending searches" ──────────────────────────────── */
.w3gi-r-popular-header {
  padding: 8px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(139,92,246,.9);
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Each result row ─────────────────────────────────────────────────── */
.w3gi-r-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  text-decoration: none !important;
  color: #e2e8f0 !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  transition: background .12s ease;
  cursor: pointer;
}
.w3gi-r-item:hover,
.w3gi-r-item.w3gi-r-active {
  background: rgba(139,92,246,.15);
  color: #fff !important;
}
/* thumbnail — compact square */
.w3gi-r-item img {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #2a2d48;
}
/* title text */
.w3gi-r-item > span:not(.w3gi-r-badge):not(.w3gi-r-rank) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* highlight match */
.w3gi-r-item mark.w3gi-hl {
  background: none;
  color: #a78bfa;
  font-weight: 700;
}
/* rank number badge */
.w3gi-r-rank {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.w3gi-r-rank--top { color: #f59e0b; }   /* top 3 → gold */
/* empty / error state */
.w3gi-r-empty {
  padding: 14px 16px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}
.w3gi-r-err { color: #f87171; }

/* Trending keyword rows (real user queries → ?s=) */
.w3gi-r-item.w3gi-r-keyword {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 10px;
}
.w3gi-r-keyword-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(139,92,246,.2);
  color: #c4b5fd;
}
.w3gi-r-keyword-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.w3gi-r-keyword-sub {
  flex-basis: 100%;
  padding-left: calc(18px + 10px + 28px + 10px);
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  margin-top: -2px;
}

/* ── Smart tooltip: fix z-index + responsive positioning ─────────────── */
.tooltiptext {
   z-index: 9999 !important;
   pointer-events: none;
}
.tooltiptext--left {
   left: auto !important;
   right: 0 !important;
   transform: none !important;
}
@media (hover: none) {
   .tooltiptext { display: none !important; }
}

/* ── Report modal ─────────────────────────────────────────────────────── */
/* ── Report button ── */
#report-game-btn {
  color: #6b7280;
}
#report-game-btn:hover {
  background: #fff0f0 !important;
  color: #ef4444;
}
#report-game-btn:hover svg {
  stroke: #ef4444;
}

#report-modal {
   position: fixed; inset: 0; z-index: 99999;
}
#report-modal-backdrop {
   position: absolute; inset: 0;
   background: rgba(0,0,0,.6);
   backdrop-filter: blur(2px);
}
#report-modal-box {
   position: absolute;
   top: 50%; left: 50%;
   transform: translate(-50%,-50%);
   background: #1f2937;
   color: #f9fafb;
   border-radius: .75rem;
   width: min(92vw, 420px);
   box-shadow: 0 20px 60px rgba(0,0,0,.5);
   overflow: hidden;
}
#report-modal-header {
   display: flex; align-items: center; justify-content: space-between;
   padding: 1rem 1.25rem;
   border-bottom: 1px solid rgba(255,255,255,.1);
   font-weight: 600; font-size: 1rem;
}
#report-modal-close {
   background: none; border: none; color: #9ca3af;
   font-size: 1.5rem; cursor: pointer; line-height: 1;
   padding: 0 .25rem;
}
#report-modal-close:hover { color: #f9fafb; }
#report-modal-body { padding: 1.25rem; }
#report-modal-game-name {
   font-size: .875rem; color: #9ca3af; margin: 0 0 1rem;
   white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.report-reasons {
   display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem;
}
.report-reasons label {
   display: flex; align-items: center; gap: .6rem;
   font-size: .9rem; cursor: pointer;
}
.report-reasons input[type=radio] { accent-color: #3b82f6; width:16px; height:16px; }
#report-note {
   width: 100%; box-sizing: border-box;
   background: #111827; border: 1px solid rgba(255,255,255,.15);
   border-radius: .375rem; color: #f9fafb;
   padding: .6rem .75rem; font-size: .875rem; resize: vertical;
   font-family: inherit;
}
#report-note:focus { outline: none; border-color: #3b82f6; }
#report-modal-footer {
   padding: .75rem 1.25rem 1.25rem;
   display: flex; justify-content: flex-end; gap: .75rem;
}
#report-cancel-btn {
   background: rgba(255,255,255,.08); border: none; color: #d1d5db;
   padding: .55rem 1.1rem; border-radius: .375rem; cursor: pointer; font-size: .875rem;
}
#report-cancel-btn:hover { background: rgba(255,255,255,.14); }
#report-submit-btn {
   background: #3b82f6; border: none; color: #fff;
   padding: .55rem 1.25rem; border-radius: .375rem; cursor: pointer; font-size: .875rem;
   font-weight: 600;
}
#report-submit-btn:hover { background: #2563eb; }
#report-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
#report-modal-msg {
   padding: .5rem 1.25rem 1rem;
   font-size: .875rem; text-align: center;
}


/* ── AdSense CLS prevention - reserve space before ad loads ── */
ins.adsbygoogle {
  display: block !important;
  min-height: 250px;
}
@media (max-width: 767px) {
  ins.adsbygoogle {
    min-height: 100px;
  }
}

/* ── Mobile overflow guard ─────────────────────────────────────────────
 * Keep the sticky header to one row: logo fixed, search flexes.
 * This prevents the search box from being pushed off-canvas on phones.
 */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  .site-header .inside-header,
  #page,
  #content {
    max-width: 100vw;
    box-sizing: border-box;
  }

  .site-header .inside-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .site-header .site-logo {
    flex: 0 0 44px !important;
    width: 44px !important;
    max-width: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
  }

  .site-header .site-logo img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
  }

  .gg-header-search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .gg-header-search .w3gi-search-wrapper,
  .w3gi-search-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .w3gi-search-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .w3gi-results {
    min-width: 0 !important;
    width: 100% !important;
    max-width: calc(100vw - 24px) !important;
  }

  .site-main,
  .inside-article,
  .entry-content,
  .gb-container,
  .gb-grid-wrapper {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ── Request Game Header Button & Menu Item ── */
.c6x-request-menu-bar-item {
  display: inline-flex !important;
  align-items: center !important;
  margin-right: 12px !important;
}
.c6x-request-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #3b82f6 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}
.c6x-request-nav-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 768px) {
  .c6x-request-menu-bar-item {
    margin-right: 6px !important;
  }
  .c6x-request-nav-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }
}
