.bnq-hidden { display: none !important; }

/* Launcher - fixed */
.bnq-launcher-wrapper {
    position: fixed;
    right: 20px;
    bottom: 140px;
    z-index: 99999;
    text-align: center;
}

.bnq-launcher {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2be2, #d100ff, #ff0080);
    background-size: 200% 200%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 28px rgba(255, 0, 255, 0.65);
    animation: bnqPulse 3s infinite ease-in-out;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bnq-launcher:hover { transform: scale(1.12); }

.bnq-launcher-icon {
    font-size: 32px;
    color: #fff;
}

.bnq-launcher-text {
    margin-top: 6px;
    color: #eee;
    font-size: 13px;
}

/* Overlay basis */
.bnq-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bnq-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

/* Panel (met iPhone scroll fix) */
.bnq-overlay-panel {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: rgba(25, 5, 40, 0.9);
    padding: 30px 24px 24px 24px;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Close button */
.bnq-close {
    position: absolute;
    right: 10px;
    top: 6px;
    font-size: 28px;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 3;
}

/* Header */
.bnq-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-top: 8px;
}

.bnq-title {
    font-size: 22px;
    font-weight: 700;
}

.bnq-subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Stats */
.bnq-stats {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 12px;
    text-align: right;
    font-size: 11px;
    margin-top: 18px;
}

.bnq-label {
    font-size: 11px;
    opacity: 0.8;
}

.bnq-value {
    font-size: 18px;
    font-weight: bold;
}

/* Lives (hearts) */
.bnq-lives {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 20px;
}

.bnq-heart {
    position: relative;
    width: 14px;
    height: 14px;
    transform: rotate(-45deg);
    margin-left: 4px;
    background: #ff3366;
    border-radius: 4px;
}

.bnq-heart::before,
.bnq-heart::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ff3366;
    border-radius: 50%;
}

.bnq-heart::before {
    top: -7px;
    left: 0;
}

.bnq-heart::after {
    left: 7px;
    top: 0;
}

/* Token timer */
.bnq-token-timer {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 11px;
    opacity: 0.9;
    font-family: monospace;
    width: 160px;
    text-align: right;
    white-space: nowrap;
}

/* Question area */
.bnq-question-area {
    position: relative;
    margin-top: 18px;
    min-height: 220px;
}

.bnq-question-text {
    margin-top: 10px;
    font-size: 20px;
    margin-bottom: 12px;
    min-height: 52px;
}

/* Answers */
.bnq-answers {
    margin-top: 6px;
}

.bnq-answer-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    background: #4b007a;
    color: #fff;
    border: none;
    text-align: left;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.bnq-answer-btn:hover {
    transform: translateY(-1px);
    background: #5e1594;
}

.bnq-answer-correct { background: #3abf40 !important; }
.bnq-answer-wrong   { background: #d34747 !important; }

/* Verborgen / uitgeschakelde antwoorden (hint) */
.bnq-answer-hidden {
    opacity: 0.25;
    pointer-events: none;
}

/* Hint bar */
.bnq-hint-bar {
    margin-top: 12px;
    text-align: right;
}

.bnq-hint-btn {
    font-size: 13px;
    padding: 8px 16px;
}

.bnq-hint-btn.bnq-btn-disabled {
    opacity: 0.5;
    cursor: default;
}

/* Out-of-tokens / lives panel */
.bnq-out-of-tokens {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 360px;
    background: rgba(0, 0, 0, 0.75);
    padding: 18px 16px;
    border-radius: 12px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 0 18px rgba(0,0,0,0.6);
}

.bnq-out-of-tokens h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.bnq-out-of-tokens p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.bnq-out-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Buttons */
.bnq-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.bnq-btn-primary {
    background: #d100ff;
    color: #fff;
}

.bnq-btn-secondary {
    background: #444;
    color: #fff;
}

.bnq-btn-disabled {
    opacity: 0.5;
    cursor: default;
}

/* Ad modal */
.bnq-ad-modal {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.bnq-ad-inner {
    text-align: center;
    padding: 20px 18px;
    border-radius: 14px;
    background: radial-gradient(circle at top, #4b007a, #120019);
    box-shadow: 0 0 28px rgba(0,0,0,0.8);
    width: 260px;
}

.bnq-ad-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.bnq-ad-text {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.bnq-ad-countdown {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

.bnq-ad-subtext {
    font-size: 12px;
    opacity: 0.85;
}

/* Highscore modal */
.bnq-hs-modal {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
}

.bnq-hs-inner {
    background: rgba(30, 8, 60, 0.95);
    border-radius: 16px;
    padding: 20px 18px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
}

.bnq-hs-inner h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.bnq-hs-summary {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.bnq-hs-field {
    margin-bottom: 10px;
}

.bnq-hs-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    opacity: 0.85;
}

.bnq-hs-field input,
.bnq-hs-field select {
    width: 100%;
    padding: 7px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(8, 0, 20, 0.8);
    color: #fff;
    font-size: 13px;
}

.bnq-hs-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.bnq-hs-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bnq-hs-avatar.bnq-hs-avatar-selected {
    border-color: #ff66ff;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.7);
    background: rgba(120, 20, 160, 0.9);
}

.bnq-hs-message {
    min-height: 16px;
    font-size: 12px;
    margin-top: 4px;
    color: #ffd6ff;
}

.bnq-hs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

/* Footer */
.bnq-footer-status {
    margin-top: 18px;
    font-size: 11px;
    opacity: 0.7;
    text-align: right;
}

/* Leaderboard page */
.bnq-leaderboard {
    max-width: 900px;
    margin: 20px auto;
    padding: 10px;
}

.bnq-leaderboard h2 {
    font-size: 24px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* Leaderboard table */
.bnq-leaderboard-table {
    width: 100% !important;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: rgba(20, 20, 30, 0.85);
    color: #fff;
}

.bnq-leaderboard-table th {
    background: rgba(40, 40, 60, 0.95);
    color: #fff;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    text-align: left;
}

.bnq-leaderboard-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #f3f3f3;
}

.bnq-leaderboard-table tr:nth-child(even) {
    background: rgba(255,255,255,0.05);
}

.bnq-leaderboard-table tr:hover {
    background: rgba(255,255,255,0.12);
}

.bnq-lb-avatar {
    font-size: 22px;
}

@media(max-width: 600px) {
    .bnq-leaderboard-table th,
    .bnq-leaderboard-table td {
        font-size: 12px;
        padding: 6px 8px;
    }
}

/* Pulse animatie */
@keyframes bnqPulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Oude link-stijl laten staan voor de zekerheid */
.bnq-footer-lb-link {
    color: #ffd6ff;
    text-decoration: underline;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.85;
    margin-left: 4px;
}

.bnq-footer-lb-link:hover {
    opacity: 1;
    text-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* NIEUWE: Leaderboard knop in footer */
.bnq-footer-lb-button {
    display: inline-block;
    background: #d100ff;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.9;
    margin-left: 6px;
    box-shadow: 0 0 10px rgba(255,0,255,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.bnq-footer-lb-button:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(255,0,255,0.8);
}
/* ================================
   BNQ Answer Timer (VISUAL ONLY)
   ================================ */

.bnq-timer-wrapper {
    margin: 6px 0 10px 0;
}

.bnq-timer-bar {
    position: relative;
    width: 100%;
    height: 7px;
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
}

/* BNQ Answer Timer (JS controlled color) */
.bnq-timer-fill {
    width: 100%;
    height: 100%;
    background: #00ff88; /* start groen */
    transition: width 0.05s linear;
}
}

/* Subtiele pulse voor latere high-pressure levels */
.bnq-timer-pulse {
    animation: bnqTimerPulse 0.6s infinite alternate;
}

@keyframes bnqTimerPulse {
    from { opacity: 1; }
    to   { opacity: 0.55; }
}
/* ================================
   BNQ Time Bonus Feedback
================================ */
.bnq-time-bonus {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #7dffb3;
    text-align: right;
    opacity: 0.95;
}
