html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: #000; overflow: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; color: #fff; }
#bf-root { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: #000; overflow: hidden; }
#bf-root.bf-idle, #bf-root.bf-idle * { cursor: none; }
[hidden] { display: none !important; }

#bf-stage-wrap { position: absolute; top: 0; left: 0; transform-origin: 0 0; background: #000; }

.bf-panel {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4vh 6vw; text-align: center; background: #0b0d14;
}
.bf-brand { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 3.2vh; letter-spacing: .12em; text-transform: uppercase; color: #9aa3b8; margin-bottom: 3vh; }
.bf-code { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 160px; line-height: 1.1; letter-spacing: .12em; color: #fff; }
.bf-help { font-size: 3.4vh; line-height: 1.4; max-width: 70vw; margin: 3vh 0 0; color: #d5d9e6; }
.bf-count { font-family: 'JetBrains Mono', monospace; font-size: 3vh; margin: 2vh 0 0; color: #9aa3b8; }
.bf-note { font-size: 3vh; margin: 2vh 0 0; color: #ffb454; min-height: 1.4em; }

.bf-banner { position: absolute; top: 12px; right: 12px; padding: 6px 14px; border-radius: 6px; background: rgba(20, 20, 20, .85); color: #fff; font-size: 18px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .35); z-index: 5; }
.bf-fs { position: absolute; bottom: 16px; right: 16px; padding: 10px 18px; font-size: 18px; font-weight: 600; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(20, 20, 20, .85); color: #fff; opacity: 0; transition: opacity .2s; z-index: 6; }
#bf-root.bf-active .bf-fs { opacity: 1; }
.bf-fs:focus { opacity: 1; outline: 3px solid #fff; }

/* Full-screen ad layer: crossfades over the stage (about 0.8 s). */
.bf-ad { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; z-index: 4; }
.bf-ad.bf-on { opacity: 1; }
