/*
Theme Name: Damac Game
Theme URI: https://789213.com
Author: Damac Game
Description: India-focused information theme for Damac Game. The only official service address is 789213.com.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: damac-game
*/

:root {
  --ink: #1a2230;
  --ink-soft: #243044;
  --bg: #e7edf2;
  --card: #ffffff;
  --teal: #14b8a6;
  --teal-deep: #0f766e;
  --red: #e10600;
  --red-deep: #c10500;
  --blue: #1d4ed8;
  --text: #243140;
  --muted: #5d6b78;
  --line: #e4ebf1;
  --gold: #e4b45a;
  --shadow: 0 8px 24px rgba(20, 32, 48, 0.06);
  --wrap: 820px;
  --header: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
}

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

a { color: var(--teal-deep); text-underline-offset: 2px; }
a:hover { color: #115e59; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 10000;
}
.skip-link:focus { top: 8px; }

.site-header {
  background: var(--ink);
  color: #fff;
  border-top: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: var(--header);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: #fff; }
.brand-logo { display: block; height: 62px; width: auto; }

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu > li { position: relative; }
.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}
.menu a:hover,
.menu .current-menu-item > a,
.menu .current-menu-ancestor > a { color: var(--teal); }

.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  list-style: none;
  margin: 0;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
}
.menu > li:hover > .sub-menu,
.menu > li:focus-within > .sub-menu { display: block; }
.sub-menu a { color: var(--ink); display: block; padding: 8px 10px; }
.sub-menu a:hover { background: #f3f7f8; color: var(--teal-deep); }

.trust-bar {
  background: #121924;
  color: #d5deE6;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
}
.trust-bar strong { color: #fff; }
.trust-bar a { color: var(--gold); font-weight: 700; text-decoration: none; }

.site-main { padding: 12px 16px 40px; }
.wrap { max-width: var(--wrap); margin: 0 auto; }

.crumbs {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-deep); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #91a0ad; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 13px;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); color: #fff; }
.btn-red { background: var(--red); color: #fff; width: 100%; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; width: 100%; }
.btn-blue:hover { background: #1e40af; color: #fff; }
.btn-ghost {
  background: #eef3f7;
  color: var(--ink);
  width: 44px;
  padding: 0;
}
.btn-ghost:hover { background: #e2eaf0; color: var(--ink); }

.sheet {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
  margin-bottom: 12px;
}

.app-card { padding: 18px 20px 16px; }
.app-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 26px;
}
.app-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-plate {
  width: min(100%, 236px);
  background: #141b27;
  border-radius: 18px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-plate .logo-xl { width: 100%; height: auto; display: block; }
.logo-url {
  margin: 10px 0 2px;
  color: #f4d68a;
  font-family: Consolas, "Segoe UI", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
}
.side-actions { width: 100%; display: grid; gap: 8px; }
.age-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.badge {
  background: #f4f7f8;
  border: 1px solid #e1e8ee;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
.app-main h1 {
  margin: 0 0 4px;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.version-line { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.pills a {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 8px;
}
.pills a:hover { background: var(--teal-deep); color: #fff; }
.summary { margin: 0 0 8px; }
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 14px;
  margin: 0;
}
.specs div { min-width: 0; }
.specs dt { font-size: 13px; color: var(--muted); font-weight: 700; }
.specs dd { margin: 1px 0 0; font-weight: 700; overflow-wrap: anywhere; }

.section-label {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  position: relative;
}
.section-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  background: var(--teal);
}

.entry h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; }
.section-lead { margin: 0 0 12px; font-size: 17px; line-height: 1.55; }
.entry h2 { font-size: 26px; line-height: 1.3; margin: 1.15em 0 0.4em; letter-spacing: -0.02em; }
.entry h2:first-child { margin-top: 0; }
.entry h3 { font-size: 18px; margin: 1.2em 0 0.4em; }
.entry p { margin: 0 0 1em; }
.entry ul, .entry ol { margin: 0 0 1em; padding-left: 1.2em; }
.entry li { margin: 0.25em 0; }
.center-cta { display: grid; justify-items: center; gap: 16px; margin: 8px 0 22px; }
.center-cta .btn { width: auto; min-width: 260px; padding-inline: 22px; }

.faq { display: grid; gap: 8px; margin-top: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px 8px;
  background: #fff;
}
.faq-item h3 { margin: 0; font-size: 16.5px; line-height: 1.4; }
.faq-item p { margin: 6px 0 2px; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.topic-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 14px 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.topic-card:hover { border-color: #b7e6df; color: inherit; }
.topic-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.topic-card p { margin: 0; color: var(--muted); font-size: 14px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list a {
  display: inline-block;
  background: #f4f7f8;
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.tag-list a:hover { background: #e7f7f4; color: var(--teal-deep); }

.news-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.news-list a.news-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.news-list a.news-item:hover { border-color: #b7e6df; }
.news-list h2 { margin: 0 0 4px; font-size: 20px; text-align: left; }
.kicker { color: var(--muted); font-size: 13px; margin: 0 0 6px; }

.post-meta { color: var(--muted); font-size: 14px; margin: -6px 0 16px; }
.author-box {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
}

.form { display: grid; gap: 12px; margin-top: 8px; }
.form label { font-weight: 700; display: grid; gap: 6px; }
.form input, .form textarea {
  font: inherit;
  border: 1px solid #d5dee6;
  border-radius: 8px;
  padding: 12px 12px;
  width: 100%;
}
.hp { position: absolute; left: -9999px; }
.notice {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 8px;
  padding: 10px 12px;
}
.notice.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.site-footer {
  background: var(--ink);
  color: #d5dee6;
  width: 100%;
  padding: 36px 16px 22px;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.footer-grid > div { min-width: 0; }
.footer-grid p { margin: 0; }
.site-footer h2 { color: #fff; font-size: 15px; margin: 0 0 10px; letter-spacing: 0.04em; }
.site-footer a { color: #d5dee6; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal {
  max-width: 1120px;
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: #93a1af;
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-wrap {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink-soft);
    padding: 8px 12px 16px;
  }
  body.nav-open .nav-wrap { display: block; }
  .menu { flex-direction: column; align-items: stretch; }
  .sub-menu { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 10px; }
  .sub-menu a { color: #fff; }
  .sub-menu a:hover { background: transparent; color: var(--teal); }
}

@media (max-width: 720px) {
  .header-inner { min-height: 56px; padding: 6px 12px; gap: 10px; }
  .brand-logo { height: 48px; }
  .trust-bar { font-size: 12.5px; line-height: 1.45; padding: 8px 12px; }
  .site-main { padding: 10px 12px 28px; }
  .app-layout, .cards { grid-template-columns: 1fr; }
  .app-card, .sheet { padding: 16px 14px 16px; }
  .app-side { width: 100%; }
  .logo-plate { width: min(100%, 220px); }
  .specs { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .app-main h1 { font-size: 28px; }
  .entry h1 { font-size: 26px; }
  .entry h2 { font-size: 22px; }
  .section-lead { font-size: 16px; }
  .center-cta { gap: 12px; margin: 4px 0 16px; }
  .center-cta .btn { width: 100%; min-width: 0; }
  .site-footer { padding: 24px 16px 16px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
  }
  .footer-grid > :first-child { grid-column: 1 / -1; margin-bottom: 8px; }
  .site-footer h2 { margin-bottom: 6px; }
  .site-footer li { margin: 0; }
  .site-footer li a { display: block; padding: 7px 0; }
  .legal { margin-top: 16px; line-height: 1.5; }
  .faq-item h3 { font-size: 16px; }
  .btn-ghost { width: 48px; }
}
