/*
Theme Name: 66 game
Theme URI: https://66-gamevip.com/
Author: 66 game
Description: 66 game theme with navigation, download buttons, SEO head tags, footer, and a 404 page.
Version: 1.0.0
Requires at least: 6.4
Text Domain: game66
*/

:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --brand: #22c55e;
  --brand-dark: #15803d;
  --danger: #e11d48;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  padding-bottom: 88px;
}

a { color: #0369a1; }

img { max-width: 100%; height: auto; }

.site-header {
  background: var(--ink);
  color: #fff;
}

.header-inner,
.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 52px;
  height: auto;
  border-radius: 12px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-brand img {
  width: 64px;
}

.site-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-bars {
  width: 18px;
  height: 2px;
  background: #fff;
  box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
}

.hero,
.page-main,
.entry {
  padding: 36px 0 12px;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.25;
  margin: 0 0 16px;
}

h2 { margin: 2rem 0 0.6rem; font-size: 1.35rem; }
h3 { margin: 1.2rem 0 0.4rem; }

.lead { font-size: 1.05rem; color: #1e293b; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  margin: 24px 0;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  background: #f1f5f9;
}

.app-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin: 8px 0 4px;
}

.app-showcase img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.feature-list,
.step-list { padding-left: 1.2rem; }
.feature-list li,
.step-list li { margin: 0.35rem 0; }

.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 14px 16px;
}

.age-note {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 16px;
  margin: 28px 0 10px;
}

.btn,
.mobile-floating-btn,
.search-form input[type="submit"] {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
}

.btn-muted {
  background: #64748b;
  margin-right: 10px;
}

.mobile-floating-btn {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 40;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
}

.mobile-floating-btn:hover { background: var(--brand-dark); color: #fff; }

.site-footer a:hover { color: #fff; }

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.search-form input[type="search"] {
  min-width: min(100%, 280px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 8px;
  margin: 0 0 16px;
}

.post-card h2 { margin-top: 0; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex: 1 0 100%; }
  .site-header.is-open .site-nav { display: block; }
  .site-nav .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 4px 0 10px;
  }
  .site-nav li { border-top: 1px solid #1e293b; }
  .site-nav a { display: block; padding: 12px 0; }
}

@media (max-width: 640px) {
  .spec-table th { width: 42%; }
  .mobile-floating-btn { width: calc(100% - 24px); text-align: center; }
  .app-showcase-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
    gap: 12px;
  }
}
