/* SnelBit — Black Friday blackout skin.
   Loaded only while bf_active() is true, after style.css, so everything here
   is an override. Nothing in style.css is edited. */

body.bf {
  /* Token overrides. Most of the site inherits correctly from these alone. */
  --ink: #f4f4f8;
  --text: #b9b9c6;
  --muted: #8a8a99;
  --border: #23232e;
  --soft: #0b0b10;
  --navy: #000000;
  --navy-2: #06060b;
  --primary: #4d6bff;      /* lifted off #0330ef, which is unreadable on black */
  --primary-600: #6d86ff;
  --purple: #a694ff;
  --grad: linear-gradient(135deg, #4d6bff 0%, #a694ff 100%);

  /* Campaign accent. Amber on black is 11.4:1, so it carries body text,
     button labels and the countdown without a contrast exception. */
  --bf-amber: #ffb000;
  --bf-amber-dim: #7a5400;
  --bf-panel: #0b0b10;
  --bf-panel-2: #121219;

  background: #000;
  color: var(--text);
}

/* ── Surfaces that style.css hardcodes to white ───────────────────────────── */

body.bf .nav { background: rgba(0, 0, 0, .92); }

body.bf .drop-menu,
body.bf .billing-inner,
body.bf .plan,
body.bf .card,
body.bf .use,
body.bf .compare-wrap,
body.bf .table-wrap,
body.bf .os li,
body.bf .form-card { background: var(--bf-panel); }

body.bf .form-card { box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
body.bf .drop-menu { box-shadow: 0 20px 50px rgba(0, 0, 0, .7); }

body.bf .input {
  background: var(--bf-panel-2);
  color: var(--ink);
}
body.bf .input::placeholder { color: var(--muted); }

body.bf .btn-light { background: var(--ink); color: #000; }
body.bf .plan:not(.pop) .btn { background: transparent; color: var(--primary-600); }
body.bf .skip { background: var(--bf-amber); color: #000; }
body.bf .legal-sidebar-nav a:hover { background: var(--bf-panel-2); color: var(--primary-600); }

@media (max-width: 980px) {
  body.bf .nav.open .nav-links {
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .8);
  }
}

/* Sections that were already dark now sit on black, so their panels need to
   lift rather than recede. */
body.bf .eu-item,
body.bf .hero-card,
body.bf .svc-specs div { background: rgba(255, 255, 255, .04); }

/* The header logo ships dark-on-light. Swapped in header.php when BF is on;
   this is the belt-and-braces fallback if that edit is missed. */
body.bf .brand img[src$="logo.svg"] { filter: brightness(0) invert(1); }

/* Primary CTAs go amber — reads as the campaign, and black-on-amber is the
   highest-contrast pair available here. */
body.bf .btn-primary {
  background: var(--bf-amber);
  color: #000;
  border-color: var(--bf-amber);
}
body.bf .btn-primary:hover { background: #ffc233; border-color: #ffc233; }

/* ── Site-wide promo strip ────────────────────────────────────────────────── */

.bf-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 18px;
  background: linear-gradient(90deg, #130d00 0%, #241800 50%, #130d00 100%);
  border-bottom: 1px solid var(--bf-amber-dim);
  color: #f0e6d2;
  font-size: 14.5px;
  text-decoration: none;
  text-align: center;
}
.bf-strip:hover { background: linear-gradient(90deg, #1a1200 0%, #2e1f00 50%, #1a1200 100%); }

.bf-strip-tag {
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #000;
  background: var(--bf-amber);
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.bf-strip-txt b { color: var(--bf-amber); }
.bf-strip-cta { font-weight: 700; color: var(--bf-amber); white-space: nowrap; }

@media (max-width: 760px) {
  .bf-strip { font-size: 13.5px; gap: 9px; padding: 10px 14px; }
}

/* ── The game ─────────────────────────────────────────────────────────────── */

.bfg {
  --bfg-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  padding: 54px 0 72px;
}

.bfg-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.bfg-kicker {
  display: inline-block;
  font-family: var(--bfg-mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bf-amber);
  border: 1px solid var(--bf-amber-dim);
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.bfg-head h1 {
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.bfg-head h1 em { font-style: normal; color: var(--bf-amber); }
.bfg-head p { font-size: 17px; margin: 0; }

.bfg-meta {
  display: flex;
  justify-content: center;
  gap: 10px 26px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-family: var(--bfg-mono);
  font-size: 13px;
  color: var(--muted);
}
.bfg-meta b { color: var(--ink); font-weight: 600; }

/* Rack */
.bfg-rack {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bf-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.bfg-rack-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--bfg-mono);
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.bfg-scans b { color: var(--bf-amber); }

.bfg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 620px) {
  .bfg-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .bfg-rack { padding: 16px 14px; }
  .bfg-rack-bar { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 12px; }
}

.bfg-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bf-panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--bfg-mono);
  color: var(--muted);
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color .18s, transform .18s, background .18s;
}
.bfg-slot:hover:not(:disabled) {
  border-color: var(--bf-amber-dim);
  transform: translateY(-2px);
  background: #16161f;
}
.bfg-slot:disabled { cursor: default; }
.bfg-slot:focus-visible { outline: 2px solid var(--bf-amber); outline-offset: 2px; }

/* The little drive LED */
.bfg-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a2a38;
  box-shadow: 0 0 0 0 rgba(255, 176, 0, 0);
}
.bfg-slot[data-state="scanning"] .bfg-led { background: var(--bf-amber); animation: bfg-blink .35s steps(1) infinite; }
.bfg-slot[data-state="empty"] { opacity: .4; border-style: dashed; }
.bfg-slot[data-state="empty"] .bfg-led { background: #3a2020; }
.bfg-slot[data-state="hit"] {
  border-color: var(--bf-amber);
  background: #1e1500;
  color: var(--bf-amber);
  animation: bfg-pop .45s cubic-bezier(.2, .9, .3, 1.4);
}
.bfg-slot[data-state="hit"] .bfg-led { background: #37d67a; box-shadow: 0 0 10px 2px rgba(55, 214, 122, .6); }

@keyframes bfg-blink { 50% { opacity: .15; } }
@keyframes bfg-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* Terminal log */
.bfg-term {
  max-width: 760px;
  margin: 18px auto 0;
  background: #06060a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--bfg-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #8f91aa;
  min-height: 112px;
  max-height: 200px;
  overflow-y: auto;
}
.bfg-term .ok { color: #37d67a; }
.bfg-term .hit { color: var(--bf-amber); }
.bfg-term .dim { color: #55566b; }

/* Result panel */
.bfg-result {
  max-width: 760px;
  margin: 22px auto 0;
  border-radius: 16px;
  padding: 30px 26px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bf-panel);
}
.bfg-result[hidden] { display: none; }
.bfg-result.win { border-color: var(--bf-amber); background: linear-gradient(180deg, #1a1200 0%, #0b0b10 70%); }
.bfg-result h2 { font-size: clamp(24px, 4vw, 34px); color: var(--ink); margin: 0 0 10px; }
.bfg-result.win h2 { color: var(--bf-amber); }
.bfg-result p { margin: 0 auto 20px; max-width: 480px; }

.bfg-code {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--bfg-mono);
  font-size: clamp(20px, 4vw, 27px);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--bf-amber);
  background: #000;
  border: 1px dashed var(--bf-amber-dim);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
}
.bfg-copy {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #000;
  background: var(--bf-amber);
  border: 0;
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
}
.bfg-fine {
  font-size: 13px;
  color: var(--muted);
  max-width: 540px;
  margin: 22px auto 0;
  line-height: 1.7;
}
.bfg-fine a { color: var(--primary-600); }

@media (prefers-reduced-motion: reduce) {
  .bfg-slot, .bfg-led { animation: none !important; transition: none !important; }
}

/* "come back tomorrow" line under the result */
.bfg-reset{margin:18px 0 0;font-family:var(--bfg-mono);font-size:13px;color:var(--muted)}
.bfg-reset[hidden]{display:none}
