/*
Theme Name: 77ATM Game
Theme URI: https://77atmlogin.com
Author: 77ATM Game
Description: Mobile-first theme for the 77ATM Game Android entertainment app. Built for readers in India, with English and Hindi.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Text Domain: atm77
*/

:root {
  --paper: #f3efe6;
  --paper-deep: #e7e0d2;
  --white: #fffcf8;
  --ink: #172033;
  --muted: #5c687a;
  --navy: #101a2c;
  --navy-mid: #1b304c;
  --gold: #e6c27a;
  --gold-deep: #8a4e12;
  --line: rgba(23, 32, 51, 0.12);
  --card: #fffcf8;
  --saffron: #c4622d;
  --safe: #1d5c40;
  --shadow: 0 18px 50px rgba(16, 26, 44, 0.08);
  --radius: 22px;
  --header: 74px;
  --max: 1120px;
  --font: "Manrope", "Noto Sans Devanagari", "Nirmala UI", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }

a { color: var(--gold-deep); text-underline-offset: 0.18em; }

a:hover { color: #6d3b0c; }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 14px;
  z-index: 10000;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  min-height: var(--header);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand img {
  width: 52px;
  height: auto;
  flex: 0 0 auto;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.site-nav {
  position: fixed;
  z-index: 35;
  inset: var(--header) 0 0 0;
  background: rgba(16, 26, 44, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-open .site-nav { opacity: 1; visibility: visible; pointer-events: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px;
  background: var(--white);
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.site-nav a[aria-current="page"],
.site-nav a:hover { background: #f6efe2; color: var(--gold-deep); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 10px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.lang-switch a[aria-current="true"] {
  background: var(--navy);
  color: var(--gold);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero {
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(230, 194, 122, 0.22), transparent 55%),
    linear-gradient(165deg, #17283f 0%, var(--navy) 48%, #0b1422 100%);
  color: #f7f1e6;
  padding: 28px 0 20px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--saffron);
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(1.45rem, 0.7rem + 2.4vw, 2.7rem);
  color: white;
  max-width: 100%;
  text-wrap: balance;
}

.lead, .hero-lead {
  font-size: 1.12rem;
  color: #ddd4c4;
  max-width: 38rem;
  margin: 0 0 12px;
}

.hero-actions, .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-gold { background: var(--gold); color: #1b1408; }
.btn-gold:hover { background: #f0d59a; color: #1b1408; }
.btn-ghost {
  background: transparent;
  color: #f7f1e6;
  border: 1px solid rgba(247, 241, 230, 0.35);
}
.btn-ghost:hover { color: white; border-color: white; }
.btn-navy { background: var(--navy); color: var(--gold); }
.btn-navy:hover { color: white; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.hero-points li {
  border: 1px solid rgba(230, 194, 122, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  color: #efe4d0;
  font-size: 0.92rem;
}

.phone {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  background: #1a0c10;
  border-radius: 28px;
  padding: 7px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(230, 194, 122, 0.35);
}

.phone img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(176px, 48vw);
  max-height: min(390px, 42vh);
  border-radius: 22px;
}

.page-jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 0;
  margin-top: 0;
  scrollbar-width: none;
}

.page-jump a {
  flex: 0 0 auto;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 40px;
}

.section { padding: 28px 0; }
.section-alt { background: var(--white); }
.section-sand { background: transparent; }

.kicker {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 18ch; }
.section .intro { max-width: 42rem; color: var(--muted); margin-top: 0; }

.grid-2,
.grid-3,
.cards {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.card, .step, .reason, .faq details, .notice, .prose, .form, .post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card, .step, .reason { padding: 14px 14px 12px; }

.step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f6efe2;
  color: var(--gold-deep);
  font-weight: 800;
  font-size: 0.92rem;
}

.card h3, .reason h3, .step h3 { font-size: 1.15rem; }

.card p, .reason p, .step p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  gap: 14px;
}

.checklist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px 48px;
  position: relative;
  font-weight: 700;
}
.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--safe);
  position: absolute;
  left: 16px;
  top: 16px;
  box-shadow: inset 0 0 0 4px #d9efe4;
}

.faq { display: grid; gap: 8px; margin-top: 12px; }
.faq details { padding: 6px 16px; box-shadow: none; }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.faq details p { margin: 0 0 12px; color: var(--muted); }

.notice {
  padding: 16px;
  background: #f8f1e4;
  border-color: #e2cfaa;
}
.notice h2 { max-width: none; }
.related {
  margin-top: 16px;
  padding-top: 8px;
}
.related h2 { font-size: 1.3rem; }
.related ul { margin: 0; padding-left: 18px; }
.related a { font-weight: 700; }

.page-hero { padding: 20px 0 4px; }
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); max-width: 16ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.crumbs a { color: var(--muted); }

.prose, .form { padding: 16px; }
.prose h2 { font-size: 1.45rem; max-width: none; margin-top: 0.8em; }
.prose p, .prose li { color: #243044; }
.prose ul { padding-left: 1.1em; }

.form { display: grid; gap: 12px; }
label { font-weight: 800; display: grid; gap: 6px; }
input, textarea {
  width: 100%;
  border: 1px solid #d9d1c3;
  background: white;
  border-radius: 14px;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note, .alert { color: var(--muted); margin: 0; }
.alert-ok { color: var(--safe); font-weight: 800; }
.alert-bad { color: #8d2b1f; font-weight: 800; }

.post-list { display: grid; gap: 10px; }
.post-card { padding: 14px; text-decoration: none; color: inherit; display: block; }
.post-card:hover { border-color: #d7b56a; }
.post-card h2 { font-size: 1.45rem; max-width: none; }
.post-card p { color: var(--muted); margin-bottom: 0; }
.meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }

.pager { display: flex; gap: 10px; margin-top: 16px; }
.pager a, .pager span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

.site-footer {
  background: var(--navy);
  color: #ddd4c4;
  padding: 28px 0 16px;
  margin-top: 8px;
}
.footer-grid { display: grid; gap: 14px; }
.footer-logo { width: 72px; height: auto; margin-bottom: 8px; }
.site-footer a { color: var(--gold); text-decoration: none; font-weight: 700; }
.site-footer h2 { color: white; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 14px;
  padding-top: 10px;
  color: #b7ad9d;
  font-size: 0.92rem;
}

.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  gap: 8px;
}
.mobile-cta .btn { flex: 1; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
  }
  .site-nav ul {
    display: flex;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 4px;
  }
  .site-nav a { min-height: 44px; padding: 0 10px; white-space: nowrap; }
  .hero { padding: 36px 0 24px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  .phone { margin-left: auto; margin-right: 0; }
  .phone img { max-width: min(230px, 26vw); max-height: min(510px, 64vh); }
  .grid-2, .split { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .section { padding: 40px 0; }
  .mobile-cta { display: none; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 879px) {
  body { padding-bottom: 88px; }
  .hero-grid { display: flex; flex-direction: column; }
  .phone { order: -1; width: fit-content; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
