/* ==========================================================================
   King567 — king567.live
   Theme: Royal black & gold. Fonts: Cinzel (display) + Manrope (body).
   ========================================================================== */

:root {
  --bg:            #0b0b0d;
  --bg-2:          #121216;
  --surface:       #17171d;
  --surface-2:     #1e1e26;
  --line:          #2a2a33;
  --gold:          #f5c518;
  --gold-2:        #e0a90a;
  --gold-soft:     #ffdf6b;
  --gold-deep:     #b8860b;
  --ink:           #f4f1e9;
  --muted:         #a7a29a;
  --muted-2:       #7c7871;
  --red:           #d33a2c;
  --green:         #37b26a;
  --radius:        14px;
  --radius-sm:     9px;
  --shadow:        0 18px 45px rgba(0,0,0,.55);
  --shadow-gold:   0 10px 30px rgba(245,197,24,.18);
  --maxw:          1180px;
  --font-display:  "Cinzel", Georgia, serif;
  --font-body:     "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 78% -8%, rgba(245,197,24,.10), transparent 60%),
    radial-gradient(700px 480px at -6% 12%, rgba(245,197,24,.06), transparent 55%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-soft); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ink); letter-spacing: .3px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { margin-bottom: 1.05rem; color: #d8d3c9; }
strong { color: var(--ink); }

.wrap { width: 92%; max-width: var(--maxw); margin: 0 auto; }
.gold { color: var(--gold); }
.section { padding: 76px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  display: inline-block;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.center-block { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: 13px 26px; border-radius: 40px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 45%, var(--gold-2));
  color: #1a1405; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { color: #1a1405; box-shadow: 0 14px 34px rgba(245,197,24,.32); }
.btn-ghost { background: transparent; color: var(--gold); border-color: rgba(245,197,24,.5); }
.btn-ghost:hover { background: rgba(245,197,24,.08); color: var(--gold-soft); }
.btn-wa { background: #25d366; color: #06331b; }
.btn-wa:hover { color: #06331b; box-shadow: 0 12px 30px rgba(37,211,102,.32); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,11,13,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { height: 38px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.brand-name b { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .95rem; padding: 9px 15px; border-radius: 30px;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover, .nav-links a.active { background: rgba(245,197,24,.12); color: var(--gold); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--gold); margin: 5px 0; border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 span { display: inline-block; }
.hero .lead { margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); display: block; }
.hero-stats .stat span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-art {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--surface);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.badge-float {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: rgba(11,11,13,.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(245,197,24,.28); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: .9rem;
}
.badge-float .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(55,178,106,.2); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245,197,24,.4); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(245,197,24,.12); color: var(--gold); margin-bottom: 16px; font-size: 1.4rem;
}

.game-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--surface); }
.game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s ease; }
.game-card:hover img { transform: scale(1.05); }
.game-card .cap { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.game-card .cap b { font-family: var(--font-display); font-size: 1rem; }
.game-card .cap span { font-size: .8rem; color: var(--muted); }

/* ---------- Section heading ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head p { color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.step .num {
  flex: none; counter-increment: step; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-2)); color: #1a1405;
  font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; font-size: 1.15rem;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Tools ---------- */
.tool {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 100%;
}
.tool h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.tool .hint { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-family: var(--font-body); font-size: 1rem;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,197,24,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-out {
  margin-top: 18px; padding: 16px; border-radius: var(--radius-sm);
  background: rgba(245,197,24,.07); border: 1px dashed rgba(245,197,24,.4); text-align: center; min-height: 58px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.tool-out .big { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); line-height: 1; }
.tool-out small { color: var(--muted); }
.coin {
  width: 96px; height: 96px; margin: 4px auto 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold) 45%, var(--gold-deep));
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #4a3600;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.25), var(--shadow-gold); transition: transform .1s linear;
}
.coin.spin { animation: flip .9s ease-in-out; }
@keyframes flip { 0%{transform:rotateY(0)} 100%{transform:rotateY(1980deg)} }

/* ---------- Auth pages ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 620px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-art { position: relative; background: var(--surface); }
.auth-art img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.auth-art .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,13,.15), rgba(11,11,13,.85)); display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; }
.auth-art .overlay h2 { color: #fff; }
.auth-form { background: var(--bg-2); padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-form .sub { color: var(--muted); margin-bottom: 26px; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: 14px; text-align: center; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: var(--muted); margin: 4px 0 18px; }
.checkbox-row input { margin-top: 4px; accent-color: var(--gold); }

/* ---------- APK / download ---------- */
.apk-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.apk-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(55,178,106,.12); color: var(--green); border: 1px solid rgba(55,178,106,.3); padding: 6px 14px; border-radius: 30px; font-size: .82rem; font-weight: 700; }
.spec-list { list-style: none; }
.spec-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { color: var(--ink); font-weight: 600; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--surface); color: var(--gold); font-family: var(--font-display); font-weight: 700; }
td { color: #d8d3c9; }
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ / accordion ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; background: var(--surface); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 4px 22px 20px; color: var(--muted); }
.faq .faq-body p { color: var(--muted); }

/* ---------- Legal / article ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { margin: 34px 0 12px; font-size: 1.5rem; }
.legal h3 { margin: 24px 0 8px; }
.legal p, .legal li { color: #cfcabf; }
.legal ul, .legal ol { margin: 0 0 1.1rem 1.3rem; }
.legal li { margin-bottom: 8px; }
.updated { color: var(--muted-2); font-size: .9rem; margin-bottom: 26px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; }
.toc h4 { margin-bottom: 10px; color: var(--gold); }
.toc ul { list-style: none; columns: 2; gap: 20px; }
.toc li { margin-bottom: 7px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, rgba(245,197,24,.14), rgba(245,197,24,.04));
  border: 1px solid rgba(245,197,24,.28); border-radius: 20px; padding: 46px 40px; text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 62px 0 40px; text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(700px 300px at 50% -30%, rgba(245,197,24,.10), transparent 70%); }
.page-hero .crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.page-hero .crumbs a { color: var(--muted); }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: #08080a; border-top: 1px solid var(--line); padding: 56px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-grid h4 { font-family: var(--font-display); font-size: 1rem; color: var(--gold); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); font-size: .93rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { color: var(--muted); font-size: .92rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg { height: 34px; }
.age-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--red); color: #f5a79f; border-radius: 30px; padding: 5px 13px; font-size: .8rem; font-weight: 700; margin-top: 14px; }
.age-chip b { background: var(--red); color: #fff; border-radius: 20px; padding: 1px 8px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: .85rem; }
.footer-bottom a { color: var(--muted-2); }
.disclaimer-strip { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-top: 26px; font-size: .82rem; color: var(--muted-2); text-align: center; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Utility ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 7px 15px; font-size: .86rem; color: var(--muted); }
.pill b { color: var(--gold); }
.divider { height: 1px; background: var(--line); margin: 46px 0; border: 0; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .apk-hero, .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ul { columns: 1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 14px 20px 22px;
    transform: translateY(-140%); transition: transform .28s ease; z-index: 55;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .section { padding: 54px 0; }
}
