.dbtb, .dbtb * { box-sizing: border-box; }
.dbtb { position: fixed; z-index: 2147483000; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--dbtb-text); }
.dbtb [hidden] { display: none !important; }
.dbtb-lock { overflow: hidden !important; }

/* Bottom bar */
.dbtb-bottom { left: 0; right: 0; bottom: 0; }
.dbtb-bottom .dbtb-card { background: var(--dbtb-bg); border-top: 1px solid var(--dbtb-muted); box-shadow: 0 -6px 24px rgba(0,0,0,.35); padding: 16px 20px; }
.dbtb-bottom .dbtb-main { max-width: 1160px; margin: 0 auto; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.dbtb-bottom .dbtb-prefs { max-width: 760px; margin: 0 auto; }

/* Centered pop-up / age gate */
.dbtb-center { inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.78); padding: 16px; overflow-y: auto; }
.dbtb-center .dbtb-card { background: var(--dbtb-bg); border: 1px solid var(--dbtb-muted); border-radius: 14px; width: 100%; max-width: 560px; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.6); margin: auto; }
.dbtb-center .dbtb-main { display: flex; flex-direction: column; gap: 18px; }

.dbtb-brand { font-weight: 800; font-size: 1.15em; letter-spacing: .04em; margin-bottom: 6px; }
.dbtb-age { font-weight: 700; margin-bottom: 4px; }
.dbtb-row { margin: 3px 0; }
.dbtb-label { font-weight: 700; }
.dbtb-text, .dbtb-intro, .dbtb-toggle small { color: var(--dbtb-muted); }
.dbtb-note { margin: 10px 0 0; font-size: .9em; color: var(--dbtb-muted); }
.dbtb-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dbtb-chip { white-space: nowrap; }

.dbtb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dbtb-bottom .dbtb-main > .dbtb-actions { flex: 0 0 auto; justify-content: flex-end; }
.dbtb-btn { font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px; padding: 10px 16px; border: 1px solid var(--dbtb-muted); background: transparent; color: var(--dbtb-text); text-decoration: none; line-height: 1.2; display: inline-block; }
.dbtb-btn:hover { filter: brightness(1.15); }
.dbtb-btn:focus-visible { outline: 2px solid var(--dbtb-accent); outline-offset: 2px; }
.dbtb-primary { background: var(--dbtb-accent); border-color: var(--dbtb-accent); color: var(--dbtb-accent-text); }
.dbtb-link { border-color: transparent; text-decoration: underline; }
.dbtb-leave { border-color: transparent; color: var(--dbtb-muted); font-weight: 500; font-size: .9em; text-decoration: underline; }

.dbtb-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.dbtb-toggle input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--dbtb-accent); }
.dbtb-toggle-body { display: flex; flex-direction: column; }
.dbtb-prefs .dbtb-actions { margin-top: 14px; }

/* Reopen button */
.dbtb-reopen { position: fixed; left: 14px; bottom: 14px; z-index: 2147482000; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.3); }

@media (max-width: 760px) {
	.dbtb-bottom .dbtb-card { max-height: 85vh; overflow-y: auto; padding: 14px; }
	.dbtb-bottom .dbtb-main { flex-direction: column; align-items: stretch; gap: 12px; }
	.dbtb-actions .dbtb-btn { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
	.dbtb-card { animation: dbtbIn .25s ease-out; }
	@keyframes dbtbIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
