/* ============================================================
   Kuda77 — Portal Informasi Permainan Online (Bahasa Indonesia)
   Stylesheet utama — responsif: ponsel / tablet / desktop
   ============================================================ */

:root {
  --ink: #17171f;
  --muted: #56566a;
  --paper: #ffffff;
  --soft: #f5f6fa;
  --line: #e6e8f0;
  --navy: #14141f;
  --navy-2: #1d1d2e;
  --navy-3: #262640;
  --red: #c8102e;
  --red-dark: #a30d26;
  --gold: #f6b73c;
  --gold-2: #e8a020;
  --gold-soft: #fff4da;
  --green: #1e8a54;
  --green-soft: #e7f6ee;
  --blue: #2456c7;
  --blue-soft: #e9eefb;
  --shadow-sm: 0 1px 3px rgba(20, 20, 31, 0.08);
  --shadow-md: 0 10px 28px rgba(20, 20, 31, 0.14);
  --radius: 14px;
  --header-h: 66px;
  --floatbar-h: 64px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; min-width: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1em; }

ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy);
  padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 0.98rem; font-family: var(--font);
  cursor: pointer; line-height: 1.2; text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #ffd970, var(--gold-2)); color: var(--navy); box-shadow: 0 4px 14px rgba(232, 160, 32, 0.35); }
.btn-gold:hover { box-shadow: 0 6px 18px rgba(232, 160, 32, 0.5); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.topbar {
  background: linear-gradient(90deg, var(--navy), var(--navy-3));
  color: #d9d9e8; font-size: 0.78rem; text-align: center;
  padding: 6px 14px; letter-spacing: 0.02em;
}
.topbar strong { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border-bottom: 1px solid rgba(246, 183, 60, 0.25);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.brand-name span { color: var(--gold); }
.brand-tag { display: block; font-size: 0.62rem; font-weight: 600; color: #a9a9c2; letter-spacing: 0.14em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 8px 12px; color: #d9d9e8; font-weight: 600;
  font-size: 0.93rem; border-radius: 8px; text-decoration: none !important;
}
.main-nav a:hover { color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.main-nav a[aria-current="page"] { color: var(--gold); background: rgba(246, 183, 60, 0.12); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(246, 183, 60, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(200, 16, 46, 0.22), transparent 55%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
  padding: 64px 0 68px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(246, 183, 60, 0.14); border: 1px solid rgba(246, 183, 60, 0.4);
  color: var(--gold); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #c9c9dc; font-size: 1.05rem; max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e6e6f2; font-size: 0.8rem; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: 18px; border: 2px solid rgba(246, 183, 60, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.hero-figure figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(16, 16, 24, 0.78); backdrop-filter: blur(4px);
  color: #e9e9f4; font-size: 0.78rem; padding: 9px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Bagian / Section ---------- */
.section { padding: 58px 0; }
.section--soft { background: var(--soft); }
.section--navy {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
}
.section--navy h2 { color: #fff; }
.section--navy .lead { color: #c9c9dc; }

.section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--gold-2); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px;
}
.section--navy .eyebrow { color: var(--gold); }
.lead { color: var(--muted); font-size: 1.02rem; }

/* ---------- Kartu & Grid ---------- */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background: var(--gold-soft); border: 1px solid #f0dcae;
}
.card-icon--green { background: var(--green-soft); border-color: #bfe6d2; }
.card-icon--blue { background: var(--blue-soft); border-color: #c7d5f3; }
.card-icon--red { background: #fde8ec; border-color: #f3c2cc; }
.card-link { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 0.92rem; }

/* kartu kategori (gambar) */
.cat-card { padding: 0; overflow: hidden; text-decoration: none !important; color: var(--ink); }
.cat-card:hover { color: var(--ink); }
.cat-card figure { margin: 0; }
.cat-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.cat-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cat-card .cat-tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red); background: #fde8ec;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- Langkah bernomor ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; counter-increment: step; box-shadow: var(--shadow-sm);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  background: linear-gradient(180deg, #ffd970, var(--gold-2)); color: var(--navy);
  font-weight: 800; font-size: 0.95rem;
}
.step h3 { font-size: 1.06rem; }
.step p { font-size: 0.93rem; color: var(--muted); margin-bottom: 0; }

/* ---------- Ulasan ---------- */
.review { position: relative; }
.review quote, .review blockquote { margin: 0 0 14px; font-size: 0.97rem; }
.review .quote-mark { color: var(--gold-2); font-size: 2rem; font-weight: 800; line-height: 1; display: block; margin-bottom: 6px; }
.review .reviewer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: var(--gold);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.review .who strong { display: block; font-size: 0.92rem; }
.review .who span { font-size: 0.8rem; color: var(--muted); }
.review .tag {
  margin-left: auto; font-size: 0.68rem; font-weight: 700; color: var(--muted);
  border: 1px dashed var(--line); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.reviews-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 22px; }

/* ---------- Kotak info ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--radius); padding: 18px 20px; font-size: 0.94rem; margin: 26px 0;
}
.notice .ico { font-size: 1.3rem; line-height: 1.5; }
.notice--gold { background: var(--gold-soft); border: 1px solid #eed9a8; }
.notice--green { background: var(--green-soft); border: 1px solid #bfe6d2; }
.notice--red { background: #fdeef1; border: 1px solid #f3c8d0; }
.notice--blue { background: var(--blue-soft); border: 1px solid #c7d5f3; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Artikel ---------- */
.article { max-width: 800px; margin: 0 auto; }
.article-header { margin-bottom: 26px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.article-meta .cat-tag {
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); background: #fde8ec; padding: 4px 11px; border-radius: 999px;
}
.article-figure { margin: 0 0 26px; }
.article-figure img { border-radius: var(--radius); width: 100%; object-fit: cover; max-height: 520px; }
.article-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; text-align: center; }

.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { font-size: 1.01rem; }
.prose a { font-weight: 600; }

.key-box {
  background: var(--gold-soft); border: 1px solid #eed9a8; border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 18px 22px; margin: 26px 0;
}
.key-box h3 { margin: 0 0 8px; font-size: 1.02rem; }
.key-box ul { margin-bottom: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 16px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 0.82rem; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; color: var(--gold-2); font-weight: 800; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--red-dark); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }

/* ---------- Layout halaman konten ---------- */
.page-head { padding: 34px 0 6px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 10px; }
.page-head .lead { max-width: 76ch; margin-bottom: 26px; }
.page-body { padding: 40px 0 64px; }

.content-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.aside-box {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 22px;
}
.aside-box h2, .aside-box h3 { font-size: 1.02rem; margin-bottom: 12px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.aside-box li:last-child { border-bottom: 0; }
.aside-box a { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; padding: 17px 52px 17px 20px; font-weight: 700; font-size: 1rem;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--gold-2); font-weight: 800; font-size: 1.05rem;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Promosi ---------- */
.promo-card { padding: 0; overflow: hidden; }
.promo-card figure { margin: 0; position: relative; }
.promo-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.promo-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: rgba(20, 20, 31, 0.85); color: var(--gold);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(246, 183, 60, 0.5);
}
.promo-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.promo-card .terms-mini { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 14px; }
.promo-card .terms-mini span {
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  background: var(--soft); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
}
.promo-details { margin-top: 10px; }
.promo-details summary {
  cursor: pointer; font-weight: 700; font-size: 0.92rem; color: var(--red-dark);
  padding: 8px 0;
}
.promo-details .inner {
  border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px;
  font-size: 0.9rem; color: var(--muted);
}

.terms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 26px 0; }
.term-item {
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.term-item dt {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 6px;
}
.term-item dd { margin: 0; font-weight: 600; font-size: 0.95rem; }

/* ---------- Formulir ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 30px; max-width: 560px; margin: 0 auto;
}
.form-card h2 { font-size: 1.3rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: var(--font); background: #fbfbfe; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(246, 183, 60, 0.25); background: #fff; }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 0.88rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.form-card .btn { width: 100%; margin-top: 6px; }

/* ---------- Kamus istilah ---------- */
.glossary dt {
  font-weight: 800; color: var(--navy); margin-top: 20px;
  padding-top: 16px; border-top: 1px dashed var(--line); font-size: 1.02rem;
}
.glossary dt:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.glossary dd { margin: 6px 0 0; color: var(--muted); }

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none !important;
  border: 1px solid var(--line); color: var(--ink); background: var(--paper);
  transition: all 0.15s ease;
}
.tag-cloud a:hover { border-color: var(--gold-2); background: var(--gold-soft); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy-2), #0d0d16);
  color: #b9b9cc; padding: 54px 0 0; margin-top: auto;
  border-top: 3px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
.footer-brand p { font-size: 0.88rem; color: #9a9ab2; }
.footer-col h2, .footer-col h3 { color: #fff; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b9b9cc; font-size: 0.9rem; text-decoration: none; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-search { padding-bottom: 40px; }
.footer-search h2 { color: #fff; text-align: center; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-search .tag-cloud a { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.18); color: #cfcfe0; }
.footer-search .tag-cloud a:hover { border-color: var(--gold); color: var(--gold); background: rgba(246, 183, 60, 0.1); }

.footer-legal {
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px;
  padding: 18px 22px; font-size: 0.8rem; color: #9a9ab2; background: rgba(255, 255, 255, 0.03);
  margin-bottom: 34px;
}
.footer-legal p { margin-bottom: 8px; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal strong { color: #d9d9e8; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 calc(24px + var(--floatbar-h)); /* ruang untuk float bar */
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: #8a8aa0;
}
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 8px; border-radius: 50%;
  border: 2px solid var(--red); color: #ff8fa0; font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}

/* ---------- Float bar (slot + koin) ---------- */
.float-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: linear-gradient(180deg, #23233a, #101018);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
  padding: 9px 18px; min-height: var(--floatbar-h);
  display: flex; align-items: center; gap: 16px;
}
.fb-visual { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fb-machine {
  display: flex; gap: 3px; padding: 5px;
  background: linear-gradient(180deg, #3a2a08, #1c1405);
  border: 1.5px solid var(--gold-2); border-radius: 9px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}
.fb-reel {
  width: 22px; height: 26px; border-radius: 5px; background: #0b0b12;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.fb-reel:nth-child(2) { animation: reel-blink 2.4s ease-in-out infinite; }
@keyframes reel-blink {
  0%, 100% { box-shadow: inset 0 0 0 rgba(246, 183, 60, 0); }
  50% { box-shadow: inset 0 0 8px rgba(246, 183, 60, 0.55); }
}
.fb-coins { position: relative; width: 22px; height: 34px; flex-shrink: 0; }
.fb-coin {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe9ad, var(--gold) 55%, #b97b12);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.fb-coin.c1 { width: 14px; height: 14px; left: 4px; bottom: 2px; animation: coin-float 3s ease-in-out infinite; }
.fb-coin.c2 { width: 11px; height: 11px; left: 11px; bottom: 14px; animation: coin-float 3s ease-in-out 0.6s infinite; }
.fb-coin.c3 { width: 8px; height: 8px; left: 1px; bottom: 18px; animation: coin-float 3s ease-in-out 1.2s infinite; }
@keyframes coin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.fb-text { line-height: 1.3; }
.fb-text strong { display: block; color: #fff; font-size: 0.95rem; letter-spacing: 0.02em; }
.fb-text span { font-size: 0.72rem; color: #9a9ab2; }
.fb-actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }
.fb-actions .btn { padding: 9px 22px; font-size: 0.92rem; }

/* ---------- Pencarian ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 150; padding: 10vh 18px 18px;
  background: rgba(10, 10, 16, 0.78); backdrop-filter: blur(5px);
  display: flex; justify-content: center; align-items: flex-start;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(680px, 100%); background: var(--paper); border-radius: 16px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.search-head { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.search-head .ico { padding: 0 6px 0 18px; font-size: 1.1rem; }
#search-input {
  flex: 1; border: 0; padding: 18px 14px; font-size: 1.05rem; font-family: var(--font);
  outline: none; background: transparent; color: var(--ink); min-width: 0;
}
.search-close {
  border: 0; background: transparent; font-size: 1.5rem; color: var(--muted);
  padding: 0 18px; cursor: pointer; line-height: 1;
}
.search-close:hover { color: var(--red); }
.search-results { max-height: 46vh; overflow-y: auto; }
.search-results a {
  display: block; padding: 14px 20px; border-bottom: 1px solid var(--line);
  text-decoration: none !important;
}
.search-results a:hover { background: var(--soft); }
.search-results .sr-title { font-weight: 700; color: var(--ink); font-size: 0.96rem; }
.search-results .sr-url { font-size: 0.74rem; color: var(--green); margin: 2px 0; }
.search-results .sr-desc { font-size: 0.84rem; color: var(--muted); }
.search-empty { padding: 26px 20px; text-align: center; color: var(--muted); font-size: 0.92rem; }
.search-tags-wrap { padding: 16px 20px; border-top: 1px solid var(--line); }
.search-tags-wrap p { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-3), var(--navy));
  border-radius: var(--radius); color: #fff; padding: 34px 36px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  border: 1px solid rgba(246, 183, 60, 0.35); margin: 44px 0 0;
}
.cta-band h2 { color: #fff; font-size: 1.3rem; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #c9c9dc; font-size: 0.94rem; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .main-nav a { padding: 8px 9px; font-size: 0.88rem; }
  .content-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 9px; border-radius: 10px;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); cursor: pointer;
  }
  .burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: all 0.2s ease; }
  .site-header.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .burger span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-2); border-bottom: 2px solid var(--gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); margin: 0; padding: 10px 18px 20px;
  }
  .site-header.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
  .header-actions .btn-ghost { display: none; }

  .hero { padding: 44px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-figure { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 42px 0; }
  .hero-cta .btn { flex: 1 1 auto; }
  .cta-band { padding: 26px 22px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .terms-grid { grid-template-columns: 1fr; }

  /* header lebih ringkas agar bebas overflow di layar 320-360px */
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 1.12rem; }
  .brand-tag { display: none; }
  .header-actions { gap: 7px; }
  .icon-btn { width: 36px; height: 36px; }
  .burger { width: 38px; height: 38px; padding: 8px; }
  .header-actions .btn-gold { padding: 8px 13px; font-size: 0.82rem; }

  :root { --floatbar-h: 60px; }
  .fb-text { display: none; }
  .float-bar { padding: 8px 12px; gap: 12px; }
  .fb-actions { gap: 8px; }
  .fb-actions .btn { padding: 9px 18px; font-size: 0.9rem; }
  .topbar { font-size: 0.68rem; }
}

/* Cetak & gerak minim */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 400px) {
  .float-bar { gap: 10px; padding: 8px 10px; }
  .fb-visual { gap: 8px; }
  .fb-coins { display: none; }
  .fb-machine { padding: 4px; gap: 2px; }
  .fb-reel { width: 20px; height: 24px; font-size: 0.72rem; }
  .fb-actions { gap: 6px; }
  .fb-actions .btn { padding: 8px 14px; font-size: 0.85rem; }
}

@media print {
  .site-header, .float-bar, .topbar, .search-overlay, .fb-visual { display: none !important; }
  .footer-bottom { padding-bottom: 24px; }
}
