/*
Theme Name: Bu7 Game
Theme URI: https://567732.com
Author: Game Apk India
Description: Mobile-first guide for the Bu7 Game Android app, written for readers in India in English and Hindi.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: bu7-game
*/

:root {
  --text: #111111;
  --heading: #3a3a3a;
  --line: #d9d9d9;
  --line-soft: #ececec;
  --blue: #1a73e8;
  --blue-dark: #1558b0;
  --bg: #ffffff;
  --space: 1.25rem;
  --max: 46rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 5;
}

.skip:focus {
  top: 0.75rem;
  color: #fff;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 4;
}

.header-inner {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  min-height: 4rem;
  padding: 0.5rem 0;
}

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

.brand img {
  width: 48px;
  height: 48px;
}

.tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.langs {
  display: flex;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.langs a {
  text-decoration: none;
  color: var(--heading);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.35rem;
}

.langs a[aria-current="true"] {
  color: var(--blue);
  font-weight: 700;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-btn {
  display: none;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--heading);
  padding: 0 0.85rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  margin-left: auto;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--heading);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.menu .current-menu-item a,
.menu a[aria-current="page"] {
  color: var(--blue);
}

.hero {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(1.35rem, 0.85rem + 2.4vw, 2.15rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
}

h3 {
  margin: 1.15rem 0 0.35rem;
  font-size: 1.08rem;
}

p {
  margin: 0 0 0.9rem;
}

.lede {
  font-size: 1.08rem;
  max-width: 40rem;
}

.section {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.25rem 0 0;
}

.app-table th,
.app-table td {
  border: 1px solid var(--line);
  padding: 0.85rem 0.9rem;
  text-align: left;
  vertical-align: middle;
}

.app-table th {
  width: 34%;
  font-weight: 700;
  color: #1c1c1c;
  background: #fff;
}

.logo-slot {
  margin: 1.25rem 0 0.25rem;
  text-align: center;
}

.logo-link {
  display: inline-flex;
  line-height: 0;
}

.logo-link img {
  width: 150px;
  height: 150px;
}

.game-shots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.game-shot {
  display: block;
  line-height: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.game-shots img {
  width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1.25rem;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--blue-dark);
  color: #fff;
}

ul,
ol {
  margin: 0.2rem 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin: 0.25rem 0;
}

.toc {
  margin: 0;
  padding-left: 1.15rem;
}

.toc a {
  text-decoration: none;
}

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

.faq-list h3 {
  margin-top: 1.1rem;
}

.age-note {
  border: 1px solid var(--line);
  padding: 1rem 1.05rem 0.2rem;
}

.crumbs {
  margin: 0 0 1rem;
  color: var(--heading);
  font-size: 0.92rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--heading);
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  min-height: 3rem;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.note {
  border-left: 3px solid var(--line);
  padding-left: 0.85rem;
}

.hp {
  position: absolute;
  left: -9999px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.footer-menu a {
  text-decoration: none;
  font-weight: 600;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.fine {
  color: var(--heading);
  font-size: 0.95rem;
}

.alert {
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  margin: 0 0 1rem;
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  .tools {
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex: 1 0 100%;
    margin-left: 0;
    padding-bottom: 0.4rem;
  }

  .nav-toggle:checked + .site-header .site-nav {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line-soft);
  }

  .menu a {
    width: 100%;
    border-bottom: 1px solid var(--line-soft);
  }

  .app-table th {
    width: 38%;
  }

  .btn {
    width: 100%;
  }

  .game-shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
  }

  .game-shot {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }
}

.apk-float {
  display: none;
}

@media (max-width: 760px) {
  .apk-float {
    display: flex;
    position: fixed;
    z-index: 6;
    left: 1rem;
    right: 1rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    width: auto;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.18);
  }

  .apk-float:hover,
  .apk-float:focus-visible {
    background: var(--blue-dark);
    color: #fff;
  }

  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
