@import url('https://fonts.googleapis.com/css?family=Google+Sans:400,500,700&display=swap');
html, body {
  overflow-x: clip;
  font-family: 'Google Sans', sans-serif !important;
  margin: 0;
  padding: 0;
}


.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.container {
  max-width: 1280px;
  padding: 0 16px;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

/* Logo */
.logo img {
  height: 50px;
  width: auto;
}

/* Search */
.search-form {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  max-width: 480px;
}

.search-form input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.search-form button {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #888;
}

/* Menu Button + Container */
.menu-container {
  position: relative;
}

.mobile-toggle {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Dropdown */
.mobile-menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 160px;
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 12px 16px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
    padding: 12px 0;
  }

  .search-form {
    order: 3;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .logo {
    order: 1;
  }

  .menu-container {
    order: 2;
    margin-left: auto;
  }
}




.hero-heading {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #111;
}

.hero-description {
  font-size: 16px;
  text-align: center;
  color: #555;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-section {
  padding: 40px 0;
  background: #f8f9fa;
}

.hero-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #111;
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.hero-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.hero-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.hero-info {
  padding: 16px;
  text-align: center;
}

.hero-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.hero-info span {
  color: #0ea5e9;
  font-weight: 500;
  font-size: 14px;
}


/* Search page minor tweaks */
.container .game-card { margin-bottom: 16px; }



/* Global container (already used in header) */
.container{
  max-width: 1200px;   /* <-- control width here */
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* === All Poki Games — ICON GRID (8 desktop, 4 mobile) === */
.games-wall{
  background:#fff;
  padding:24px 0 48px;
  border-top:1px solid #f1f5f9;
}

/* 8 columns on desktop */
.wall-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(8, minmax(0,1fr));
}

/* tile = small square icon + title */
.tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
  color:#0f172a;
  gap:8px;
}

.thumb{
  width:100%;
  aspect-ratio:1 / 1;                 /* ⬅ square icon */
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  box-shadow:0 6px 14px rgba(0,0,0,.06);
  overflow:hidden;
  transition:transform .15s, box-shadow .15s;
}
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.tile:hover .thumb{ transform:translateY(-2px); box-shadow:0 12px 24px rgba(0,0,0,.10); }

.tile-title{
  font-size:13px;
  font-weight:700;
  color:#111827;
  text-align:center;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* ===== MOBILE-ONLY FIX (<= 480px): 4 icons per row, square thumbs ===== */
@media (max-width: 480px){
  .wall-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px;
  }
  .thumb{
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
  }
  .thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .tile-title{
    font-size: 12px;
    max-width: 95%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* load more */
.load-more-wrap{ text-align:center; margin-top:22px; }
.load-more{
  appearance:none; border:1px solid #e5e7eb; background:#fff;
  border-radius:999px; padding:10px 18px; font-weight:600; cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  transition:transform .15s, box-shadow .15s, background .15s;
}
.load-more:hover{ box-shadow:0 8px 18px rgba(0,0,0,.10); transform:translateY(-1px); }
.load-more:active{ transform:translateY(0); }
.tile[hidden]{ display:none !important; }


/* ===== Features Section ===== */
.features {
  background: #f8fafc;
  padding: 48px 0;
}

.features .section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #111827;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feat-ico {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #0f172a;
}

.feature p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* Responsive for tablets */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}


.article {
  background: #ffffff;
  padding: 40px 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.7;
}

.article h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0f172a;
}

.article h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.article p {
  margin: 0 0 14px;
}

.article ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.article li {
  margin-bottom: 6px;
}

.article a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}

.article a:hover {
  text-decoration: underline;
}

/* Mobile padding adjust */
@media (max-width: 600px) {
  .article {
    padding: 32px 0;
    font-size: 14.5px;
  }
}




.faq {
  background: #ffffff;
  padding: 40px 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
}

.faq h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0f172a;
  text-align: left;
}

/* Native details/summary clean look */
.faq details {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details[open] summary {
  color: #0ea5e9;
}

.faq p {
  margin: 10px 0 0;
  color: #374151;
}

/* Mobile tweak */
@media (max-width: 600px) {
  .faq { padding: 32px 0; font-size: 14.5px; }
}

.faq h2 {
  text-align: center;   /* center the title */
  margin-bottom: 20px;  /* optional: a bit more space */
}



.footer {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  padding: 24px 0;
  color: #111827;
  font-size: 14px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}
.footer .brand img { height: 28px; width: auto; }

.footer .links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer .links a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
}
.footer .links a:hover { text-decoration: underline; }

.footer .copy {
  margin-left: auto;
  color: #475569;
}

/* mobile */
@media (max-width: 700px) {
  .footer .container { justify-content: center; text-align: center; }
  .footer .copy { width: 100%; margin-left: 0; }
}




#backToTopBtn{
  position:fixed; right:16px; bottom:16px;
  width:44px; height:44px; border:none; border-radius:999px;
  background:#0ea5e9; color:#fff; font-size:22px;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:1000;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
#backToTopBtn:hover{ box-shadow:0 8px 18px rgba(0,0,0,.2); }
@media (max-width:600px){ #backToTopBtn{ right:12px; bottom:12px; width:40px; height:40px; font-size:20px; } }



/* ===== Game Page (simple + responsive) ===== */
.game-section{background:#fff;padding:24px 0}
.game-title{font-size:22px;font-weight:700;margin:0 0 12px;color:#0f172a}

.game-embed{
  width:100%;
  aspect-ratio:16/9;          /* desktop default */
  background:#000;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #e5e7eb;
}
.game-embed iframe{width:100%;height:100%;border:0;display:block}

.game-note{margin-top:10px;color:#6b7280;font-size:14px}

/* phones/tablets: little taller viewport */
@media (max-width:768px){
  .game-section{padding:18px 0}
  .game-title{font-size:20px}
  .game-embed{aspect-ratio:4/3}
}

/* ===== Article (simple) ===== */
.article{background:#fff;padding:32px 0;border-top:1px solid #f1f5f9;color:#111827;font-size:15px;line-height:1.7}
.article h2{font-size:22px;font-weight:700;margin:0 0 12px}
.article h3{font-size:18px;font-weight:700;margin:20px 0 8px}
.article p{margin:0 0 12px}
.article ul{padding-left:18px;margin:0 0 12px}
.article a{color:#0ea5e9;text-decoration:none}
.article a:hover{text-decoration:underline}
@media (max-width:600px){
  .article{padding:24px 0;font-size:14.5px}
}
