.bge-game{background:#211d39;color:#f7f5ff;border:1px solid #ffffff26;border-radius:22px;padding:clamp(18px,4vw,36px);margin:24px auto;max-width:800px;box-sizing:border-box;line-height:1.6}.bge-game h2,.bge-game h3,.bge-game strong{color:#f7f5ff}.bge-game h2{font-size:1.8rem;margin:0 0 16px}.bge-game h3{font-size:1.35rem;margin:12px 0}.bge-kicker{color:#d9fa76;text-transform:uppercase;font-size:.75rem;letter-spacing:.1em;font-weight:bold}.bge-options,.bge-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.bge-button{background:#d9fa76;color:#15132e;border:1px solid transparent;border-radius:10px;padding:12px 16px;font-weight:700;cursor:pointer;font:inherit;min-height:44px}.bge-options .bge-button{background:#393251;color:white;border-color:#ffffff33}.bge-button:focus-visible{outline:3px solid #fff;outline-offset:3px}.bge-options .bge-correct{background:#1c694b;border-color:#a8e6bb}.bge-options .bge-wrong{background:#833e47;border-color:#ffb7bc}.bge-button:disabled{cursor:default}.bge-feedback{font-weight:bold;color:#d9fa76}.bge-stats>div{padding:12px;background:#332c4a;border-radius:10px;display:flex;flex-direction:column}.bge-stats strong{font-size:1.5rem}.bge-stats span{font-size:.85rem;color:#ddd7ec}@media(max-width:480px){.bge-options{grid-template-columns:1fr}}
.nn-controls{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.nn-controls .bge-button{background:#393251;color:#fff;border:1px solid #ffffff33}.nn-controls .bge-button[aria-pressed=true]{background:#d9fa76;color:#15132e;border-color:#d9fa76}.nn-controls button:disabled{opacity:.45}.nn-top{display:flex;justify-content:space-between;align-items:center}.nn-target{font-size:clamp(2rem,6vw,3.5rem);font-weight:900;color:#d9fa76;text-align:center;padding:16px;background:#332c4a;border-radius:16px;margin:16px 0}
.cc-board{display:grid;gap:8px;margin:16px 0}.cc-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:8px;background:#292344;border-radius:10px}.cc-digits{display:flex;gap:6px;flex-wrap:wrap}.cc-digit{display:grid;place-items:center;min-width:36px;min-height:42px;padding:4px;background:#514568;border-radius:8px;color:#fff;font-weight:bold;font-size:1.2rem}.cc-clue{font-size:.85rem;color:#d9fa76}.cc-row .cc-clue{flex:1;min-width:125px}@media(max-width:480px){.cc-digit{min-width:30px;min-height:36px}.cc-row{gap:6px}}
.colour-word{display:grid;place-items:center;min-height:140px;background:#15132e;border:1px solid #ffffff26;border-radius:16px;font-size:clamp(2rem,8vw,4rem);font-weight:900;letter-spacing:.02em;margin:16px 0}.colour-clock{font-variant-numeric:tabular-nums;text-align:right;color:#d9fa76;font-weight:bold}.bge-game[data-bge-colour] .bge-options .bge-button{color:#fff;background:#393251}
.memory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:390px;margin:20px auto}.memory-grid[data-tiles="4"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:260px}.memory-grid .memory-tile{aspect-ratio:1;min-height:55px;background:#393251;color:#fff;border:2px solid #74688d;font-size:clamp(1.3rem,5vw,2rem);font-weight:900;transition:background .12s,border-color .12s}.memory-grid .memory-tile.memory-lit,.memory-grid .memory-tile.memory-hit{background:#d9fa76;color:#15132e;border-color:#fff}.memory-grid .memory-tile.memory-wrong{background:#833e47;border-color:#ffb7bc}.memory-status{text-align:center;font-weight:bold;color:#d9fa76;min-height:2em}@media(prefers-reduced-motion:reduce){.memory-grid .memory-tile{transition:none}}

/* Standalone action buttons: existing flex/grid groups already provide gaps. */
.bge-game .bge-button + .bge-button { margin-inline-start: 10px; }
.bge-game :is(.nn-controls,.bge-options,.memory-grid) > .bge-button + .bge-button { margin-inline-start: 0; }
/* Direct action buttons can wrap naturally without touching the next row. */
.bge-game :is([data-bge-body],[data-ninja-body],[data-code-body],[data-colour-body],[data-memory-body]) > .bge-button { margin-block-end: 10px; }
.fact-progress{display:flex;gap:5px;margin:14px 0}.fact-progress span{height:6px;flex:1;background:#514568;border-radius:9px}.fact-progress .fact-hit{background:#81e28c}.fact-progress .fact-miss{background:#ff7676}.fact-statement{background:#15132e;border:1px solid #ffffff26;border-radius:16px;padding:clamp(16px,4vw,30px);min-height:100px;display:flex;align-items:center}.fact-explanation{background:#332c4a;border-radius:12px;padding:12px 16px;margin:12px 0}.fact-explanation a{color:#d9fa76}.bge-game [data-fact-body]>.bge-button{margin-block-end:10px}

.bge-game [data-word-body]>.bge-button{margin-block-end:10px}
.bge-game .est-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:18px 0}.bge-game .est-form label{display:flex;flex-direction:column;gap:6px;flex:1 1 220px;font-weight:bold}.bge-game .est-form input{box-sizing:border-box;width:100%;min-width:0;background:#15132e;color:#f7f5ff;border:1px solid #74688d;border-radius:10px;padding:12px;font:inherit;min-height:44px}.bge-game .est-form input:focus-visible{outline:3px solid #d9fa76;outline-offset:2px}.bge-game .est-form button:disabled{opacity:.5}.bge-game [data-estimator-body]>.bge-button{margin-block-end:10px}.bge-game [data-estimator-body] progress{width:100%;height:14px;accent-color:#d9fa76}

.bge-hub-list{list-style:none;padding:0;margin:18px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bge-hub-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;background:#332c4a;border:1px solid #615977;border-radius:10px}.bge-hub-list a{color:#d9fa76;font-weight:bold}.bge-hub-list span{font-size:.85rem;white-space:nowrap}.bge-hub-list .is-complete{border-color:#81e28c}.bge-hub-list .is-complete span{color:#81e28c}.bge-hub progress{width:100%;height:16px;accent-color:#d9fa76}@media(max-width:680px){.bge-hub-list{grid-template-columns:1fr}}

.bge-next-games{margin-top:24px;padding-top:18px;border-top:1px solid #615977;display:flex;flex-wrap:wrap;gap:10px}.bge-next-games h3{width:100%;margin:0 0 6px}.bge-next-games a{color:#d9fa76!important;background:#332c4a;border:1px solid #615977;border-radius:10px;padding:10px 14px;text-decoration:none}.bge-next-games a:hover{border-color:#d9fa76}

.bge-weekly progress{width:100%;accent-color:#d9fa76}.bge-weekly-days{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.bge-weekly-days span{padding:8px 12px;border:1px solid #615977;border-radius:10px;background:#332c4a;color:#e7e3f3}.bge-weekly-days .is-complete{background:#22423e;color:#d9fa76;border-color:#9ce5af}.bge-weekly a.bge-button{display:inline-block;text-decoration:none}

.bge-achievements{margin-top:26px;border-top:1px solid #615977;padding-top:20px}.bge-badge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px}.bge-badge{padding:16px;background:#292344;border:1px solid #615977;border-radius:14px;display:flex;flex-direction:column;gap:8px;color:#f7f5ff}.bge-badge.is-earned{background:#22423e;border-color:#9ce5af}.bge-badge-symbol{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#393251;color:#c5c1d5;font-size:24px;font-weight:900}.bge-badge.is-earned .bge-badge-symbol{background:#d9fa76;color:#15132e}.bge-badge p{font-size:.9rem;color:#e7e3f3;margin:0 0 auto}.bge-badge-status{font-size:.85rem;color:#e7e3f3}.bge-badge.is-earned .bge-badge-status{color:#d9fa76}.bge-badge progress{width:100%;height:10px;accent-color:#d9fa76}


.bge-rank-panel{margin-top:22px;padding:18px;background:#292344;border:1px solid #615977;border-radius:16px}.bge-rank-panel h3{margin:6px 0 10px}.bge-rank-panel progress{width:100%;height:14px;accent-color:#d9fa76}.bge-progress-actions{margin-top:14px}.bge-toast{position:fixed;right:18px;bottom:18px;z-index:9999;max-width:min(360px,calc(100vw - 36px));background:#292344;border:1px solid #615977;border-left:5px solid #d9fa76;border-radius:14px;padding:14px 16px;box-shadow:0 16px 40px #0008;color:#f7f5ff;opacity:0;transform:translateY(12px);transition:opacity .25s ease,transform .25s ease}.bge-toast.is-visible{opacity:1;transform:translateY(0)}.bge-toast strong{display:block;margin-bottom:4px;color:#d9fa76}.bge-toast.is-rank{border-left-color:#a78bfa}.bge-toast.is-rank strong{color:#c7b7ff}@media(max-width:480px){.bge-toast{left:14px;right:14px;bottom:14px;max-width:none}}
.bge-game-statistics{margin-top:28px;padding-top:20px;border-top:1px solid #615977}.bge-game-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:14px;margin-top:18px}.bge-game-stat-card{background:#292344;border:1px solid #615977;border-radius:14px;padding:18px;min-width:0}.bge-game-stat-card h4{color:#f7f5ff;font-size:1.1rem;font-weight:bold;margin:0 0 8px}.bge-game-stat-card p{margin:4px 0}.bge-game-stat-card details{margin:12px 0;color:#e7e3f3}.bge-game-stat-card summary{cursor:pointer;color:#d9fa76}.bge-game-stat-card ul{padding-left:18px;font-size:.88rem;list-style:disc}.bge-game-stat-card a{color:#d9fa76;font-weight:bold}.bge-surprise{margin-top:12px}
