.bs1-app{min-height:100svh;background:linear-gradient(180deg,#10192b 0%,#050812 100%);color:#fff;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:20px;box-sizing:border-box;position:relative;overflow-x:hidden}
.bs1-app *{box-sizing:border-box}
.bs1-screen{display:none}
.bs1-screen.active{display:block}
.bs1-fullscreen{position:fixed;top:18px;right:18px;z-index:9999;width:58px;height:58px;border-radius:20px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font-size:28px;font-weight:900;backdrop-filter:blur(12px)}
.bs1-hero,.bs1-center{min-height:calc(100svh - 40px);display:flex;flex-direction:column;justify-content:center;gap:18px;text-align:center}
.bs1-kicker{letter-spacing:.22em;color:#7dd3fc;font-size:13px;font-weight:900;text-transform:uppercase}
.bs1-app h1{font-size:clamp(38px,10vw,72px)!important;line-height:1.02!important;margin:0!important;color:#fff!important;text-shadow:0 4px 24px rgba(0,0,0,.7)}
.bs1-app h2{font-size:32px!important;color:#fff!important;margin:0 0 12px!important}
.bs1-app p{font-size:19px!important;line-height:1.45!important;color:#e8eefc!important;margin:0!important}
.bs1-btn{width:100%;border:0;border-radius:20px;padding:18px 20px;font-size:19px;font-weight:900;color:#fff;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15)}
.bs1-btn.primary{background:linear-gradient(135deg,#2563eb,#06b6d4);box-shadow:0 16px 34px rgba(37,99,235,.24)}
.bs1-btn.ghost{background:rgba(255,255,255,.08)}
.bs1-card{background:#fff;color:#071226;border-radius:28px;padding:24px;margin:86px 0 20px;box-shadow:0 20px 70px rgba(0,0,0,.35)}
.bs1-card h2{color:#071226!important}
.bs1-card p{color:#334155!important}
.bs1-card strong{color:#071226}
.bs1-label{display:block;color:#071226;font-size:16px;font-weight:800;text-align:left;margin:12px 0}
.bs1-label input,.bs1-player-row input{width:100%;border:2px solid #d1d5db;border-radius:18px;padding:15px 16px;font-size:19px;color:#071226;background:#fff}
.bs1-player-list{display:grid;gap:10px;margin:16px 0}
.bs1-player-row{display:flex;gap:8px;align-items:center}
.bs1-mini{width:48px;height:48px;border-radius:16px;border:0;background:#e5e7eb;color:#071226;font-size:28px;font-weight:900}
.bs1-score-list{display:grid;gap:10px;margin:10px 0 4px}
.bs1-score-list div{display:flex;justify-content:space-between;align-items:center;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);border-radius:18px;padding:14px 16px;color:#fff}
.bs1-score-list strong{font-size:24px;color:#fff}
.bs1-question-layout{min-height:100svh;display:grid;grid-template-rows:auto 1fr auto;gap:18px;padding:78px 0 14px}
.bs1-game-head{display:flex;justify-content:space-between;align-items:center;gap:14px}
.bs1-game-head small{display:block;color:#cbd5e1;font-size:14px}
.bs1-game-head strong{display:block;color:#fff;font-size:25px}
.bs1-clock{background:#fff;color:#071226;border-radius:24px;padding:18px 34px;font-size:56px;font-weight:1000;line-height:1;min-width:130px;text-align:center}
.bs1-question-card{align-self:center;background:#fff;color:#071226;border-radius:30px;padding:28px 22px;text-align:left;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.bs1-question-card .bs1-kicker{color:#0369a1}
.bs1-question-card h1{color:#071226!important;text-shadow:none!important;font-size:clamp(34px,8vw,58px)!important;line-height:1.08!important;margin:16px 0!important}
.bs1-question-card p{color:#334155!important;font-size:19px!important}
.bs1-answer-bar{position:sticky;bottom:0;display:grid;grid-template-columns:1fr auto auto;gap:8px;background:rgba(5,8,18,.94);padding:10px;border-radius:24px;border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(14px)}
.bs1-answer-input{min-width:0;border:0;border-radius:16px;padding:15px 16px;font-size:20px;color:#071226;background:#fff}
.bs1-submit,.bs1-pass{border:0;border-radius:16px;padding:0 16px;font-size:17px;font-weight:900;color:#fff}
.bs1-submit{background:#2563eb}
.bs1-pass{background:#1f2937}
.bs1-result{font-size:22px;font-weight:1000;text-transform:uppercase;letter-spacing:.12em;border-radius:999px;padding:12px 18px;align-self:center}
.bs1-result.ok{background:#dcfce7;color:#166534}
.bs1-result.wrong{background:#fee2e2;color:#991b1b}
.bs1-pseudo-fullscreen{position:fixed!important;inset:0!important;z-index:999999!important;overflow:auto!important}
@media(max-width:420px){.bs1-app{padding:16px}.bs1-card{margin-top:74px}.bs1-clock{font-size:44px;min-width:110px}.bs1-answer-bar{grid-template-columns:1fr;}.bs1-submit,.bs1-pass{height:48px}.bs1-question-layout{padding-top:72px}}


/* Breinstrijd Clean V1.1 - 3-6-9 turn path */
.bs1-path{display:grid;grid-template-columns:repeat(15,1fr);gap:5px;width:100%;margin:0 0 12px}
.bs1-path span{height:28px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#cbd5e1;font-size:12px;font-weight:900}
.bs1-path span.bonus{background:rgba(125,211,252,.18);border-color:rgba(125,211,252,.45);color:#e0f7ff;box-shadow:0 0 14px rgba(125,211,252,.18)}
.bs1-path span.done{background:rgba(34,197,94,.22);border-color:rgba(34,197,94,.45);color:#dcfce7}
.bs1-path span.current{background:#fff;color:#071226;transform:scale(1.18);box-shadow:0 8px 24px rgba(255,255,255,.24)}
.bs1-score-list div.active{outline:2px solid rgba(125,211,252,.75);background:rgba(125,211,252,.12)}
.bs1-center .bs1-path{max-width:620px;margin-left:auto;margin-right:auto}
@media(max-width:420px){.bs1-path{gap:3px}.bs1-path span{font-size:10px;height:24px}}


/* V1.2 mobile gameplay fixes */
.bs1-question-layout{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-bottom:220px;
}

.bs1-question-card{
  margin-top:8px;
}

.bs1-question-card h1{
  font-size:clamp(28px,7vw,54px)!important;
  line-height:1.05!important;
  margin:10px 0 18px!important;
}

.bs1-answer-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:9999;
  background:rgba(2,6,23,.96);
  backdrop-filter:blur(14px);
  padding:12px;
  border-top:1px solid rgba(255,255,255,.08);
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:10px;
}

.bs1-answer-input{
  height:56px!important;
  font-size:20px!important;
}

.bs1-submit,
.bs1-pass{
  height:56px!important;
  min-width:88px;
  border-radius:18px!important;
}

.bs1-pass{
  position:relative!important;
  bottom:auto!important;
  left:auto!important;
}

@media(max-width:640px){
  .bs1-game-head{
    position:sticky;
    top:0;
    z-index:20;
    background:rgba(2,6,23,.95);
    padding-top:8px;
  }

  .bs1-question-card{
    padding:22px!important;
  }

  .bs1-question-card h1{
    font-size:42px!important;
  }

  .bs1-answer-bar{
    grid-template-columns:1fr;
  }

  .bs1-submit,
  .bs1-pass{
    width:100%;
  }
}


/* V1.3 pass button next to input */
.bs1-answer-bar{
  grid-template-columns:1fr 76px 76px!important;
  align-items:center;
}
.bs1-pass,.bs1-submit{
  min-width:0!important;
  padding:0 8px!important;
}
@media(max-width:640px){
  .bs1-answer-bar{
    grid-template-columns:1fr 72px 72px!important;
  }
  .bs1-submit,.bs1-pass{
    width:auto!important;
  }
}


/* V1.4 player manager */
.bs1-player-manager{margin:18px 0 22px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:24px;padding:14px}
.bs1-player-manager-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#071226}
.bs1-player-manager-head strong{font-size:18px;color:#071226}
.bs1-player-manager-head span{font-size:13px;color:#64748b}
.bs1-player-list{gap:8px!important;margin:0!important}
.bs1-player-row{display:grid!important;grid-template-columns:34px 1fr 44px;gap:8px;align-items:center}
.bs1-player-row span{width:34px;height:34px;border-radius:12px;background:#e0f2fe;color:#0369a1;display:grid;place-items:center;font-weight:900}
.bs1-player-row input{height:52px!important;border-radius:16px!important;font-size:17px!important}
.bs1-mini{width:44px!important;height:44px!important;border-radius:15px!important;background:#fee2e2!important;color:#991b1b!important}
.bs1-add-player{width:100%;margin-top:10px;border:1px dashed #60a5fa;background:#eff6ff;color:#1d4ed8;border-radius:16px;padding:13px;font-size:16px;font-weight:900}

/* V1.4 keyboard-first question layout */
.bs1-question-layout{
  min-height:100svh!important;
  display:flex!important;
  flex-direction:column!important;
  padding:82px 18px 96px!important;
  gap:10px!important;
}

.bs1-game-head{
  position:relative!important;
  top:auto!important;
  background:transparent!important;
  padding:0!important;
  flex-shrink:0;
}

.bs1-game-head small{font-size:13px!important}
.bs1-game-head strong{font-size:22px!important}
.bs1-clock{
  font-size:38px!important;
  min-width:92px!important;
  padding:12px 22px!important;
  border-radius:20px!important;
}

.bs1-question-layout .bs1-path{
  flex-shrink:0;
  margin:0!important;
}

.bs1-question-card{
  margin:8px 0 0!important;
  padding:22px!important;
  border-radius:26px!important;
  flex:0 1 auto;
  max-height:calc(100svh - 230px);
  overflow:auto;
}

.bs1-question-card h1{
  font-size:clamp(28px,8vw,46px)!important;
  line-height:1.08!important;
  margin:10px 0 12px!important;
}

.bs1-question-card p{
  font-size:17px!important;
}

.bs1-answer-bar{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:99999!important;
  border-radius:22px 22px 0 0!important;
  grid-template-columns:1fr 72px 72px!important;
  padding:10px!important;
}

.bs1-answer-input{height:54px!important;font-size:19px!important;border-radius:16px!important}
.bs1-pass,.bs1-submit{height:54px!important;border-radius:16px!important;font-size:16px!important}

.bs1-keyboard-open .bs1-question-layout{
  padding-top:12px!important;
  padding-bottom:84px!important;
  justify-content:flex-start!important;
}

.bs1-keyboard-open .bs1-fullscreen,
.bs1-keyboard-open .bs1-game-head{
  display:none!important;
}

.bs1-keyboard-open .bs1-question-layout .bs1-path{
  transform:scale(.92);
  transform-origin:left top;
  margin-bottom:-4px!important;
}

.bs1-keyboard-open .bs1-question-card{
  max-height:calc(100svh - 110px);
  margin-top:0!important;
  padding:18px!important;
}

.bs1-keyboard-open .bs1-question-card h1{
  font-size:clamp(26px,7vw,38px)!important;
}

@media(max-width:420px){
  .bs1-question-layout{padding-left:14px!important;padding-right:14px!important}
  .bs1-answer-bar{grid-template-columns:1fr 68px 68px!important}
}


/* V1.5: no auto keyboard, readable question-first layout + speech input */
.bs1-question-layout{
  min-height:100svh!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  gap:12px!important;
  padding:78px 16px 170px!important;
  overflow:auto!important;
}

.bs1-game-head{
  display:flex!important;
  position:relative!important;
  top:auto!important;
  z-index:1!important;
  background:transparent!important;
  padding:0!important;
  flex-shrink:0!important;
}

.bs1-game-head small{font-size:13px!important;color:#cbd5e1!important}
.bs1-game-head strong{font-size:21px!important;color:#fff!important}
.bs1-clock{
  font-size:36px!important;
  min-width:88px!important;
  padding:12px 18px!important;
  border-radius:20px!important;
}

.bs1-question-layout .bs1-path{
  flex-shrink:0!important;
  margin:0!important;
  position:relative!important;
  z-index:1!important;
}

.bs1-question-card{
  margin:8px 0 0!important;
  padding:20px!important;
  border-radius:26px!important;
  max-height:none!important;
  overflow:visible!important;
}

.bs1-question-card h1{
  font-size:clamp(28px,8vw,46px)!important;
  line-height:1.08!important;
  margin:10px 0 12px!important;
  display:block!important;
  overflow:visible!important;
}

.bs1-question-card p{
  font-size:17px!important;
  line-height:1.35!important;
}

.bs1-answer-bar{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:99999!important;
  display:block!important;
  border-radius:24px 24px 0 0!important;
  background:rgba(2,6,23,.97)!important;
  border-top:1px solid rgba(255,255,255,.12)!important;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;
  backdrop-filter:blur(14px)!important;
}

.bs1-answer-row{
  display:grid;
  grid-template-columns:1fr 54px;
  gap:8px;
  align-items:center;
}

.bs1-answer-input{
  height:52px!important;
  min-width:0!important;
  border:0!important;
  border-radius:16px!important;
  padding:0 14px!important;
  font-size:18px!important;
  color:#071226!important;
  background:#fff!important;
}

.bs1-mic{
  height:52px!important;
  border:0!important;
  border-radius:16px!important;
  background:#0ea5e9!important;
  color:#fff!important;
  font-size:22px!important;
  font-weight:900!important;
}

.bs1-answer-actions{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
  margin-top:8px;
}

.bs1-type,.bs1-pass,.bs1-submit{
  height:48px!important;
  border:0!important;
  border-radius:16px!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:900!important;
  padding:0 8px!important;
  min-width:0!important;
  width:auto!important;
}

.bs1-type{background:#334155!important}
.bs1-pass{background:#1f2937!important}
.bs1-submit{background:#2563eb!important}

.bs1-speech-status{
  min-height:22px;
  margin-top:6px;
  color:#cbd5e1;
  font-size:13px;
  line-height:1.25;
  text-align:left;
}

.bs1-speech-status.active{color:#7dd3fc}
.bs1-listening .bs1-mic{background:#ef4444!important;animation:bs1pulse 1s infinite}
@keyframes bs1pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}

.bs1-keyboard-open .bs1-question-layout{
  padding:8px 12px 150px!important;
}

.bs1-keyboard-open .bs1-game-head{
  display:none!important;
}

.bs1-keyboard-open .bs1-question-card{
  padding:16px!important;
  margin-top:4px!important;
}

.bs1-keyboard-open .bs1-question-card h1{
  font-size:clamp(24px,7vw,36px)!important;
}

@media(max-width:420px){
  .bs1-question-layout{padding-top:74px!important}
  .bs1-question-card h1{font-size:clamp(27px,8.5vw,42px)!important}
}


/* V1.6 voice mode setting + keyboard/fullscreen improvement */
.bs1-mode-card{
  margin:16px 0;
  padding:14px;
  border-radius:20px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:#071226;
}
.bs1-mode-card strong{display:block;color:#071226;font-size:17px}
.bs1-mode-card span{display:block;color:#64748b;font-size:13px;line-height:1.35}
.bs1-switch{display:inline-flex!important;margin:0!important}
.bs1-switch input{display:none}
.bs1-switch span{
  width:58px;
  height:34px;
  border-radius:999px;
  background:#cbd5e1;
  position:relative;
  display:block;
}
.bs1-switch span:before{
  content:"";
  width:28px;
  height:28px;
  border-radius:50%;
  background:white;
  position:absolute;
  top:3px;
  left:3px;
  transition:.2s;
  box-shadow:0 2px 8px rgba(0,0,0,.2);
}
.bs1-switch input:checked + span{background:#0ea5e9}
.bs1-switch input:checked + span:before{transform:translateX(24px)}
.bs1-setup-status{font-size:13px;color:#64748b;margin-top:-8px;margin-bottom:10px;min-height:18px}
.bs1-setup-status.ok{color:#047857}

.bs1-answer-bar{
  transform:translateZ(0);
  will-change:transform;
}

/* In native fullscreen Android, avoid forcing keyboard overlay into broken coordinates */
.bs1-keyboard-open .bs1-answer-bar{
  position:fixed!important;
  bottom:0!important;
}

/* With voice mode, make mic state obvious */
.bs1-listening .bs1-speech-status{
  color:#7dd3fc!important;
  font-weight:800;
}


/* V1.6.2 persistent voice answer loop */
.bs1-listening .bs1-mic{
  background:#ef4444!important;
  box-shadow:0 0 0 6px rgba(239,68,68,.18);
}
.bs1-listening .bs1-answer-bar{
  border-top-color:rgba(125,211,252,.45)!important;
}
.bs1-speech-status{
  min-height:30px!important;
}


/* V1.7 member state */
.bs1-pseudo-fullscreen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  z-index:999999!important;
  overflow:auto!important;
  background:#050812!important;
}


.bs1-top-actions{
  position:fixed;
  top:18px;
  right:18px;
  display:flex;
  gap:10px;
  z-index:1000;
}


/* V1.8 visible top menu and saved games */
.bs1-top-actions{
  position:fixed!important;
  top:calc(14px + env(safe-area-inset-top))!important;
  left:14px!important;
  right:14px!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  z-index:2147483000!important;
  pointer-events:none;
}
.bs1-top-actions .bs1-icon-btn{
  pointer-events:auto;
}
.bs1-icon-btn{
  width:54px!important;
  height:54px!important;
  border-radius:18px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  background:rgba(2,6,23,.72)!important;
  color:#fff!important;
  font-size:25px!important;
  font-weight:900!important;
  backdrop-filter:blur(14px)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.28)!important;
}
.bs1-saves-list{display:grid;gap:14px;margin:18px 0}
.bs1-save-card{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:16px;
  display:grid;
  gap:10px;
  color:#071226;
}
.bs1-save-card strong{display:block;color:#071226;font-size:18px}
.bs1-save-card span,.bs1-save-card small{display:block;color:#64748b;margin-top:4px}
.bs1-save-empty{
  background:#f8fafc;
  color:#64748b;
  border:1px dashed #cbd5e1;
  border-radius:18px;
  padding:18px;
  text-align:center;
}
.bs1-btn.danger{color:#fee2e2!important;border-color:rgba(239,68,68,.35)!important}


/* V1.9 Open Deur */
.bs1-found{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.bs1-found span{background:#dcfce7;color:#166534;border-radius:999px;padding:7px 10px;font-weight:900}
.bs1-open-progress{display:block;margin-top:10px;color:#64748b;font-weight:800}
.bs1-path-open{grid-template-columns:repeat(3,1fr)!important;max-width:240px}
#bs-open-door-result{background:#0f172a;color:#dbeafe;border-radius:14px;padding:14px;min-height:54px;white-space:pre-wrap}


/* V1.9.1 Open Deur voice/pass logic note */
.bs1-speech-status.active{
  font-weight:800;
}


/* V1.9.2 Open Deur voice active feedback */
.bs1-listening .bs1-question-card{
  outline:3px solid rgba(14,165,233,.45);
}


/* V1.9.3 fullscreen fallback hardening */
html.bs1-lock-scroll,
body.bs1-lock-scroll{
  overflow:hidden!important;
  height:100%!important;
}
.bs1-pseudo-fullscreen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  z-index:2147483000!important;
  overflow:auto!important;
  background:#050812!important;
}


/* Hide duplicate fullscreen buttons */
.bs1-fullscreen-btn + .bs1-fullscreen-btn{
  display:none!important;
}


/* V1.9.5 single canonical topbar */


.bs1-fixed-topbar{
  position:fixed!important;
  top:calc(14px + env(safe-area-inset-top))!important;
  left:14px!important;
  right:14px!important;
  z-index:2147483647!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  pointer-events:none!important;
}

.bs1-fixed-topbar .bs1-top-btn{
  pointer-events:auto!important;
  width:56px!important;
  height:56px!important;
  border-radius:18px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  background:rgba(15,23,42,.82)!important;
  color:#fff!important;
  font-size:28px!important;
  font-weight:900!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:0 12px 30px rgba(0,0,0,.32)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}

.bs1-pseudo-fullscreen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  z-index:2147483000!important;
  overflow:auto!important;
  background:#050812!important;
}

html.bs1-lock-scroll,
body.bs1-lock-scroll{
  overflow:hidden!important;
  height:100%!important;
}


/* V1.9.6 force visible menu/fullscreen topbar */
#breinstrijd-v1 .bs1-fixed-topbar{
  position:fixed!important;
  top:calc(14px + env(safe-area-inset-top))!important;
  left:14px!important;
  right:14px!important;
  z-index:2147483647!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  pointer-events:none!important;
  visibility:visible!important;
  opacity:1!important;
}

#breinstrijd-v1 .bs1-fixed-topbar .bs1-top-btn{
  pointer-events:auto!important;
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  min-height:58px!important;
  border-radius:20px!important;
  border:1px solid rgba(255,255,255,.24)!important;
  background:rgba(15,23,42,.88)!important;
  color:#fff!important;
  font-size:30px!important;
  font-weight:900!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:0 14px 34px rgba(0,0,0,.42)!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
  text-decoration:none!important;
  padding:0!important;
  margin:0!important;
  appearance:none!important;
}

#breinstrijd-v1 .bs1-fixed-topbar .bs1-menu-btn{
  justify-self:flex-start!important;
}

#breinstrijd-v1 .bs1-fixed-topbar .bs1-full-btn{
  justify-self:flex-end!important;
}

.bs1-pseudo-fullscreen #breinstrijd-v1,
#breinstrijd-v1.bs1-pseudo-fullscreen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  z-index:2147483000!important;
  overflow:auto!important;
  background:#050812!important;
}


/* V2.0 Puzzelronde */
.bs1-puzzle-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:14px 0 12px;
}
.bs1-puzzle-grid div{
  background:#f1f5f9;
  border:1px solid #dbe3ee;
  border-radius:14px;
  padding:10px 8px;
  color:#0f172a;
  font-weight:900;
  text-align:center;
  font-size:clamp(13px,3.2vw,17px);
  min-height:48px;
  display:grid;
  place-items:center;
}
@media(max-width:420px){
  .bs1-puzzle-grid{grid-template-columns:repeat(3,1fr);gap:6px}
  .bs1-puzzle-grid div{font-size:12px;padding:8px 5px;min-height:42px}
}
#bs-puzzle-result{background:#0f172a;color:#dbeafe;border-radius:14px;padding:14px;min-height:54px;white-space:pre-wrap}


/* V2.0.2 Puzzle solved group styling */
.bs1-puzzle-grid div.solved{
  background:#e5e7eb!important;
  color:#94a3b8!important;
  border-color:#cbd5e1!important;
  text-decoration:line-through;
  opacity:.62;
  filter:grayscale(1);
}


/* V2.1 Galerij */
.bs1-gallery-theme{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#64748b;
  font-weight:900;
  margin-top:10px;
}
.bs1-gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:12px 0;
}
.bs1-gallery-grid a{
  min-height:84px;
  border-radius:16px;
  background:linear-gradient(135deg,#e0f2fe,#f8fafc);
  border:1px solid #cbd5e1;
  color:#0f172a;
  text-decoration:none!important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:4px;
  font-weight:900;
}
.bs1-gallery-grid a span{
  width:28px;height:28px;border-radius:999px;background:#0ea5e9;color:#fff;display:grid;place-items:center;
}
.bs1-gallery-grid a em{
  font-style:normal;
  font-size:12px;
  color:#475569;
}
.bs1-gallery-grid a.solved{
  background:#e5e7eb!important;
  color:#94a3b8!important;
  opacity:.55;
  filter:grayscale(1);
}
.bs1-gallery-grid a.solved span{background:#94a3b8}
@media(max-width:420px){
  .bs1-gallery-grid{grid-template-columns:repeat(4,1fr);gap:6px}
  .bs1-gallery-grid a{min-height:66px;border-radius:12px}
}
#bs-gallery-result{background:#0f172a;color:#dbeafe;border-radius:14px;padding:14px;min-height:54px;white-space:pre-wrap}


/* V2.3 Gallery true flow */
.bs1-gallery-first{
  display:grid;
  gap:12px;
  margin-top:12px;
}
.bs1-gallery-big a{
  min-height:260px;
  border-radius:28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(14,165,233,.45), transparent 35%),
    linear-gradient(135deg,#dbeafe,#f8fafc);
  border:1px solid #cbd5e1;
  color:#0f172a;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-decoration:none!important;
  text-align:center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.bs1-gallery-big a span{
  width:66px;height:66px;border-radius:999px;background:#0ea5e9;color:#fff;
  display:grid;place-items:center;font-size:28px;font-weight:1000;margin-bottom:12px;
}
.bs1-gallery-big a strong{font-size:25px}
.bs1-gallery-big a small{color:#64748b;margin-top:4px;font-weight:800}
.bs1-gallery-mini{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:5px;
}
.bs1-gallery-mini div{
  height:32px;border-radius:999px;background:#e2e8f0;color:#0f172a;
  display:grid;place-items:center;font-weight:1000;border:1px solid #cbd5e1;
}
.bs1-gallery-mini div.current{background:#fff;color:#0f172a;box-shadow:0 0 0 4px rgba(14,165,233,.25)}
.bs1-gallery-mini div.solved{background:#dcfce7;color:#166534}
.bs1-gallery-answer-list{
  display:grid;
  gap:7px;
  margin:12px 0;
}
.bs1-gallery-answer-list div{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:8px;
  align-items:center;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:9px 10px;
}
.bs1-gallery-answer-list b{
  width:28px;height:28px;border-radius:999px;background:#0ea5e9;color:#fff;
  display:grid;place-items:center;
}
.bs1-gallery-answer-list .blurred span{
  filter:blur(5px);
  color:#64748b;
  user-select:none;
}
.bs1-gallery-answer-list .solved{
  background:#dcfce7;
  border-color:#bbf7d0;
}
.bs1-gallery-answer-list .solved span{
  color:#166534;
  font-weight:1000;
}
.bs1-gallery-remain-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:12px 0;
}
.bs1-gallery-remain-grid a{
  min-height:64px;
  border-radius:14px;
  background:linear-gradient(135deg,#e0f2fe,#f8fafc);
  border:1px solid #cbd5e1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-decoration:none!important;
  color:#0f172a;
  font-weight:900;
}
.bs1-gallery-remain-grid a.solved{
  background:#e5e7eb!important;
  color:#94a3b8!important;
  opacity:.55;
  filter:grayscale(1);
}
@media(max-width:420px){
  .bs1-gallery-big a{min-height:210px}
  .bs1-gallery-remain-grid{grid-template-columns:repeat(4,1fr);gap:6px}
  .bs1-gallery-remain-grid a{min-height:56px;font-size:12px}
}


/* V2.4 gallery in-app image rendering and per-player rounds */
.bs1-gallery-photo{
  position:relative;
  width:100%;
  min-height:260px;
  border-radius:28px;
  overflow:hidden;
  background:#dbeafe;
  border:1px solid #cbd5e1;
  display:block;
}
.bs1-gallery-photo img{
  width:100%;
  height:100%;
  min-height:260px;
  object-fit:cover;
  display:block;
}
.bs1-gallery-photo span{
  position:absolute;
  left:14px;
  top:14px;
  min-width:44px;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(14,165,233,.92)!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:1000;
}
.bs1-gallery-remain-grid div{
  min-height:74px;
  border-radius:14px;
  background:#e0f2fe;
  border:1px solid #cbd5e1;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  color:#0f172a;
  font-weight:900;
}
.bs1-gallery-remain-grid div img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.bs1-gallery-remain-grid div:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(2,6,23,.64),rgba(2,6,23,.05));
}
.bs1-gallery-remain-grid div span,
.bs1-gallery-remain-grid div em{
  position:relative;
  z-index:2;
  color:#fff;
  font-style:normal;
  text-shadow:0 1px 4px rgba(0,0,0,.45);
}
.bs1-gallery-remain-grid div span{
  width:26px;
  height:26px;
  border-radius:999px;
  background:#0ea5e9;
  display:grid;
  place-items:center;
}
.bs1-gallery-remain-grid div.solved{
  opacity:.45;
  filter:grayscale(1);
}
.bs1-gallery-remain-grid div.solved:after{
  background:rgba(15,23,42,.72);
}
@media(max-width:420px){
  .bs1-gallery-photo,
  .bs1-gallery-photo img{min-height:220px}
}


/* V2.5 separated main-round progress and card progress */
.bs1-main-progress{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  width:100%;
  margin:18px 0 26px;
}
.bs1-main-progress span{
  height:14px;
  border-radius:999px;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.13);
  color:transparent;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.bs1-main-progress span.done{
  background:rgba(34,197,94,.38);
  border-color:rgba(34,197,94,.45);
}
.bs1-main-progress span.current{
  background:#fff;
  border-color:#fff;
  box-shadow:0 0 22px rgba(255,255,255,.4);
}
.bs1-card-progress{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:1fr;
  gap:7px;
  width:100%;
  margin:8px 0 24px;
}
.bs1-card-progress span{
  min-width:0;
  height:34px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  color:#cbd5e1;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:13px;
}
.bs1-card-progress span.done{
  background:rgba(34,197,94,.34);
  border-color:rgba(34,197,94,.45);
  color:#dcfce7;
}
.bs1-card-progress span.current{
  background:#fff;
  color:#0f172a;
  box-shadow:0 0 18px rgba(255,255,255,.35);
}
.bs1-card-progress-quick{
  grid-auto-flow:unset;
  grid-template-columns:repeat(15,1fr);
  gap:4px;
}
.bs1-card-progress-quick span{
  height:26px;
  font-size:11px;
}


/* V2.5.1 topbar with back, menu, fullscreen */
#breinstrijd-v1 .bs1-fixed-topbar{
  display:grid!important;
  grid-template-columns:58px 58px 58px!important;
  justify-content:space-between!important;
  gap:10px!important;
}
#breinstrijd-v1 .bs1-back-btn{
  font-size:42px!important;
  padding-bottom:6px!important;
}


/* V2.5.2 submit button label safety */
.bs1-submit{
  font-size:clamp(18px,4vw,24px)!important;
}

/* V2.5.3 submit/pass restored */
.bs1-submit{font-weight:1000!important;}


/* V2.6 Ingelijst */
.bs1-framed-question{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#0f172a;
  border-radius:20px;
  padding:14px;
  font-size:clamp(18px,4vw,26px);
  font-weight:1000;
  margin:12px 0;
}
.bs1-framed-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  color:#475569;
  font-weight:900;
  margin:10px 0;
  font-size:14px;
}
.bs1-framed-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin:12px 0;
}
.bs1-framed-list div{
  border-radius:14px;
  padding:10px 12px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  color:#64748b;
  font-weight:900;
}
.bs1-framed-list div.hidden{
  filter:blur(4px);
  user-select:none;
}
.bs1-framed-list div.solved{
  background:#dcfce7;
  border-color:#bbf7d0;
  color:#166534;
  filter:none;
}
@media(max-width:420px){
  .bs1-framed-list{grid-template-columns:1fr}
}
#bs-framed-result{
  background:#0f172a;
  color:#dbeafe;
  border-radius:14px;
  padding:14px;
  min-height:54px;
  white-space:pre-wrap;
}
#bs-fr-categories{min-height:170px}


/* V2.7 Finale */
.bs1-finale-versus{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:14px 0;
}
.bs1-finale-versus div{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:14px;
  color:#0f172a;
  display:grid;
  gap:4px;
}
.bs1-finale-versus small{
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  font-size:11px;
}
.bs1-finale-versus strong{
  font-size:18px;
}
.bs1-finale-versus span{
  font-size:28px;
  font-weight:1000;
  color:#0ea5e9;
}
#bs-finale-result{
  background:#0f172a;
  color:#dbeafe;
  border-radius:14px;
  padding:14px;
  min-height:54px;
  white-space:pre-wrap;
}
#bs-fi-categories{min-height:170px}


/* V2.7.8 active player clarity */
.bs1-score-list .active{
  border-color:#7dd3fc!important;
  background:linear-gradient(135deg,rgba(14,165,233,.28),rgba(59,130,246,.18))!important;
  box-shadow:0 0 0 2px rgba(125,211,252,.25), 0 0 26px rgba(14,165,233,.22)!important;
}
.bs1-score-list .finalist{
  outline:1px solid rgba(255,255,255,.18);
}
.bs1-finale-versus div.active{
  background:linear-gradient(135deg,#e0f2fe,#dbeafe)!important;
  border-color:#38bdf8!important;
}


/* V2.7.16 finale clarity */
.bs1-finale-versus div.active{
  background:linear-gradient(135deg,#dbeafe,#e0f2fe)!important;
  border-color:#38bdf8!important;
  box-shadow:0 0 0 3px rgba(56,189,248,.28), 0 16px 34px rgba(14,165,233,.20);
}
.bs1-finale-versus div.active small{
  color:#0369a1!important;
}
.bs1-active-countdown{
  color:#0284c7!important;
  font-weight:1000!important;
}


/* V2.7.17 fundamentals */
.bs1-finale-versus div.active{
  background:linear-gradient(135deg,#dbeafe,#e0f2fe)!important;
  border-color:#38bdf8!important;
  box-shadow:0 0 0 3px rgba(56,189,248,.28), 0 16px 34px rgba(14,165,233,.20);
}
.bs1-active-countdown{
  color:#0284c7!important;
  font-weight:1000!important;
}


/* V2.7.23 voice active */
.bs1-mic.is-listening,
.bs1-listening .bs1-mic{
  background:#ef4444!important;
  color:#fff!important;
  box-shadow:0 0 0 4px rgba(239,68,68,.22), 0 0 28px rgba(239,68,68,.45)!important;
  animation:bs1MicPulse 1.1s ease-in-out infinite;
}
@keyframes bs1MicPulse{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.06);}
}


/* V2.7.25 voice active */
.bs1-mic.is-listening,
.bs1-listening .bs1-mic{
  background:#ef4444!important;
  color:#fff!important;
  box-shadow:0 0 0 4px rgba(239,68,68,.22), 0 0 28px rgba(239,68,68,.45)!important;
  animation:bs1MicPulse 1.1s ease-in-out infinite;
}
@keyframes bs1MicPulse{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.06);}
}
