/* ============================================================
 * boterkaaseieren.nl — Game UI Styles
 * Mobile-first, themable, a11y-aware.
 * ============================================================ */

.bke {
    --bke-bg: #fffaf2;
    --bke-card: #ffffff;
    --bke-line: #173b57;
    --bke-x: #ef4444;
    --bke-o: #173b57;
    --bke-accent: #facc15;
    --bke-text: #111827;
    --bke-muted: #4b5563;
    --bke-radius: clamp(16px, 1.5vw + 14px, 22px);
    --bke-shadow:
        0 1px 2px rgba(23, 59, 87, 0.06),
        0 8px 24px -8px rgba(23, 59, 87, 0.18),
        0 28px 60px -28px rgba(23, 59, 87, 0.28);
    --bke-cell-bg: #fff;
    --bke-cell-border: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: var(--bke-text);
    background:
        radial-gradient(120% 80% at 50% 0%, #ffffff 0%, var(--bke-bg) 65%);
    border-radius: var(--bke-radius);
    padding: clamp(0.85rem, 2.2cqw, 1.75rem);
    box-shadow: var(--bke-shadow);
    max-width: 760px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    /* Container queries — cell-fontsize schaalt met game, niet met viewport */
    container-type: inline-size;
    container-name: bke-game;
}
.bke::before {
    /* subtiele gradient-border via mask-trick — geeft 2026 "premium" feel */
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(250, 204, 21, .45), rgba(23, 59, 87, .15) 40%, rgba(249, 115, 22, .35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.bke *, .bke *::before, .bke *::after { box-sizing: border-box; }

/* ----- Bar ----- */
.bke__bar {
    display: flex; justify-content: space-between; align-items: center;
    gap: clamp(.5rem, 1.5cqw, 1rem); margin-bottom: 1rem; font-weight: 600;
    flex-wrap: wrap;
}
.bke__turn {
    display: flex; align-items: center; gap: .5rem;
    flex: 1 1 auto; min-width: 0;
}
.bke__turn-text {
    /* Voorkom afkapping na 1 woord op smalle widths */
    text-wrap: pretty;
    line-height: 1.25;
    font-size: clamp(.95rem, 2.2cqw, 1.1rem);
}
.bke__turn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: clamp(1.6rem, 4cqw, 2rem); height: clamp(1.6rem, 4cqw, 2rem);
    border-radius: 50%; flex: 0 0 auto;
    font-size: clamp(1rem, 2.5cqw, 1.25rem); line-height: 1; font-weight: 700;
    background: var(--bke-card); border: 2px solid var(--bke-cell-border);
}
.bke__turn-icon.is-x { color: var(--bke-x); border-color: var(--bke-x); }
.bke__turn-icon.is-o { color: var(--bke-o); border-color: var(--bke-o); }
.bke__score {
    font-variant-numeric: tabular-nums; color: var(--bke-muted);
    flex: 0 0 auto;
}
.bke__score-you, .bke__score-them { font-size: 1.2rem; color: var(--bke-text); }
.bke__score-sep { margin: 0 .35rem; }

/* ----- Board ----- */
.bke__board {
    display: grid;
    grid-template-columns: repeat(var(--bke-size, 3), 1fr);
    gap: clamp(.35rem, 1.2vw, .55rem);
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bke-line) 0%, #0f2a3f 100%);
    padding: clamp(.4rem, 1.4vw, .65rem);
    border-radius: clamp(14px, 1.2vw + 12px, 18px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 12px 32px -12px rgba(23, 59, 87, .35);
}

.bke__cell {
    background: var(--bke-cell-bg);
    border: 0;
    border-radius: clamp(10px, 2cqw, 16px);
    aspect-ratio: 1;
    /* Cell-fontsize schaalt met game-container (container queries) ipv viewport */
    font-size: clamp(1.8rem, 14cqw, 4.5rem);
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .14s cubic-bezier(.34,1.56,.64,1), background-color .15s ease, box-shadow .15s ease;
    min-height: 44px; min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        0 1px 0 rgba(23, 59, 87, .04),
        0 4px 10px -6px rgba(23, 59, 87, .14);
}
.bke__cell:hover:not(:disabled) {
    background: #fefefe;
    transform: translateY(-2px);
    box-shadow:
        0 2px 0 rgba(23, 59, 87, .06),
        0 10px 22px -10px rgba(23, 59, 87, .28);
}
.bke__cell:active:not(:disabled) { transform: translateY(0); }
.bke__cell:focus-visible { outline: 3px solid var(--bke-accent); outline-offset: 2px; }
.bke__cell:disabled { cursor: default; }
.bke__cell.is-x { color: var(--bke-x); }
.bke__cell.is-o { color: var(--bke-o); }
.bke__cell.is-win {
    background: linear-gradient(135deg, var(--bke-accent) 0%, #fde047 100%);
    color: var(--bke-text);
    animation: bke-win-pulse .65s ease;
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.6),
        0 8px 20px -6px rgba(250, 204, 21, .65);
}

@keyframes bke-win-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ----- Controls ----- */
.bke__controls {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-top: 1rem; align-items: center;
}
.bke__btn {
    appearance: none;
    border: 1px solid var(--bke-cell-border);
    background: var(--bke-card);
    color: var(--bke-text);
    padding: .7rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
    min-height: 44px;
    box-shadow: 0 1px 2px rgba(23,59,87,.06);
}
.bke__btn:hover { border-color: var(--bke-line); transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(23,59,87,.22); }
.bke__btn:active { transform: translateY(0); }
.bke__btn:focus-visible { outline: 3px solid var(--bke-accent); outline-offset: 2px; }
.bke__btn--primary {
    background: linear-gradient(180deg, #1f4f74 0%, var(--bke-line) 60%, #0f2a3f 100%);
    color: #fff; border-color: transparent;
    box-shadow:
        0 1px 0 rgba(255,255,255,.18) inset,
        0 8px 18px -8px rgba(23,59,87,.55);
}
.bke__btn--primary:hover { filter: brightness(1.06); }
.bke__btn--ghost { background: transparent; border-style: dashed; }
.bke__select {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .9rem; color: var(--bke-muted);
}
.bke__select select {
    appearance: none;
    background: var(--bke-card);
    border: 1px solid var(--bke-cell-border);
    border-radius: 999px;
    padding: .55rem 2rem .55rem 1rem;
    font-weight: 600; color: var(--bke-text); cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23173b57'/></svg>");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    min-height: 44px;
}

/* ----- Banner ----- */
.bke__banner {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--bke-radius);
    background: var(--bke-card);
    border: 2px solid var(--bke-accent);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .75rem; font-size: 1.05rem;
}
.bke__banner.is-win { border-color: #22c55e; background: #ecfdf5; }
.bke__banner.is-loss { border-color: var(--bke-x); background: #fef2f2; }
.bke__banner.is-draw { border-color: var(--bke-muted); background: #f3f4f6; }
.bke__banner-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bke__analysis-list { margin: .5rem 0; padding-left: 1.25rem; }
.bke__analysis-list li { margin-bottom: .35rem; }

/* ----- Themes ----- */
.bke--theme-chalk {
    --bke-bg: #1f3d2b;
    --bke-card: #2a4d36;
    --bke-line: #f8f9fa;
    --bke-x: #fbbf24;
    --bke-o: #f8f9fa;
    --bke-text: #f9fafb;
    --bke-muted: #cbd5e1;
    --bke-cell-bg: #2a4d36;
    --bke-cell-border: #4b6c56;
    --bke-accent: #fbbf24;
}
.bke--theme-chalk .bke__cell:hover:not(:disabled) { background: #355c42; }

.bke--theme-neon {
    --bke-bg: #0a0a1f;
    --bke-card: #0f0f2e;
    --bke-line: #ff00ff;
    --bke-x: #00f7ff;
    --bke-o: #ff00ff;
    --bke-text: #fff;
    --bke-muted: #b4b4d8;
    --bke-cell-bg: #0f0f2e;
    --bke-cell-border: #2a2a5a;
    --bke-accent: #ffe600;
}
.bke--theme-neon .bke__cell { box-shadow: 0 0 12px rgba(0, 247, 255, .15); }

.bke--theme-winter {
    --bke-bg: #eff6ff;
    --bke-card: #ffffff;
    --bke-line: #1e40af;
    --bke-x: #dc2626;
    --bke-o: #1e40af;
    --bke-accent: #fbbf24;
    --bke-cell-border: #c7d2fe;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    .bke__cell, .bke__btn { transition: none; }
    .bke__cell.is-win { animation: none; }
}

/* ----- Print: hide UI ----- */
@media print {
    .bke__bar, .bke__controls, .bke__banner { display: none !important; }
    .bke__board { background: #fff; border: 2px solid #000; }
    .bke__cell { border: 1px solid #000; background: #fff !important; }
}

/* ============================================================
 * Score side-blocks (alle modi)
 * ============================================================ */
.bke__score {
    display: flex; align-items: center; gap: clamp(.35rem, 1cqw, .65rem);
    font-variant-numeric: tabular-nums;
}
.bke__score-side {
    display: inline-flex; flex-direction: column; align-items: center;
    line-height: 1.05; min-width: clamp(2rem, 5cqw, 3rem);
}
.bke__score-side--1 .bke__score-you,
.bke__score-side--2 .bke__score-them {
    font-size: clamp(1.25rem, 3.5cqw, 1.65rem);
    font-weight: 800; color: var(--bke-text);
}
.bke__score-label {
    font-size: clamp(.6rem, 1.4cqw, .72rem);
    text-transform: uppercase; letter-spacing: .06em; color: var(--bke-muted);
    white-space: nowrap;
}
.bke__score-sep { color: var(--bke-muted); }
.bke__match {
    background: var(--bke-accent);
    color: var(--bke-text);
    padding: clamp(.22rem, .6cqw, .35rem) clamp(.55rem, 1.5cqw, .85rem);
    border-radius: 999px;
    font-size: clamp(.72rem, 1.7cqw, .85rem);
    font-weight: 700;
    margin-left: auto;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* ============================================================
 * Container queries — layout-stappen bij smalle game-containers
 * ============================================================ */
@container bke-game (max-width: 380px) {
    .bke__bar {
        flex-direction: column;
        align-items: stretch;
        gap: .5rem;
    }
    .bke__bar > * { width: 100%; }
    .bke__score { justify-content: center; }
    .bke__match { margin-left: 0; text-align: center; }
    .bke__turn { justify-content: center; }
}

/* ============================================================
 * Game-host wrapper — voor gebruik in pagina-content
 * Vervangt inline max-width op .bke-wrap rondom shortcodes.
 * ============================================================ */
.bke-host-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 clamp(.5rem, 2vw, 1rem);
}

/* ============================================================
 * Layout: tablet — side-panel in landscape, mirror-toggle
 * ============================================================ */
.bke--layout-tablet { max-width: 1100px; }
.bke--layout-tablet .bke__cell { font-size: clamp(2.5rem, 6vw, 4rem); }

@media (min-width: 820px) and (orientation: landscape) {
    .bke--layout-tablet {
        display: grid;
        grid-template-columns: 1fr minmax(0, 60vh) 1fr;
        grid-template-areas: "left board right";
        gap: 1.25rem;
        padding: 1.5rem;
        align-items: center;
    }
    .bke--layout-tablet .bke__bar {
        grid-area: left;
        flex-direction: column; align-items: flex-start;
        margin: 0; gap: 1.5rem;
    }
    .bke--layout-tablet .bke__board { grid-area: board; max-height: 70vh; }
    .bke--layout-tablet .bke__controls {
        grid-area: right;
        flex-direction: column; align-items: stretch;
        margin: 0;
    }
    .bke--layout-tablet .bke__banner { grid-column: 1 / -1; }
}

/* Mirror-modus: bovenste helft 180° voor speler 2 (platte tafel) */
.bke--mirror .bke__bar { transform: rotate(180deg); transform-origin: center; }

/* ============================================================
 * Mode: classroom — team-labels, grotere fonts, geen muted accents
 * ============================================================ */
.bke--mode-classroom {
    --bke-x: #dc2626;      /* Rood */
    --bke-o: #2563eb;      /* Blauw */
    --bke-accent: #fbbf24;
}
.bke--mode-classroom .bke__score-side--1 .bke__score-label { color: var(--bke-x); }
.bke--mode-classroom .bke__score-side--2 .bke__score-label { color: var(--bke-o); }
.bke--mode-classroom .bke__score-side--1 .bke__score-you,
.bke--mode-classroom .bke__score-side--2 .bke__score-them {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.bke--mode-classroom .bke__cell {
    font-size: clamp(2.5rem, 8vw, 6rem);
    border-radius: clamp(12px, 1.5vw, 18px);
}
.bke--mode-classroom .bke__board {
    background: linear-gradient(135deg, #173b57 0%, #2563eb 100%);
    padding: clamp(.5rem, 1.5vw, 1rem);
    gap: clamp(.4rem, 1.2vw, .7rem);
}

/* ============================================================
 * Fullscreen layout — digibord modus, geen WP chrome
 * ============================================================ */
body.bke-fullscreen-page,
html.bke-fullscreen-page {
    height: 100%; overflow: hidden; background: #0a1929;
}
.bke--layout-fullscreen {
    max-width: none;
    border-radius: 0;
    background: linear-gradient(135deg, #fffaf2 0%, #fff5dc 100%);
    padding: clamp(1rem, 2vh, 2rem);
    box-shadow: none;
    width: 100vw;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(.75rem, 2vh, 1.5rem);
}
.bke--layout-fullscreen::before { display: none; }
.bke--layout-fullscreen .bke__bar {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.75rem);
}
.bke--layout-fullscreen .bke__turn-icon {
    width: clamp(2rem, 3.5vh, 3rem);
    height: clamp(2rem, 3.5vh, 3rem);
    font-size: clamp(1.2rem, 2vh, 1.8rem);
}
.bke--layout-fullscreen .bke__board {
    place-self: center;
    width: min(85vw, 85vh);
    height: min(85vw, 85vh);
    max-width: 1400px; max-height: 1400px;
}
.bke--layout-fullscreen .bke__cell {
    font-size: clamp(4rem, 14vh, 14rem);
    border-radius: clamp(14px, 2vh, 22px);
}
.bke--layout-fullscreen .bke__controls {
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(.5rem, 1.5vw, 1rem);
}
.bke--layout-fullscreen .bke__btn {
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    padding: clamp(.8rem, 1.6vh, 1.25rem) clamp(1.25rem, 2.5vw, 2rem);
    min-height: 56px;
}
.bke--layout-fullscreen .bke__match {
    font-size: clamp(.95rem, 1.4vw, 1.25rem);
    padding: .45rem 1rem;
    /* exit-knop staat rechtsboven; reserveer ruimte zodat hij niet overlapt */
    margin-right: clamp(5.5rem, 12vw, 8rem);
}
@media (max-width: 720px) {
    .bke--layout-fullscreen .bke__bar { flex-wrap: wrap; }
    .bke--layout-fullscreen .bke__match {
        margin-right: 0;
        margin-left: 0;
        flex-basis: 100%;
        text-align: center;
    }
}
.bke--layout-fullscreen .bke__banner {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    padding: clamp(1rem, 2vh, 1.75rem) clamp(1.25rem, 2vw, 2rem);
    border-radius: clamp(14px, 1.5vw, 22px);
}
.bke--layout-fullscreen .bke__banner strong {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* ============================================================
 *  Math Game UI
 * ============================================================ */
.bke--math .bke__match { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; }
.bke--math-magic15 .bke__match { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.bke--math-claim_steal .bke__match { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }

/* Magic15 cellen tonen het cijfer als hoofdcontent — niet X/O letters */
.bke--math-magic15 .bke__cell {
    font-size: clamp(1.6rem, 7vw, 2.6rem);
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
    color: var(--bke-primary);
}
.bke--math-magic15 .bke__cell.is-x { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); color: #fff; }
.bke--math-magic15 .bke__cell.is-o { background: linear-gradient(135deg, #173b57 0%, #0f2a3f 100%); color: #fff; }
.bke--math-magic15 .bke__cell.is-win { background: linear-gradient(135deg, #facc15, #fde047); color: #111; }

/* Pending cell — wacht op antwoord */
.bke__math-cell.is-pending {
    background: linear-gradient(135deg, #fef3c7, #facc15);
    box-shadow:
        inset 0 0 0 3px var(--bke-accent),
        0 8px 20px -8px rgba(250, 204, 21, .55);
    animation: bke-pending-pulse 1.2s ease-in-out infinite;
}
@keyframes bke-pending-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
    .bke__math-cell.is-pending { animation: none; }
}

/* Math prompt panel */
.bke__math-prompt {
    margin-top: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(180deg, #fffdf3 0%, #fff8e7 100%);
    border-radius: clamp(14px, 1.5vw, 18px);
    border: 2px solid var(--bke-accent);
    box-shadow: 0 8px 24px -8px rgba(250, 204, 21, .35);
}
.bke__math-question {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--bke-text);
    margin-bottom: .85rem;
    text-align: center;
}
.bke__math-question strong {
    font-size: 1.25em;
    color: var(--bke-primary);
    font-variant-numeric: tabular-nums;
    background: #fff;
    padding: .15rem .55rem;
    border-radius: 8px;
    border: 1px solid var(--bke-border);
    margin: 0 .2rem;
}
.bke__math-form {
    display: flex; gap: .5rem; justify-content: center;
    flex-wrap: wrap;
    margin-bottom: .85rem;
}
.bke__math-input {
    appearance: none;
    -moz-appearance: textfield;
    border: 2px solid var(--bke-border);
    border-radius: 12px;
    padding: .85rem 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    width: clamp(120px, 30vw, 180px);
    text-align: center;
    background: #fff;
    color: var(--bke-text);
    font-variant-numeric: tabular-nums;
    transition: border-color .15s ease, box-shadow .15s ease;
    min-height: 56px;
}
.bke__math-input::-webkit-outer-spin-button,
.bke__math-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bke__math-input:focus {
    border-color: var(--bke-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 59, 87, .15);
}
.bke__math-form .bke__btn--primary {
    min-width: 120px;
    font-size: 1.05rem;
}

/* Difficulty meter (dots) */
.bke__math-meter {
    display: flex; gap: .35rem; justify-content: center;
    margin-top: .5rem;
}
.bke__math-dot {
    width: 10px; height: 10px; border-radius: 999px;
    background: #e5e7eb;
    transition: background-color .2s ease, transform .2s ease;
}
.bke__math-dot.is-active {
    background: var(--bke-accent-warm, var(--bke-x));
    transform: scale(1.1);
}

/* Feedback na antwoord */
.bke__math-feedback {
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    animation: bke-feedback-in .25s ease-out;
}
.bke__math-feedback.is-correct { background: #d1fae5; color: #065f46; border: 2px solid #22c55e; }
.bke__math-feedback.is-wrong { background: #fee2e2; color: #991b1b; border: 2px solid #ef4444; }
@keyframes bke-feedback-in {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Mobile: form stacked */
@media (max-width: 480px) {
    .bke__math-form { flex-direction: column; align-items: stretch; }
    .bke__math-input { width: 100%; }
    .bke__math-form .bke__btn--primary { width: 100%; }
}

/* ============================================================
 *  Daily Challenge UI
 * ============================================================ */
.bke--daily { padding-top: 1.5rem; }
.bke-daily__head { text-align: center; margin-bottom: 1rem; }
.bke-daily__date {
    font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--bke-muted); margin-bottom: .25rem;
}
.bke-daily__title {
    margin: 0 0 .35rem; font-size: clamp(1.4rem, 4cqw, 1.85rem);
    color: var(--bke-primary);
}
.bke-daily__goal {
    margin: 0 auto; max-width: 50ch;
    color: var(--bke-text);
    font-size: clamp(.95rem, 2.4cqw, 1.05rem);
}

.bke-daily__streak {
    display: flex; justify-content: center; gap: 1.5rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: .9rem;
    color: var(--bke-text);
}
.bke-daily__streak strong {
    font-size: 1.4rem;
    color: var(--bke-primary);
    font-variant-numeric: tabular-nums;
    margin-right: .25rem;
}
.bke-daily__played {
    width: 100%; text-align: center;
    color: var(--bke-muted); font-size: .85rem; font-style: italic;
}
.bke-daily__sub {
    margin-top: .5rem;
    font-size: .9rem;
    color: var(--bke-muted);
}

/* Voorgegeven puzzle-positie krijgt subtiele indicator */
.bke--daily .bke__cell.is-preset {
    background: linear-gradient(180deg, #fffaf2 0%, #fef3c7 100%);
    box-shadow:
        inset 0 0 0 2px rgba(250, 204, 21, .3),
        0 1px 0 rgba(23, 59, 87, .04);
}
.bke--daily .bke__cell.is-preset.is-x { color: #b91c1c; }
.bke--daily .bke__cell.is-preset.is-o { color: #173b57; }

/* Exit-knop voor leerkracht (rechtsboven, klein maar bereikbaar) */
.bke-fullscreen-exit {
    position: fixed; top: 1rem; right: 1rem; z-index: 100;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(23,59,87,.2);
    color: var(--bke-text);
    padding: .55rem .9rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    min-height: 44px;
    display: inline-flex; align-items: center; gap: .35rem;
}
.bke-fullscreen-exit:hover { background: #fff; }
