/* BDMBet ES — Archetype 4: Bento Modular Hub (Carbon Graphite + Neon Yellow + Cobalt, 100% unique bn-* classes) */
:root {
  --bn-bg: #0b0d12;
  --bn-surface: #131722;
  --bn-surface-2: #1a2030;
  --bn-border: rgba(255, 255, 255, 0.09);
  --bn-border-hi: rgba(244, 255, 0, 0.36);
  --bn-ink: #f8fafc;
  --bn-text: #cbd5e1;
  --bn-muted: #94a3b8;
  --bn-volt: #f4ff00;
  --bn-cobalt: #3b82f6;
  --bn-ok: #22c55e;
  --bn-bad: #f87171;
  --bn-rad: 18px;
  --bn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--bn-font); background: var(--bn-bg); color: var(--bn-ink);
  line-height: 1.62; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bn-volt); text-decoration: none; }
a:hover { text-decoration: underline; }

.bn-skip {
  position: absolute; left: -9999px; top: 8px; background: var(--bn-volt); color: #0b0d12;
  padding: 8px 14px; border-radius: 8px; font-weight: 800;
}
.bn-skip:focus { left: 12px; z-index: 9999; }

.bn-frame { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* Floating Pill Header */
.bn-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bn-border);
  padding: 10px 0;
}
.bn-head-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bn-brand img { height: 30px; width: auto; }
.bn-pillnav {
  display: flex; align-items: center; gap: 3px;
  background: var(--bn-surface); border: 1px solid var(--bn-border);
  border-radius: 999px; padding: 4px; overflow-x: auto; scrollbar-width: none;
}
.bn-pillnav::-webkit-scrollbar { display: none; }
.bn-plink {
  white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--bn-text);
  padding: 6px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.bn-plink:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.bn-plink[aria-current="page"] { background: var(--bn-volt); color: #0b0d12; font-weight: 800; }

.bn-hact { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bn-18 {
  font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px;
  background: rgba(248, 113, 113, .16); color: #fca5a5; border: 1px solid rgba(248, 113, 113, .4);
}
.bn-hlogin {
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--bn-ink); border: 1px solid var(--bn-border);
}
.bn-hlogin:hover { border-color: var(--bn-volt); text-decoration: none; }
.bn-hjoin {
  padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  background: var(--bn-volt); color: #0b0d12;
}
.bn-hjoin:hover { filter: brightness(1.06); text-decoration: none; }

/* Secondary Quick-Intent Strip (shows remaining tail intents right below header) */
.bn-subnav {
  background: var(--bn-surface); border-bottom: 1px solid var(--bn-border);
  padding: 7px 0;
}
.bn-subnav-row {
  display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none;
  font-size: 12px;
}
.bn-subnav-row::-webkit-scrollbar { display: none; }
.bn-subnav-lbl { color: var(--bn-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.bn-slink {
  white-space: nowrap; padding: 3px 10px; border-radius: 6px;
  background: var(--bn-surface-2); border: 1px solid var(--bn-border); color: var(--bn-text);
}
.bn-slink:hover, .bn-slink[aria-current="page"] { border-color: var(--bn-border-hi); color: var(--bn-volt); text-decoration: none; }

.bn-main { padding: 20px 0 44px; }
.bn-path { font-size: 12.5px; color: var(--bn-muted); margin-bottom: 14px; display: flex; gap: 7px; }
.bn-path a { color: var(--bn-muted); }

/* Buttons */
.bn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font-size: 14.5px; font-weight: 800; color: #0b0d12; background: var(--bn-volt);
  box-shadow: 0 6px 22px rgba(244, 255, 0, .20);
}
.bn-btn:hover { filter: brightness(1.06); text-decoration: none; }
.bn-btn:disabled { opacity: .9; cursor: default; }
.bn-btn-out {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 700;
  color: var(--bn-ink); border: 1px solid var(--bn-border); background: rgba(255, 255, 255, .04);
}
.bn-btn-out:hover { border-color: var(--bn-volt); text-decoration: none; }

/* Archetype 4 Home: 4-Tile Bento First Screen */
.bn-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  margin-bottom: 22px;
}
.bn-hero-tile {
  grid-row: span 2;
  position: relative; border-radius: var(--bn-rad); overflow: hidden;
  border: 1px solid var(--bn-border-hi); background: #0d1018;
  min-height: 330px; display: flex; align-items: center;
}
.bn-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-hero-in { position: relative; z-index: 2; padding: 28px; max-width: 58%; }
.bn-chip-blue {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; background: var(--bn-cobalt); color: #fff; margin-bottom: 10px;
}
.bn-hero-in h1 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; }
.bn-offer-big { font-size: clamp(24px, 2.8vw, 34px); font-weight: 900; color: var(--bn-volt); line-height: 1.12; }
.bn-offer-note { font-size: 14px; color: var(--bn-text); margin: 6px 0 18px; }
.bn-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; }

.bn-mini-tile {
  background: var(--bn-surface); border: 1px solid var(--bn-border);
  border-radius: var(--bn-rad); padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.bn-mini-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bn-mini-head strong { font-size: 14.5px; }
.bn-score-tag {
  background: rgba(244, 255, 0, .14); border: 1px solid var(--bn-border-hi);
  color: var(--bn-volt); font-weight: 900; font-size: 14px; padding: 3px 9px; border-radius: 8px;
}
.bn-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.bn-mini-list li { display: flex; justify-content: space-between; color: var(--bn-muted); }
.bn-mini-list strong { color: var(--bn-ink); }
.bn-mini-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bn-mini-links a {
  text-align: center; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  background: var(--bn-surface-2); border: 1px solid var(--bn-border); color: var(--bn-ink);
}
.bn-mini-links a:hover { border-color: var(--bn-border-hi); color: var(--bn-volt); text-decoration: none; }

/* Subpage Bento Header */
.bn-subtile {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr); gap: 20px;
  align-items: center; background: var(--bn-surface); border: 1px solid var(--bn-border);
  border-radius: var(--bn-rad); padding: 24px; margin-bottom: 20px;
}
.bn-subtile.bn-plain { grid-template-columns: 1fr; }
.bn-subtile h1 { margin: 0 0 8px; font-size: clamp(24px, 2.7vw, 32px); line-height: 1.18; }
.bn-subtile p { margin: 0 0 16px; color: var(--bn-text); font-size: 15px; }
.bn-subart img { border-radius: 12px; border: 1px solid var(--bn-border); width: 100%; }
.bn-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--bn-muted); margin-top: 14px; }
.bn-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Filterable Game Showcase */
.bn-lobby {
  background: var(--bn-surface); border: 1px solid var(--bn-border);
  border-radius: var(--bn-rad); padding: 20px; margin-bottom: 20px;
}
.bn-lobby-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bn-lobby-top h2 { margin: 0; font-size: 20px; }
.bn-lobby-top p { margin: 2px 0 0; font-size: 13.5px; color: var(--bn-muted); }
.bn-fbar { display: flex; flex-wrap: wrap; gap: 6px; }
.bn-fbar button {
  padding: 6px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--bn-border); background: var(--bn-surface-2); color: var(--bn-text); cursor: pointer;
}
.bn-fbar button.bn-sel { background: var(--bn-volt); color: #0b0d12; border-color: var(--bn-volt); }

.bn-ggrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bn-gtile { background: var(--bn-surface-2); border: 1px solid var(--bn-border); border-radius: 12px; overflow: hidden; transition: transform .15s, border-color .15s; }
.bn-gtile:hover { transform: translateY(-2px); border-color: var(--bn-border-hi); }
.bn-gart { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #0a0c10; }
.bn-gart img { width: 100%; height: 100%; object-fit: cover; }
.bn-gmask {
  position: absolute; inset: 0; background: rgba(11, 13, 18, .80);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  opacity: 0; transition: opacity .15s; padding: 10px;
}
.bn-gtile:hover .bn-gmask, .bn-gtile:focus-within .bn-gmask { opacity: 1; }
.bn-gcmd { width: 100%; padding: 7px 10px; border-radius: 8px; border: 0; font-size: 12px; font-weight: 800; cursor: pointer; background: var(--bn-volt); color: #0b0d12; }
.bn-gcmd.bn-demo { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.bn-gcmd:disabled { opacity: .92; cursor: default; }
.bn-gtxt { padding: 8px 9px; }
.bn-gtxt strong { display: block; font-size: 12.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-gtxt small { font-size: 11px; color: var(--bn-muted); }

/* Calculator & KYC Widgets */
.bn-calc, .bn-kyc {
  background: linear-gradient(135deg, rgba(59, 130, 246, .09), rgba(244, 255, 0, .05));
  border: 1px solid var(--bn-border-hi); border-radius: var(--bn-rad); padding: 20px 22px; margin-bottom: 20px;
}
.bn-calc h2, .bn-kyc h2 { margin: 0 0 6px; font-size: 19px; }
.bn-calc-ctrl { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(170px, .7fr); gap: 16px; margin: 14px 0; align-items: center; }
.bn-calc-ctrl label { display: block; font-size: 13px; color: var(--bn-text); font-weight: 600; margin-bottom: 6px; }
.bn-calc-ctrl input[type="range"] { width: 100%; accent-color: var(--bn-volt); }
.bn-calc-ctrl select { width: 100%; padding: 9px 10px; border-radius: 9px; background: var(--bn-surface); color: var(--bn-ink); border: 1px solid var(--bn-border); font-size: 13.5px; }
.bn-calc-res { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bn-cbox { background: var(--bn-surface); border: 1px solid var(--bn-border); border-radius: 11px; padding: 11px 13px; }
.bn-cbox span { display: block; font-size: 11.5px; color: var(--bn-muted); }
.bn-cbox strong { font-size: 18px; color: var(--bn-volt); }

.bn-kyc-grid { display: grid; gap: 8px; margin: 12px 0; }
.bn-kyc-grid label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bn-surface); border: 1px solid var(--bn-border); font-size: 14px; cursor: pointer; }
.bn-kyc-grid input { width: 17px; height: 17px; accent-color: var(--bn-volt); }
.bn-kyc-out { font-size: 13.5px; font-weight: 700; color: var(--bn-volt); }
.bn-kyc-out.bn-done { color: var(--bn-ok); }

/* Modular Article Sections + Collapsed TOC */
.bn-toc { background: var(--bn-surface); border: 1px solid var(--bn-border); border-radius: 12px; padding: 11px 16px; margin-bottom: 18px; }
.bn-toc summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--bn-volt); }
.bn-toc-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.bn-toc-list a { font-size: 12.5px; padding: 5px 11px; border-radius: 8px; background: var(--bn-surface-2); border: 1px solid var(--bn-border); color: var(--bn-text); }
.bn-toc-list a:hover { border-color: var(--bn-border-hi); color: var(--bn-volt); text-decoration: none; }

.bn-article { display: grid; gap: 16px; }
.bn-card { background: var(--bn-surface); border: 1px solid var(--bn-border); border-radius: var(--bn-rad); padding: 24px 28px; }
.bn-card h2 { margin: 0 0 12px; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; }
.bn-card p { margin: 0 0 12px; color: var(--bn-text); }
.bn-card p:last-child { margin-bottom: 0; }

.bn-tscroll { overflow-x: auto; margin: 12px 0; border-radius: 11px; border: 1px solid var(--bn-border); }
.bn-tscroll table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bn-tscroll th { text-align: left; padding: 11px 13px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: var(--bn-surface-2); color: var(--bn-volt); border-bottom: 1px solid var(--bn-border); }
.bn-tscroll td { padding: 10px 13px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--bn-text); }
.bn-tscroll tr:last-child td { border-bottom: 0; }

.bn-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin: 16px 0 4px; padding: 16px 20px; border-radius: 13px;
  background: var(--bn-surface-2); border: 1px solid var(--bn-border-hi);
}
.bn-strip strong { display: block; font-size: 16px; }
.bn-strip p { margin: 2px 0 0; font-size: 13.5px; color: var(--bn-muted); }

.bn-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bn-step { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--bn-surface-2); border: 1px solid var(--bn-border); }
.bn-snum { flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--bn-volt); color: #0b0d12; font-weight: 900; font-size: 13.5px; display: grid; place-items: center; }
.bn-step strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.bn-step p { margin: 0; font-size: 13.5px; color: var(--bn-muted); }

.bn-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bn-pc-box { padding: 16px; border-radius: 12px; background: var(--bn-surface-2); border: 1px solid var(--bn-border); }
.bn-pc-box h3 { margin: 0 0 9px; font-size: 15px; }
.bn-pc-box.bn-pro h3 { color: var(--bn-ok); }
.bn-pc-box.bn-con h3 { color: var(--bn-bad); }
.bn-pc-box ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--bn-text); }

.bn-faq { display: grid; gap: 9px; }
.bn-faq details { background: var(--bn-surface-2); border: 1px solid var(--bn-border); border-radius: 11px; padding: 12px 15px; }
.bn-faq summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--bn-ink); }
.bn-faq details p { margin: 8px 0 0; font-size: 14px; color: var(--bn-muted); }

.bn-author { display: flex; align-items: center; gap: 14px; background: var(--bn-surface); border: 1px solid var(--bn-border); border-radius: var(--bn-rad); padding: 16px 20px; }
.bn-ava { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--bn-cobalt); color: #fff; font-weight: 900; display: grid; place-items: center; }
.bn-arole { font-size: 12.5px; color: var(--bn-volt); font-weight: 600; }
.bn-author p { margin: 4px 0 0; font-size: 13.5px; color: var(--bn-muted); }

/* Opinions & Form */
.bn-ops { background: var(--bn-surface); border: 1px solid var(--bn-border); border-radius: var(--bn-rad); padding: 22px 24px; margin-top: 18px; }
.bn-op-grid { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bn-op-card { background: var(--bn-surface-2); border: 1px solid var(--bn-border); border-radius: 12px; padding: 14px; }
.bn-stars { color: var(--bn-volt); font-size: 14px; }
.bn-op-card h3 { margin: 6px 0 5px; font-size: 15px; }
.bn-op-card p { margin: 0; font-size: 13.5px; color: var(--bn-muted); }
.bn-oform { display: grid; gap: 10px; background: var(--bn-surface-2); border: 1px solid var(--bn-border); border-radius: 12px; padding: 16px; }
.bn-orow { display: grid; grid-template-columns: 1fr 180px; gap: 10px; }
.bn-oform input, .bn-oform select, .bn-oform textarea { width: 100%; padding: 9px 11px; border-radius: 9px; background: var(--bn-surface); color: var(--bn-ink); border: 1px solid var(--bn-border); font-family: inherit; font-size: 14px; }
.bn-oform textarea { min-height: 74px; resize: vertical; }
.bn-omsg { font-size: 13px; color: var(--bn-volt); font-weight: 600; }

/* Footer */
.bn-foot { background: #07090d; border-top: 1px solid var(--bn-border); padding: 30px 0 40px; }
.bn-foot-stack { display: grid; gap: 16px; }
.bn-foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.bn-socs { display: flex; gap: 8px; }
.bn-soc { width: 38px; height: 38px; border-radius: 10px; background: var(--bn-surface); border: 1px solid var(--bn-border); display: grid; place-items: center; cursor: pointer; }
.bn-flinks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.bn-flinks a { color: var(--bn-muted); }
.bn-flinks a:hover { color: var(--bn-volt); }
.bn-pays { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-pay { background: var(--bn-surface); border: 1px solid var(--bn-border); border-radius: 8px; padding: 6px 10px; display: inline-flex; align-items: center; }
.bn-pay img { height: 18px; width: auto; }
.bn-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bn-badges a { display: inline-flex; align-items: center; transition: transform .14s; }
.bn-badges a:hover { transform: translateY(-1px); }
.bn-badges img { height: 24px; width: auto; }
.bn-help { font-size: 13px; color: var(--bn-muted); border-top: 1px solid var(--bn-border); padding-top: 14px; }
.bn-help ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* Mobile Dock & Drawer */
.bn-dock, .bn-shade, .bn-panel { display: none; }

@media (max-width: 980px) {
  .bn-pillnav, .bn-subnav { display: none; }
  .bn-bento-grid, .bn-subtile { grid-template-columns: 1fr; }
  .bn-hero-tile { min-height: 225px; }
  .bn-hero-in { max-width: 76%; padding: 18px; }
  .bn-ggrid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .bn-gtile { flex: 0 0 132px; scroll-snap-align: start; }
  .bn-calc-ctrl, .bn-steps, .bn-pc, .bn-op-grid, .bn-orow { grid-template-columns: 1fr; }
  .bn-calc-res { grid-template-columns: repeat(2, 1fr); }
  .bn-card { padding: 18px 16px; }
  .bn-foot { padding: 26px 0 92px; }

  .bn-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(11, 13, 18, .97); border-top: 1px solid var(--bn-border-hi);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .bn-dbtn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10.5px; font-weight: 700; color: var(--bn-muted); background: none; border: 0; cursor: pointer; padding: 4px 2px;
  }
  .bn-dbtn svg { width: 20px; height: 20px; }
  .bn-dbtn[aria-current="page"] { color: var(--bn-volt); }
  .bn-dfab {
    width: 38px; height: 38px; border-radius: 50%; margin-top: -16px;
    background: var(--bn-volt); color: #0b0d12; display: grid; place-items: center;
  }
  .bn-shade { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .65); }
  .bn-shade.bn-on { display: block; }
  .bn-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    max-height: 78vh; overflow-y: auto; background: var(--bn-surface);
    border-top: 1px solid var(--bn-border-hi); border-radius: 18px 18px 0 0; padding: 16px 16px 28px;
  }
  .bn-panel.bn-on { display: block; }
  .bn-phead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--bn-border); }
  .bn-plinks { display: grid; gap: 6px; }
  .bn-plinks a { padding: 8px 10px; border-radius: 8px; background: var(--bn-surface-2); color: var(--bn-ink); font-weight: 600; font-size: 14px; }
}
