/* ============================================================
   Viralbet77 - viralbet77.games
   Casino information portal · Indonesian language
   Palette: black / white / red / green / yellow-gold / blue
   ============================================================ */

:root {
  --bg: #0a0d16;
  --bg-2: #0d1120;
  --surface: #131828;
  --surface-2: #1a2138;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0f7;
  --muted: #9aa3b8;
  --muted-2: #7c8499;
  --gold: #f6c453;
  --gold-2: #d9a514;
  --gold-soft: rgba(246, 196, 83, 0.14);
  --red: #e23c4e;
  --red-2: #b92738;
  --red-soft: rgba(226, 60, 78, 0.14);
  --green: #2fbf71;
  --green-soft: rgba(47, 191, 113, 0.13);
  --blue: #4c8dff;
  --blue-soft: rgba(76, 141, 255, 0.13);
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1180px;
  --header-h: 66px;
  --float-h: 66px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1100px 500px at 80% -10%, rgba(226, 60, 78, 0.08), transparent 60%),
    radial-gradient(900px 420px at 5% 0%, rgba(246, 196, 83, 0.07), transparent 55%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  word-wrap: break-word;
}

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

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

h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; letter-spacing: 0.1px; }
h1 { font-size: 1.9rem; margin: 0 0 14px; }
h2 { font-size: 1.45rem; margin: 0 0 10px; }
h3 { font-size: 1.12rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 13, 22, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.22rem;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(160deg, #ffd970, #d9a514 55%, #a87c0a);
  display: grid;
  place-items: center;
  color: #23180a;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 12px rgba(217, 165, 20, 0.35);
}
.brand .brand-77 { color: var(--gold); }
.brand .brand-tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  line-height: 1;
}

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.main-nav a.active { color: var(--gold); background: var(--gold-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.icon-link:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-s);
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, #ffd970, #f0b429);
  color: #241903;
  box-shadow: 0 6px 18px rgba(240, 180, 41, 0.28);
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-red {
  background: linear-gradient(180deg, #ef5464, #cf2b3e);
  color: #fff;
  box-shadow: 0 6px 18px rgba(207, 43, 62, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ---------------- breadcrumb ---------------- */
.breadcrumb { padding: 14px 0 2px; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before { content: "/"; margin-right: 4px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); }

/* ---------------- hero (home) ---------------- */
.hero { padding: 46px 0 50px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(246, 196, 83, 0.35);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 { font-size: 2.35rem; }
.hero h1 .hl { color: var(--gold); }
.hero-sub { color: var(--muted); font-size: 1.04rem; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: var(--surface);
}
.chip.age { color: var(--red); border-color: rgba(226, 60, 78, 0.45); background: var(--red-soft); }
.chip.info { color: var(--green); border-color: rgba(47, 191, 113, 0.4); background: var(--green-soft); }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.hero-card {
  position: absolute;
  left: -14px;
  bottom: -16px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 700;
}
.hero-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* ---------------- sections ---------------- */
.section { padding: 44px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-sub { color: var(--muted); margin: 0; }

/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(246, 196, 83, 0.3);
}
.card .card-icon.green { background: var(--green-soft); border-color: rgba(47, 191, 113, 0.3); color: var(--green); }
.card .card-icon.blue { background: var(--blue-soft); border-color: rgba(76, 141, 255, 0.3); color: var(--blue); }
.card .card-icon.red { background: var(--red-soft); border-color: rgba(226, 60, 78, 0.3); color: var(--red); }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.card h3 { margin: 0; }

/* promo cards */
.promo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.promo-card:hover { transform: translateY(-3px); border-color: rgba(246, 196, 83, 0.4); }
.promo-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.promo-card .promo-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.promo-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(246, 196, 83, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
}
.promo-card h3 { margin: 0; font-size: 1.05rem; }
.promo-card p { color: var(--muted); font-size: 0.88rem; margin: 0; flex: 1; }
.promo-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.78rem; color: var(--muted-2); }
.promo-meta a { color: var(--gold); font-weight: 700; }

/* split media block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line-2); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split .check-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.split .check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.94rem; }
.check-list .tick {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid rgba(47, 191, 113, 0.45);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 3px;
}

/* reviews */
.review-card { gap: 12px; }
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }
.review-card blockquote { margin: 0; color: var(--muted); font-size: 0.92rem; font-style: italic; flex: 1; }
.review-who { display: flex; align-items: center; gap: 10px; }
.review-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: linear-gradient(160deg, #4c8dff, #2d5fd4);
  color: #fff;
}
.review-who .who-name { font-weight: 700; font-size: 0.9rem; }
.review-who .who-loc { color: var(--muted-2); font-size: 0.76rem; }

/* glossary */
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.term {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 16px;
}
.term dt { font-weight: 800; color: var(--gold); margin-bottom: 4px; font-size: 0.95rem; }
.term dd { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* article body typography */
.article-body { font-size: 1rem; color: #d7dbe7; }
.article-body h2 { margin: 30px 0 10px; font-size: 1.3rem; }
.article-body h3 { margin: 20px 0 8px; font-size: 1.08rem; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; color: #c9cedd; }
.article-body li { margin-bottom: 8px; }
.article-body a { font-weight: 600; }
.article-body .lead { font-size: 1.06rem; color: var(--text); }
.article-figure { margin: 18px 0 22px; }
.article-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { font-size: 0.78rem; color: var(--muted-2); margin-top: 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; font-size: 0.8rem; color: var(--muted-2); }
.article-meta .dot-sep::before { content: "·"; margin: 0 6px; }

/* notices */
.notice {
  border-radius: var(--radius-s);
  border: 1px solid;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
}
.notice-info { background: var(--blue-soft); border-color: rgba(76, 141, 255, 0.35); color: #bcd2ff; }
.notice-warn { background: var(--red-soft); border-color: rgba(226, 60, 78, 0.35); color: #ffd4d9; }
.notice-ok { background: var(--green-soft); border-color: rgba(47, 191, 113, 0.35); color: #c8f2dd; }
.notice strong { color: #fff; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0;
  overflow: hidden;
}
details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 800;
  flex: 0 0 auto;
}
details.faq[open] summary::after { content: "-"; }
details.faq .faq-a { padding: 0 18px 16px; color: var(--muted); font-size: 0.92rem; }
details.faq .faq-a p { margin: 0; }

/* tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
}
.tag-cloud a:hover { color: var(--gold); border-color: rgba(246, 196, 83, 0.45); background: var(--gold-soft); text-decoration: none; }

/* CTA strip */
.cta-strip {
  background: linear-gradient(120deg, rgba(246, 196, 83, 0.12), rgba(226, 60, 78, 0.1)),
    var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cta-strip h2 { margin: 0 0 6px; }
.cta-strip p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- inner page hero ---------------- */
.page-hero { padding: 34px 0 40px; }
.page-hero img.banner {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  aspect-ratio: 21 / 9;
  object-fit: cover;
  margin-top: 20px;
}
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; padding-bottom: 50px; }
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.side-card h2 { font-size: 1rem; margin-bottom: 12px; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-list a { color: var(--muted); font-size: 0.88rem; font-weight: 600; display: flex; gap: 8px; }
.side-list a:hover { color: var(--gold); }
.side-note { font-size: 0.8rem; color: var(--muted-2); margin: 0; }

/* terms list (promo pages) */
.terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.terms li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.terms li strong { display: block; color: var(--gold); margin-bottom: 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; }

/* steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 16px 14px 58px;
  position: relative;
  color: var(--muted);
  font-size: 0.93rem;
}
.steps li strong { color: var(--text); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(160deg, #ffd970, #d9a514);
  color: #241903;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.9rem;
}

/* ---------------- forms ---------------- */
.form-card { max-width: 480px; margin: 0 auto; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.field .req { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.field input:focus { outline: 2px solid rgba(246, 196, 83, 0.5); outline-offset: 1px; border-color: var(--gold); }
.field .hint { font-size: 0.76rem; color: var(--muted-2); margin-top: 5px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 0.84rem; color: var(--muted); }
.check-row input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex: 0 0 auto; }
.form-warn { display: none; color: #ffb4bd; background: var(--red-soft); border: 1px solid rgba(226, 60, 78, 0.4); border-radius: 8px; padding: 9px 12px; font-size: 0.82rem; margin-bottom: 12px; }
.form-warn.show { display: block; }

/* search page */
.search-box { display: flex; gap: 10px; margin: 18px 0; }
.search-box input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.search-box input:focus { outline: 2px solid rgba(246, 196, 83, 0.5); border-color: var(--gold); }
.results-list { display: flex; flex-direction: column; gap: 12px; }
.result-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px 18px;
}
.result-item h3 { margin: 0 0 4px; font-size: 1rem; }
.result-item p { margin: 0; color: var(--muted); font-size: 0.87rem; }
.search-empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-s); padding: 22px; text-align: center; }

/* ---------------- footer ---------------- */
.site-footer {
  margin-top: 30px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 44px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 30px; }
.footer-brand p { color: var(--muted); font-size: 0.86rem; margin: 12px 0 0; }
.footer-col h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold); }
.compliance {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.age-badge {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.9rem;
}
.compliance-text { flex: 1; min-width: 260px; max-width: 900px; }
.compliance-text p { margin: 0 0 8px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0 calc(var(--float-h) + 26px);
  font-size: 0.78rem;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------------- floating bottom bar ---------------- */
.float-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(26, 33, 56, 0.97), rgba(10, 13, 22, 0.99));
  border-top: 1px solid rgba(246, 196, 83, 0.4);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
}
.float-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}
.float-slot {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #070a12;
  border: 1px solid rgba(246, 196, 83, 0.5);
  border-radius: 10px;
}
.reel {
  width: 24px;
  height: 32px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(180deg, #1c2340, #10152a);
  position: relative;
}
.reel .reel-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  font-size: 15px;
  line-height: 32px;
  font-weight: 900;
  animation: reel-spin 2.8s linear infinite;
}
.reel:nth-child(2) .reel-strip { animation-duration: 3.4s; animation-delay: 0.2s; }
.reel:nth-child(3) .reel-strip { animation-duration: 4s; animation-delay: 0.5s; }
.reel .s-gold { color: var(--gold); }
.reel .s-red { color: #ff5d6c; }
.reel .s-green { color: #35d67f; }
.reel .s-blue { color: #5c9aff; }
@keyframes reel-spin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-96px); }
}
.float-coins { position: absolute; top: -8px; right: -10px; display: flex; gap: 3px; }
.coin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe9a8, #f0b429 60%, #a87c0a);
  box-shadow: 0 2px 5px rgba(240, 180, 41, 0.55);
  animation: coin-bob 2.2s ease-in-out infinite;
}
.coin.c2 { animation-delay: 0.7s; width: 10px; height: 10px; }
@keyframes coin-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.float-text { flex: 1; min-width: 0; line-height: 1.25; }
.float-text .ft-brand { font-weight: 900; font-size: 0.95rem; color: var(--text); }
.float-text .ft-brand span { color: var(--gold); }
.float-text .ft-sub { font-size: 0.68rem; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-actions { display: flex; gap: 8px; flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .reel .reel-strip, .coin { animation: none; }
  .btn, .promo-card { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr; display: grid; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10, 13, 22, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    z-index: 59;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 1.85rem; }
  .hero { padding: 34px 0 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .content-card { padding: 20px; }
  .cta-strip { padding: 22px; }
  .float-text { display: none; }
  .float-actions { margin-left: auto; }
  .float-slot { transform: scale(0.92); transform-origin: left center; }
  .hero-card { left: 10px; bottom: -14px; }
  .hero h1 { font-size: 1.6rem; }
  h1 { font-size: 1.5rem; }
  .search-box { flex-direction: column; }
  .page-hero img.banner { aspect-ratio: 16 / 9; }
}

@media (max-width: 380px) {
  .float-inner { gap: 8px; }
  .float-actions { gap: 6px; }
  .float-actions .btn { padding: 8px 12px; font-size: 0.78rem; }
  .float-slot { display: none; }
  .brand { font-size: 1.05rem; }
}

/* utilities */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 2px solid rgba(246, 196, 83, 0.7); outline-offset: 2px; }
