/* ============================================================
   Republik77 — Portal Informasi Game Online (Indonesia)
   Design system: dark casino-info, merah-putih + emas
   ============================================================ */

:root {
  --bg: #0b0d11;
  --bg2: #12151c;
  --bg3: #181c26;
  --line: #262c3a;
  --red: #d21f2e;
  --red2: #e8384a;
  --red3: #8f1522;
  --gold: #f2b705;
  --gold2: #ffd54d;
  --green: #2eb872;
  --blue: #4c8dff;
  --text: #eef1f6;
  --muted: #a4aec2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- aksesibilitas ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---------- tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--red2), var(--red));
  color: #fff;
  box-shadow: 0 6px 18px rgba(210, 31, 46, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(210, 31, 46, 0.5); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #221a00;
  box-shadow: 0 6px 18px rgba(242, 183, 5, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold2); }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 13, 17, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }

.header-in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.brand .brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(210, 31, 46, 0.4);
}
.brand b { color: var(--gold2); font-weight: 800; }

.main-nav { display: flex; gap: 0.35rem; margin-left: 0.5rem; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
}
.main-nav a:hover { color: var(--text); background: var(--bg3); text-decoration: none; }
.main-nav a.active { color: var(--gold2); background: rgba(242, 183, 5, 0.08); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.55rem; }

.icon-btn {
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(210, 31, 46, 0.28), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(242, 183, 5, 0.1), transparent 55%),
    linear-gradient(180deg, #101319, var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 4.2rem 0 4.6rem;
}

.eyebrow {
  display: inline-block;
  color: var(--gold2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.hero h1, .page-hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  line-height: 1.22;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--gold2); }

.hero p.lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 34rem;
  margin: 0 0 1.6rem;
}

.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.hero-badges { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--muted);
}
.badge.b-age { color: #ffb3b3; border-color: rgba(232, 56, 74, 0.5); background: rgba(210, 31, 46, 0.12); }
.badge.b-info { color: #bfe3ff; border-color: rgba(76, 141, 255, 0.4); background: rgba(76, 141, 255, 0.1); }
.badge.b-id { color: #d6ffe6; border-color: rgba(46, 184, 114, 0.4); background: rgba(46, 184, 114, 0.1); }

.hero-card {
  position: relative;
  background: linear-gradient(160deg, var(--bg3), var(--bg2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.9rem;
  box-shadow: var(--shadow);
}
.hero-card .hc-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.1rem;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(206, 17, 38, 0.35);
}
.hero-card h2 { font-size: 1.05rem; margin: 0 0 0.3rem; text-align: center; color: var(--text); }
.hero-card p { color: var(--muted); font-size: 0.9rem; text-align: center; margin: 0 0 1.2rem; }
.hc-reels {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}
.hc-reel {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #0e1016;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--gold2);
}
.hc-reel:nth-child(2) { color: var(--red2); }
.hc-facts { display: grid; gap: 0.55rem; }
.hc-fact {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.hc-fact span { color: var(--muted); }
.hc-fact b { color: var(--gold2); font-weight: 700; }

/* ---------- section umum ---------- */
.section { padding: 3.6rem 0; }
.section.alt { background: var(--bg2); border-block: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: 2.1rem; }
.section-head h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 1.1rem; }
.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: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.section .card { background: var(--bg3); }
.section.alt .card { background: var(--bg); }
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 183, 5, 0.45);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: rgba(210, 31, 46, 0.14);
  border: 1px solid rgba(210, 31, 46, 0.35);
  font-size: 1.25rem;
}

/* kartu gambar (promo/artikel terkait) */
.img-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.img-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.img-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.img-card:hover .thumb img { transform: scale(1.04); }
.img-card .body { padding: 1.05rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.img-card .tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold2);
}
.img-card h3 { font-size: 1.02rem; margin: 0; }
.img-card h3 a { color: var(--text); }
.img-card h3 a:hover { color: var(--gold2); text-decoration: none; }
.img-card p { flex: 1; }
.img-card .more { font-size: 0.86rem; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: rgba(76, 141, 255, 0.1);
  border: 1px solid rgba(76, 141, 255, 0.3);
  color: #bfe3ff;
}

/* kotak catatan */
.note {
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: rgba(76, 141, 255, 0.07);
  padding: 0.95rem 1.15rem;
  font-size: 0.93rem;
  color: #d7e5fb;
}
.note.warn { border-left-color: var(--gold); background: rgba(242, 183, 5, 0.07); color: #f4e8c8; }
.note.safe { border-left-color: var(--green); background: rgba(46, 184, 114, 0.07); color: #d2f4e2; }
.note b { color: #fff; }

/* ---------- breadcrumb ---------- */
.breadcrumb { padding: 1.1rem 0 0; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.35rem; }
.breadcrumb li + li::before { content: "›"; color: var(--line); font-size: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold2); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- halaman artikel ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 300px at 80% -20%, rgba(210, 31, 46, 0.2), transparent 60%),
    linear-gradient(180deg, #10131a, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0 2.8rem;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.9rem;
}
.page-meta .chip { font-size: 0.72rem; }

.article-wrap { padding: 2.6rem 0 3.6rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.6rem; align-items: start; }

.prose { max-width: 760px; }
.prose > .lead { font-size: 1.08rem; color: var(--text); }
.prose h2 {
  font-size: 1.42rem;
  line-height: 1.35;
  margin: 2.2rem 0 0.8rem;
  padding-top: 0.4rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 1.6rem 0 0.6rem; color: var(--gold2); }
.prose p { margin: 0 0 1.05rem; color: #cdd4e2; }
.prose ul, .prose ol { margin: 0 0 1.05rem; padding-left: 1.3rem; color: #cdd4e2; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--gold); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 1.6rem 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.55rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0 0 1.2rem;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--bg3); color: var(--text); }
.prose td { color: #cdd4e2; }
.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.2rem;
  border-left: 4px solid var(--red);
  background: rgba(210, 31, 46, 0.07);
  border-radius: 0 10px 10px 0;
  color: #f0d9dc;
  font-style: italic;
}
.prose dl { margin: 0 0 1.1rem; }
.prose dt { font-weight: 700; color: var(--text); margin-top: 0.75rem; }
.prose dd { margin: 0.15rem 0 0 0; color: #cdd4e2; }

/* sidebar */
.side-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.15rem;
}
.side-card h2 { font-size: 1rem; margin: 0 0 0.8rem; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li + li { margin-top: 0.55rem; border-top: 1px dashed var(--line); padding-top: 0.55rem; }
.side-card a { color: #cdd4e2; font-size: 0.9rem; font-weight: 600; }
.side-card a:hover { color: var(--gold2); }
.side-card .mini { font-size: 0.78rem; color: var(--muted); font-weight: 400; display: block; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.8rem; max-width: 820px; }
details.faq {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.section.alt details.faq { background: var(--bg); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold2);
  font-size: 1.3rem;
  font-weight: 700;
  flex: 0 0 auto;
}
details.faq[open] summary::after { content: "–"; }
details.faq summary:hover { color: var(--gold2); }
details.faq .faq-body { padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: 0.93rem; }
details.faq .faq-body p { margin: 0; }

/* ---------- pencarian ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  padding: 8vh 1.5rem 2rem;
  overflow-y: auto;
}
.search-overlay.open { display: block; }
.search-panel { max-width: 680px; margin-inline: auto; }
.search-box {
  display: flex;
  gap: 0.6rem;
  background: var(--bg2);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 0.55rem;
  box-shadow: var(--shadow);
}
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  min-width: 0;
}
.search-box input:focus { outline: none; }
.search-hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.8rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag-cloud a {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cdd4e2;
  border: 1px solid var(--line);
  background: var(--bg2);
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
}
.tag-cloud a:hover { border-color: var(--gold); color: var(--gold2); text-decoration: none; }
.search-results { margin-top: 1.6rem; display: grid; gap: 0.8rem; }
.search-result {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
.search-result a { color: var(--text); font-weight: 700; }
.search-result a:hover { color: var(--gold2); text-decoration: none; }
.search-result p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.88rem; }
.search-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
}

/* ---------- form ---------- */
.form-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
}
.form-grid { display: grid; gap: 1rem; }
.form-grid label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 0.35rem; }
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="password"],
.form-grid input[type="tel"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.72rem 0.95rem;
  font-size: 0.98rem;
  font-family: inherit;
}
.form-grid input:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.check input { margin-top: 0.28rem; accent-color: var(--red); width: 16px; height: 16px; }
.check a { color: var(--gold2); }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.4rem; align-items: start; }
.auth-side img { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 1rem; }
.auth-side h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.auth-side ul { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--muted); display: grid; gap: 0.55rem; }
.auth-side li { padding-left: 1.3rem; position: relative; }
.auth-side li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* ---------- float CTA (slot + koin) ---------- */
.float-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  pointer-events: none;
}
.float-cta-in {
  pointer-events: auto;
  max-width: 760px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(120deg, #141824, #1b1016 55%, #241318);
  border: 1px solid rgba(242, 183, 5, 0.55);
  border-radius: 18px;
  padding: 0.65rem 0.95rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(210, 31, 46, 0.25);
  overflow: hidden;
}
.slot-machine { display: flex; gap: 0.35rem; flex: 0 0 auto; }
.reel {
  width: 40px;
  height: 46px;
  border-radius: 9px;
  background: #0b0d12;
  border: 1px solid #333c4e;
  overflow: hidden;
  position: relative;
}
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.reel-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: grid;
  gap: 0;
  animation: reelspin 2.6s linear infinite;
}
.reel-strip span {
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold2);
  font-family: "Segoe UI", system-ui, sans-serif;
}
.reel:nth-child(2) .reel-strip span { color: var(--red2); }
.reel:nth-child(3) .reel-strip span { color: #7fe3a5; }
.reel:nth-child(3) .reel-strip { animation-delay: -1.7s; animation-duration: 3.1s; }
.reel:nth-child(2) .reel-strip { animation-delay: -0.9s; animation-duration: 2.2s; }
@keyframes reelspin {
  from { transform: translateY(0); }
  to { transform: translateY(-138px); }
}
.float-copy { min-width: 0; flex: 1; }
.float-copy b { display: block; font-size: 0.95rem; letter-spacing: 0.02em; }
.float-copy span { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.35; }
.float-actions { display: flex; gap: 0.5rem; flex: 0 0 auto; }
.float-actions .btn { padding: 0.55rem 1.15rem; font-size: 0.88rem; }
.coin-deco {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #f2b705 60%, #a67c00);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  color: #6b4d00;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  animation: coinfloat 3.2s ease-in-out infinite;
  pointer-events: none;
}
.coin-deco.c1 { width: 26px; height: 26px; top: -10px; left: 46%; }
.coin-deco.c2 { width: 20px; height: 20px; top: -16px; right: 34%; animation-delay: -1.4s; }
@keyframes coinfloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-7px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .reel-strip, .coin-deco { animation: none; }
  .btn, .card, .img-card .thumb img { transition: none; }
}

/* ---------- footer ---------- */
.site-footer {
  background: #08090c;
  border-top: 1px solid var(--line);
  padding: 3rem 0 5.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 1.2fr; gap: 2rem; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold2); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--text); font-size: 1.1rem; margin-bottom: 0.8rem; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; }
.footer-legal {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
  font-size: 0.8rem;
}
.footer-legal .age {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--red2);
  color: #ffb3b3;
  font-weight: 900;
  font-size: 0.8rem;
  float: left;
  margin-right: 0.8rem;
}
.footer-bottom {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #7d8699;
}

/* ---------- misc ---------- */
.page-404 { text-align: center; padding: 6rem 0; }
.page-404 .code { font-size: 5rem; font-weight: 900; color: var(--red2); line-height: 1; }
.center { text-align: center; }
.mt-2 { margin-top: 1.6rem; }

/* ---------- responsif ---------- */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; padding: 3.2rem 0 3.6rem; }
  .hero-card { max-width: 460px; }
  .article-layout { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1.1rem;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.65rem 0.9rem; font-size: 1rem; }
  .header-actions .btn-ghost { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(1160px, 100% - 1.6rem); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 2.7rem 0; }
  .hero-in { padding: 2.4rem 0 2.8rem; gap: 1.8rem; }
  .hero p.lead { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .form-card { padding: 1.3rem; }
  .float-cta-in { gap: 0.7rem; padding: 0.55rem 0.75rem; border-radius: 14px; margin-bottom: 0.55rem; }
  .float-copy span { display: none; }
  .float-copy b { font-size: 0.85rem; }
  .reel { width: 32px; height: 38px; }
  .reel-strip span { height: 38px; font-size: 1.05rem; }
  .float-actions { flex-direction: column; gap: 0.4rem; }
  .float-actions .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .prose h2 { font-size: 1.25rem; }
  .prose table { font-size: 0.85rem; }
}
