/*!
 * Bitcoin Barrel — homepage theme
 * Adapted from the approved design preview (plans/BitcoinBarrel_Bootstrap_Preview.html).
 * Loads on top of Bootstrap 5.3.8 (css/bootstrap.min.css, MIT licensed).
 * Palette: ink #20252b, muted #626d79, paper #f7f8fa, blue #1261cf, gold #f0c363.
 */
:root {
  color-scheme: light;
  --ink: #20252b;
  --muted: #626d79;
  --line: #e2e6eb;
  --paper: #f7f8fa;
  --blue: #1261cf;
  --gold: #f0c363;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #b77b00; outline-offset: 4px; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; padding: 12px; z-index: 10; background: white; color: var(--blue); }
.skip-link:focus { top: 12px; }
.topbar { background: white; border-bottom: 1px solid #e8eaed; }
.nav { min-height: 68px; display: flex; flex-wrap: nowrap; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 750; letter-spacing: -.55px; white-space: nowrap; }
.brand-icon { width: 34px; height: 36px; border-radius: 9px; background: #202326; color: var(--gold); display: grid; place-items: center; font-size: 27px; font-family: Arial, sans-serif; font-weight: 700; line-height: 1; }
.navlinks { display: flex; gap: 28px; align-items: center; margin-left: auto; font-size: 13px; font-weight: 600; }
.navlinks a { padding-block: 14px; }
.navlinks a:hover, .text-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.navlinks .disclosure { margin-left: 4px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 400; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #111314 url('../img/bitcoin-bg.jpg') no-repeat center / cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,17,19,.97), rgba(15,17,19,.88) 43%, rgba(15,17,19,.2)); }
.hero .wrap { padding-block: 32px 33px; text-align: center; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #e6c477; }
.eyebrow::before { content: ""; width: 16px; height: 2px; background: #d8b66d; }
h1 { margin: 0; font-size: clamp(38px, 4.25vw, 54px); font-weight: 740; letter-spacing: -2px; line-height: 1.08; color: #fff; }
h1 span { color: var(--gold); }
.hero-desc { max-width: 650px; margin: 14px auto 19px; font-size: 14px; line-height: 1.65; color: #c4c8cd; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 24px; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 19px; min-height: 43px; padding: 10px 17px; border-radius: 6px; background: var(--gold); color: #272218; font-size: 12px; font-weight: 700; border: 1px solid var(--gold); transition: background .18s ease; }
.primary:hover { background: #ffda88; }
.hero-secondary { color: #e3e5e8; font-size: 12px; padding-block: 12px; }
.hero-secondary:hover { color: var(--gold); }

/* Ad slot (728 banner rotator), placed below the hero */
.ad-slot { padding: 20px 0 4px; text-align: center; }
.ad-caption { margin: 0 0 10px; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #8d97a3; }
.ad-banner { display: inline-block; max-width: 728px; width: 100%; }
.ad-banner img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

/* Directory */
.directory { padding-top: 29px; padding-bottom: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
h2 { font-size: 24px; font-weight: 730; letter-spacing: -.8px; line-height: 1.3; margin: 0 0 6px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.listing-count { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 5px; background: #fff3d5; border: 1px solid #f4dfaa; color: #795a1c; white-space: nowrap; font-size: 11px; font-weight: 650; margin-top: 3px; }
.listing-count .icon { width: 13px; height: 13px; }
.toolbar { display: flex; gap: 18px; justify-content: space-between; align-items: center; margin: 22px 0 18px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border-radius: 6px; background: transparent; border: 1px solid transparent; color: #56616f; font-size: 12px; font-weight: 600; transition: background .18s, color .18s; }
.filter:hover { background: #e9edf3; color: var(--ink); }
.filter[aria-pressed="true"] { background: #20252b; border-color: #20252b; color: white; }
.filter .count { color: #74808d; font-size: 10px; font-weight: 500; }
.filter[aria-pressed="true"] .count { color: #c4ccd5; }
.search { position: relative; width: 234px; flex-shrink: 0; color: #7d8792; }
.search .icon { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 9px 12px 9px 37px; background: white; border: 1px solid #dbe0e7; border-radius: 6px; color: var(--ink); font-size: 12px; }
.search input::placeholder { color: #74808d; opacity: 1; }
.site-grid { --bs-gutter-x: 17px; --bs-gutter-y: 17px; }
/* ── Site cards ───────────────────────────────────────────────────────────── */
.site-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid #dfe4eb; border-top: 3px solid var(--mark-bg); border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(17,30,48,.05); transition: box-shadow .18s, transform .18s; }
.site-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(26,46,71,.1); }
/* Card header: logo | title block | rating badge */
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-title { flex: 1; min-width: 0; container-type: inline-size; }
.site-mark { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--mark-bg); color: var(--mark-ink); border: 1px solid var(--mark-line); font-size: 15px; font-weight: 800; letter-spacing: -1px; }
.site-mark svg { width: 24px; height: 24px; }
.fc { --mark-ink: #fff; --mark-bg: #5a3bc2; --mark-line: #5232b9; }
.af { --mark-ink: #edc943; --mark-bg: #18262b; --mark-line: #18262b; }
.vf { --mark-ink: #238b6b; --mark-bg: #e6f5ee; --mark-line: #cce8da; }
.ff { --mark-ink: #ec932d; --mark-bg: #24292e; --mark-line: #24292e; }
.fp { --mark-ink: #fff; --mark-bg: #2346b6; --mark-line: #2346b6; }
.td { --mark-ink: #ffe39a; --mark-bg: #4e1c69; --mark-line: #4e1c69; }
.wt { --mark-ink: #d83b45; --mark-bg: #fff0ed; --mark-line: #f5d4d1; }
.sh { --mark-ink: #543b09; --mark-bg: #f7ce55; --mark-line: #efc64f; }
.category { display: block; margin: 0 0 2px; font-size: 10px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: #4f7280; }
/* Per-category badge colour — slug matches data-category on each .site-card */
.category.faucets  { color: #1e7a5a; }
.category.ptc      { color: #44529b; }
.category.games    { color: #5c3f9e; }
.category.casinos  { color: #9a6a16; }
.category.mine     { color: #31748a; }
.category.earn     { color: #7a5230; }
.site-card h3 { margin: 0; font-size: clamp(11px, 13cqw, 17px); font-weight: 740; line-height: 1.25; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; }
.site-card h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.site-domain { margin: 2px 0 0; font-size: 11px; color: #8a95a1; }
/* Rating badge — top-right of card header */
.card-score { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; background: #fffbef; border: 1px solid #f0dfb5; border-radius: 20px; font-size: 13px; font-weight: 750; color: #7a5e1a; white-space: nowrap; line-height: 1; }
.card-score .icon { width: 13px; height: 13px; fill: #e0a722; color: #e0a722; stroke-width: 1; }
/* Description: 2-line clamp keeps cards compact */
.description { margin: 0 0 14px; color: #5f6976; font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* Stats block */
.card-details { margin: 0 0 14px; padding-top: 12px; border-top: 1px solid #edf0f3; }
/* 2×2 stat grid: label above, value below — no borders, no backgrounds */
.card-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 12px; }
.info-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-label { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #8a95a1; }
.info-val { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
/* Coin chips */
.card-coins { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.card-coins li { padding: 3px 9px; background: #f4f6f9; border: 1px solid #e3e8f0; color: #3a4a5c; border-radius: 999px; font-size: 11px; font-weight: 650; line-height: 1.5; }
.card-coins li.more { background: #fff; border-color: #dbe1ea; color: #7a8695; }
/* Visit CTA: dark, full-width, gold arrow — high contrast for clicks */
.visit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: auto; padding: 11px 16px; border: none; background: var(--ink); color: #fff; border-radius: 8px; font-size: 13px; font-weight: 700; letter-spacing: -.1px; transition: background .18s ease; }
.visit .icon { width: 15px; height: 15px; color: var(--gold); }
.visit:hover { background: #2d3540; color: var(--gold); }
.empty { text-align: center; padding: 54px 24px; background: white; border: 1px dashed #cbd3df; border-radius: 10px; }
.empty h3 { font-size: 18px; margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
.reset { min-height: 44px; border: 1px solid #cfd9e8; border-radius: 6px; padding: 9px 16px; background: #eff5ff; color: #175bb9; font-weight: 600; font-size: 13px; }
.directory-foot { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-top: 19px; color: #6b7581; font-size: 11px; }
.directory-foot p { margin: 0; }
.text-link { color: #2b61a7; display: inline-flex; align-items: center; gap: 5px; }
.text-link .icon { width: 13px; height: 13px; }
.below { padding-bottom: 36px; }
.partner { display: flex; align-items: center; gap: 15px; padding: 17px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 24px; }
.partner-mark { width: 36px; height: 36px; display: grid; place-items: center; background: #edf4fb; color: #2a7eaf; border: 1px solid #d3e6f2; font-size: 24px; border-radius: 8px; font-weight: 700; }
.partner-body { display: flex; align-items: baseline; gap: 10px; flex: 1; flex-wrap: wrap; }
.partner-label { padding: 2px 5px; background: #f2f3f5; color: #687280; border: 1px solid #e5e8ee; border-radius: 3px; font-size: 8px; font-weight: 650; letter-spacing: .6px; text-transform: uppercase; }
.partner-name { font-size: 13px; font-weight: 700; }
.partner-desc { font-size: 12px; color: var(--muted); }
.partner .text-link { font-size: 12px; font-weight: 600; min-height: 38px; flex-shrink: 0; }
.resources { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.resource { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 23px 25px; }
.resource h2 { font-size: 19px; letter-spacing: -.45px; margin-bottom: 9px; }
.resource p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0 0 15px; max-width: 480px; }
.resource .text-link { min-height: 30px; font-size: 12px; font-weight: 650; }
.resource.dark { background: #22262b; border-color: #22262b; color: #fff; }
.resource.dark p { color: #b9c1ca; }
.resource.dark .text-link { color: #f0cf86; }
.footer { background: white; border-top: 1px solid var(--line); padding: 23px 0 19px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand { font-size: 14px; letter-spacing: -.3px; }
.footer .brand-icon { width: 24px; height: 25px; border-radius: 6px; font-size: 19px; }
.footer-note { font-size: 10px; color: #717b88; }
.referral-text { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid #edf0f3; font-size: 10px; color: #6a7481; line-height: 1.8; }
.container.wrap { max-width: 1160px; padding-inline: 0; }
.learn-section { padding: 18px 0 39px; }
.section-kicker { margin: 0 0 9px; color: #86631d; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.learn-heading { max-width: 725px; margin-bottom: 23px; }
.learn-heading h2 { font-size: 28px; margin-bottom: 11px; }
.learn-intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.tutorial-steps { margin-bottom: 0; }
.tutorial-step { padding: 22px 20px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 17px; background: #fff3d5; border: 1px solid #f0dfb5; border-radius: 9px; color: #7f601f; font-size: 11px; font-weight: 750; }
.tutorial-step h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: -.25px; }
.tutorial-step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.faq-layout { margin-top: 20px; padding-top: 20px; }
.faq-intro { padding-top: 8px; }
.faq-intro h3 { margin: 0 0 12px; color: var(--ink); font-size: 24px; font-weight: 730; letter-spacing: -.6px; }
.faq-intro > p:not(.section-kicker) { max-width: 295px; margin-bottom: 16px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.reading-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.reading-links a { min-height: 28px; font-size: 11px; }
.faq-accordion { --bs-accordion-border-color: #dfe4eb; --bs-accordion-border-radius: 8px; --bs-accordion-active-bg: #fff8e9; --bs-accordion-active-color: #493a1d; --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-bg: #fff; }
.faq-accordion .accordion-item { margin-bottom: 8px; border: 1px solid #dfe4eb; border-radius: 8px; overflow: clip; }
.faq-accordion .accordion-item:last-child { margin-bottom: 0; }
.faq-accordion .accordion-button { min-height: 57px; padding: 17px 19px; border-radius: 7px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: #493a1d; }
.faq-accordion .accordion-button::after { width: 14px; height: 14px; background-size: 14px; margin-left: auto; }
.faq-accordion .accordion-button:focus-visible { outline-offset: -4px; }
.faq-accordion .accordion-body { padding: 16px 19px 20px; color: #5f6976; font-size: 13px; line-height: 1.9; }

/* No-JS fallback: expose every FAQ answer when scripting is unavailable. */
.no-js .faq-accordion .accordion-collapse { display: block !important; height: auto !important; visibility: visible !important; }
.no-js .faq-accordion .accordion-button::after { display: none; }

@media (max-width: 1090px) {
  .wrap { width: min(100% - 48px, 900px); }
  .site-card { padding: 20px; }
  .navlinks { gap: 22px; }
  .navlinks .disclosure { display: none; }
}
@media (max-width: 710px) {
  .toolbar { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .search { width: 100%; }
  .search input { height: 44px; font-size: 14px; }
  .search .icon { top: 14px; }
  .filters { gap: 4px; }
  .filter { flex: 1; padding: 8px 7px; min-height: 44px; }
  .resources { grid-template-columns: 1fr; }
  .partner-body { gap: 4px 8px; }
  .partner-desc { width: 100%; }
  .partner { padding: 14px 16px; }
  .partner .text-link { font-size: 11px; }
  .directory-foot { align-items: flex-start; flex-direction: column; gap: 9px; }
}
@media (max-width: 550px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 64px; gap: 12px; justify-content: space-between; }
  .brand { font-size: 18px; }
  .brand-icon { width: 29px; height: 31px; font-size: 24px; border-radius: 7px; }
  .navlinks { font-size: 11px; gap: 0; margin-left: 0; }
  .navlinks .how-link { display: none; }
  .navlinks a { padding: 14px 0 14px 12px; }
  .hero .wrap { padding-block: 27px 29px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 14px; }
  h1 { font-size: 39px; line-height: 1.11; letter-spacing: -1.6px; }
  .hero-desc { font-size: 13px; line-height: 1.7; margin-top: 14px; margin-bottom: 20px; max-width: 310px; }
  .hero::before { background: linear-gradient(90deg, rgba(15,17,19,.95), rgba(15,17,19,.6)); }
  .hero-actions { gap: 20px; }
  .primary { min-height: 44px; font-size: 12px; padding-inline: 14px; gap: 16px; }
  .hero-secondary { font-size: 11px; }
  .directory { padding-block: 25px 26px; }
  h2 { font-size: 21px; letter-spacing: -.6px; }
  .section-heading { gap: 12px; }
  .section-heading p { font-size: 12px; max-width: 240px; }
  .listing-count { font-size: 10px; padding: 4px 7px; margin-top: 1px; }
  .listing-count .icon { display: none; }
  .toolbar { margin: 19px 0 15px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .filter { padding-inline: 8px; font-size: 12px; gap: 7px; border-color: #e0e4eb; background: white; }
  .filter .count { font-size: 10px; }
  .site-card { padding: 18px; }
  .site-card h3 { font-size: 19px; }
  .category { font-size: 11px; }
  .partner-mark { display: none; }
  .partner-desc { font-size: 11px; }
  .partner-name { font-size: 12px; }
  .resource { padding: 21px; }
  .footer-top { flex-wrap: wrap; gap: 12px; }
  .footer-note { font-size: 9px; }
  .below { padding-bottom: 26px; }
  .learn-section { padding-top: 9px; padding-bottom: 26px; }
  .learn-heading h2 { font-size: 25px; }
  .learn-intro { font-size: 13px; }
  .tutorial-step { padding: 20px; }
  .tutorial-step p { font-size: 13px; }
  .step-number { margin-bottom: 12px; }
  .faq-layout { margin-top: 11px; padding-top: 11px; }
  .faq-intro h3 { font-size: 22px; }
  .faq-intro > p:not(.section-kicker) { max-width: none; }
  .faq-accordion .accordion-button { padding: 16px; }
  .faq-accordion .accordion-body { padding: 14px 16px 18px; }
  .ad-slot { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .site-card:hover { transform: none; }
}
