.esq-quiz {
    max-width: 800px;
    margin: 20px auto;
    padding: 24px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    background: #ffffff;
    border: 1.5px solid #D5ECFE;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(93, 163, 218, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Progress bar */
.esq-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #D5ECFE;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.esq-progress-fill {
    height: 100%;
    background: #8BA1D2;
    transition: width 0.4s ease;
}

/* Counter */
.esq-progress-counter {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 10px;
    font-size: 0.72em;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}
.esq-counter-correct  { color: #91BFB6; }
.esq-counter-wrong    { color: #c94040; }

/* Navigation bar with arrows and dots */
.esq-navigation-bar {
    display: none;
}

/* Volgende link */
.esq-volgende-btn {
    display: none;
    background: none;
    border: none;
    padding: 0;
    margin: 16px auto 0;
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 700;
    color: #8BA1D2;
    cursor: pointer;
}
.esq-volgende-btn:hover { color: #7189be; }
.esq-dots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
}
.esq-nav-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #D5ECFE;
    opacity: 0.35;
    cursor: pointer;
    font-size: 0;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s, opacity 0.2s;
    outline: none;
}
.esq-nav-dot:hover:not(.locked) { background: #b8cff0; transform: scale(1.25); }
.esq-nav-dot.locked           { cursor: default; }
.esq-nav-dot.active           { background: #8BA1D2; opacity: 1; outline: 2px solid #8BA1D2; outline-offset: 2px; }
.esq-nav-dot.answered         { background: #8BA1D2; opacity: 0.55; }
.esq-nav-dot.correct          { background: #91BFB6; opacity: 1; }
.esq-nav-dot.correct-second   { background: #f5a623; opacity: 1; }
.esq-nav-dot.wrong            { background: #e06060; opacity: 1; }
.esq-nav-dot.active.answered,
.esq-nav-dot.active.correct,
.esq-nav-dot.active.wrong     { outline: 2px solid #8BA1D2; outline-offset: 2px; }

/* Start screen */
.esq-start-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 1;
    text-align: center;
    padding: 20px 0;
}
.esq-quiz.esq-show-start .esq-start-screen { display: flex; }
.esq-quiz.esq-show-start { min-height: 600px; }
.esq-quiz.esq-show-results { min-height: 600px; }
.esq-quiz.esq-show-start .esq-step,
.esq-quiz.esq-show-start .esq-navigation-bar,
.esq-quiz.esq-show-start .esq-buttons,
.esq-quiz.esq-show-start .esq-results,
.esq-quiz.esq-show-start .esq-progress-bar,
.esq-quiz.esq-show-start .esq-progress-counter,
.esq-quiz.esq-show-start .esq-fullscreen-icon,
.esq-quiz.esq-show-start .esq-tts-icon { display: none !important; }

.esq-start-img { max-height: 160px; width: auto; margin-bottom: 20px; }

.esq-start-title {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    font-size: 2em !important;
    color: #8BA1D2 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}
.esq-start-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    color: #000000;
    line-height: 1.5;
    margin: 0 0 20px !important;
    max-width: 460px;
}
.esq-start-btn {
    padding: 11px 36px;
    font-size: 1.3em;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #ffffff;
    background: #8BA1D2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.esq-start-btn:hover  { background: #7189be; }
.esq-start-btn:active { transform: scale(0.97); }

.esq-confirm-answer {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 700;
    color: #8BA1D2;
    text-decoration: underline;
    cursor: pointer;
}
.esq-confirm-answer:hover { color: #7189be; }

/* Steps */
.esq-step { display: none; }
.esq-step.active { display: block; }

/* Question text — no background box */
.esq-question-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 22px;
    white-space: pre-line;
    padding-top: 39px;
    word-wrap: break-word;
}

.esq-question-text strong,
.esq-question-text b {
    font-weight: 800;
}
.esq-question-text hr {
    margin: 0;
    border: none;
    border-top: 1.5px solid #D5ECFE;
}

.esq-tts-icon {
    position: absolute;
    top: 29px;
    left: 24px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5' fill='%23000000' stroke='none'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.esq-tts-icon:hover { opacity: 1; }
.esq-tts-icon::before { content: none; }

.esq-fullscreen-icon {
    position: absolute;
    top: 29px;
    left: 24px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='9 21 3 21 3 15'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cline x1='3' y1='21' x2='10' y2='14'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 14px 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.esq-fullscreen-icon.esq-fullscreen-with-tts { left: 50px; }
.esq-fullscreen-icon:hover { opacity: 1; }
.esq-fullscreen-icon.is-fullscreen {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 14 10 14 10 20'/%3E%3Cpolyline points='20 10 14 10 14 4'/%3E%3Cline x1='10' y1='14' x2='3' y2='21'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3C/svg%3E");
}

/* Fullscreen overlay */
body.esq-is-fullscreen::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #f4f8fc;
    z-index: 9998;
}
.esq-fullscreen-layout {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    z-index: 9999;
    box-sizing: border-box;
}
.esq-fullscreen-group {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.esq-fullscreen-layout .esq-quiz {
    flex-shrink: 0;
    margin: 0 !important;
    width: 800px;
}
.esq-fullscreen-ad-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}
.esq-fullscreen-ad {
    width: 300px;
    background: #f4f8fd;
    border: 1px solid #dde8f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.esq-fullscreen-ad-600 { height: 600px; }
.esq-fullscreen-ad-250 { height: 250px; }
.esq-fullscreen-ad-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.62em;
    font-weight: 700;
    color: #b0c4d8;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 5px;
    left: 10px;
}
@media (max-height: 920px) {
    .esq-fullscreen-ad-250 { display: none; }
}
@media (max-width: 1160px) {
    .esq-fullscreen-ad-250 { display: none; }
}

/* Answers */
.esq-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.esq-answer-label {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f4f8fc;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #000000;
    line-height: 1.6;
    transition: border-color 0.2s, background 0.2s;
}
.esq-answer-label:not(.wrong-answer):hover { border-color: #8BA1D2; }
.esq-answers.cb-max-reached .esq-answer-label:not(.selected):hover { border-color: transparent; cursor: default; }
.esq-answer-label.wrong-answer   { pointer-events: none; }
.esq-answer-label input {
    margin-right: 12px;
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #767676;
    background: #ffffff;
    flex-shrink: 0;
}
.esq-answer-label.selected       { border-color: #8BA1D2; }
.esq-answer-label.correct-answer        { background: #e4f2f0; border-color: transparent; pointer-events: none; }
.esq-answer-label.cb-wrong              { background: #fce4e4; border-color: transparent; pointer-events: none; }
.esq-answer-label.cb-missed             { background: #e4f2f0; border-color: transparent; pointer-events: none; }
.esq-answer-label input[type="checkbox"]:checked { background: radial-gradient(circle, #8BA1D2 36%, white 44%); border-color: #8BA1D2; }
.esq-answer-label.correct-second-answer { background: #e4f2f0; position: relative; }
.esq-answer-label.correct-second-answer input { opacity: 0; }
.esq-answer-label.correct-second-answer::before {
    content: '2';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #91BFB6;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}
.esq-answer-label.wrong-answer          { background: #fce4e4; border-color: transparent; }
.esq-answer-label.wrong-first,
.esq-answer-label.wrong-second   { background: #fce4e4; border-color: transparent; position: relative; }
.esq-answer-label.wrong-first input,
.esq-answer-label.wrong-second input { opacity: 0; }
.esq-answer-label.wrong-first::before,
.esq-answer-label.wrong-second::before {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #c94040;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}
.esq-answer-label.wrong-first::before  { content: '1'; }
.esq-answer-label.wrong-second::before { content: '2'; }

/* Number / Short Text input */
.esq-number-input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    font-size: 1em !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 600 !important;
    color: #000000 !important;
    background: #f4f8fc !important;
    border: 1.5px solid transparent !important;
    border-radius: 8px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s;
}
.esq-number-input:focus {
    border-color: #8BA1D2 !important;
    box-shadow: none !important;
    background: #f4f8fc !important;
}
.esq-quiz input[type="radio"]:focus,
.esq-quiz input[type="checkbox"]:focus { outline: none; }
.esq-number-wrap {
    display: flex;
    align-items: center;
    background: #f4f8fc !important;
    border: 1.5px solid transparent;
    border-radius: 8px !important;
    padding: 10px 14px;
    transition: border-color 0.2s;
    box-shadow: none !important;
}
.esq-number-wrap:focus-within {
    border-color: #8BA1D2;
}
.esq-number-wrap.is-correct,
.esq-number-wrap.is-correct:focus-within { background: #e4f2f0 !important; border-color: transparent !important; }
.esq-number-wrap.is-wrong,
.esq-number-wrap.is-wrong:focus-within   { background: #fce4e4 !important; border-color: transparent !important; }
.esq-number-wrap.is-wrong-first,
.esq-number-wrap.is-wrong-first:focus-within   { background: #fce4e4 !important; border-color: transparent !important; }
.esq-number-wrap.is-correct-second,
.esq-number-wrap.is-correct-second:focus-within { background: #e4f2f0 !important; border-color: transparent !important; }
.esq-number-wrap.is-wrong-first::before,
.esq-number-wrap.is-correct-second::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    margin-right: 8px;
}
.esq-number-wrap.is-wrong-first::before    { content: '1'; background: #c94040; }
.esq-number-wrap.is-correct-second::before { content: '2'; background: #91BFB6; }
.esq-number-wrap .esq-number-input {
    flex: 1 !important;
    width: auto !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    min-width: 0;
    line-height: 1.6 !important;
}
.esq-number-unit {
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

.esq-number-input[type="number"]::-webkit-inner-spin-button,
.esq-number-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.esq-number-input[type="number"] {
    -moz-appearance: textfield;
}

/* Arrow buttons (prev / next) */
.esq-prev, .esq-next {
    background: transparent;
    border: none;
    color: #8BA1D2;
    font-size: 1.3em;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s;
    flex-shrink: 0;
    outline: none;
}
.esq-prev:hover, .esq-next:hover { transform: scale(1.2); }
.esq-prev:active, .esq-next:active { transform: scale(1.0); }
.esq-prev.disabled, .esq-next.disabled { opacity: 0.25; pointer-events: none; }

/* Finish button */
.esq-buttons {
    display: none;
}
.esq-finish {
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    background: #8BA1D2;
    color: #fff;
    transition: background 0.2s, transform 0.1s;
}
.esq-finish:hover               { background: #7189be; }
.esq-finish:active              { transform: scale(0.97); }
.esq-exit                       { background: #D5ECFE; color: #000; margin-left: auto; }
.esq-exit:hover                 { background: #bbd9f5; }

/* Results */
.esq-results {
    text-align: center;
    padding: 36px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}
.esq-results-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.esq-result-icon {
    font-size: 3.5em;
    line-height: 1;
    margin-bottom: 20px;
}
.esq-result-icon.esq-icon-swing {
    display: inline-block;
    transform-origin: top center;
    animation: esqSwing 2.5s ease-in-out infinite;
}
@keyframes esqSwing {
    0%, 100% { transform: rotate(0deg); }
    20%       { transform: rotate(4deg); }
    60%       { transform: rotate(-4deg); }
    80%       { transform: rotate(2deg); }
}
.esq-result-title {
    font-size: 1.5em;
    font-weight: 800;
    color: #8BA1D2;
    margin-bottom: 14px;
}
.esq-result-sub {
    font-size: 1em;
    color: #000000;
    margin-bottom: 16px;
}
.esq-results-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.esq-games-btn {
    display: inline-block;
    padding: 0 28px;
    height: 48px;
    line-height: 48px;
    font-size: 1.1em;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #ffffff;
    background: #8BA1D2;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s, opacity 0.4s;
}
.esq-games-btn:hover  { background: #7a8fc0; color: #ffffff; }
.esq-games-btn:active { transform: scale(0.97); }
.esq-balloon-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3em;
    height: 1.3em;
    padding: 0 0.25em;
    background: #ffffff;
    color: #8BA1D2;
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9em;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: -0.05em;
    margin: 0 3px;
}
@keyframes esqBadgeShake {
    0%   { transform: scale(1) rotate(0deg); }
    20%  { transform: scale(1.25) rotate(-8deg); }
    40%  { transform: scale(1.25) rotate(8deg); }
    60%  { transform: scale(1.15) rotate(-4deg); }
    80%  { transform: scale(1.05) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.esq-balloon-count.esq-shake {
    animation: esqBadgeShake 0.35s ease-out;
}
.esq-tasks-link {
    font-size: 0.9em;
    font-weight: 600;
    color: #8BA1D2;
    text-decoration: underline;
    cursor: pointer;
}

/* Matching */
.esq-matching-desktop { display: none; }
.esq-matching-mobile  { display: block; }

.esq-matching-cols {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.esq-matching-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: visible;
}
.esq-matching-left,
.esq-matching-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.esq-matching-right { align-items: flex-end; }
.esq-matching-choice,
.esq-matching-option {
    padding: 10px 14px;
    background: #f4f8fc;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}
.esq-matching-choice:hover,
.esq-matching-option:hover { border-color: #8BA1D2; }
.esq-matching-choice.esq-m-selected { border-color: #8BA1D2; background: #eef1f8; }
.esq-matching-choice.esq-m-connected,
.esq-matching-option.esq-m-connected { border-color: #8BA1D2; background: #eef1f8; }
.esq-matching-choice.esq-m-correct,
.esq-matching-option.esq-m-correct { border-color: #7bdcb5; background: #e4f2f0; }
.esq-matching-choice.esq-m-wrong,
.esq-matching-option.esq-m-wrong { border-color: #fe4a49; background: #fce4e4; }
.esq-matching-choice.esq-m-locked,
.esq-matching-option.esq-m-locked { pointer-events: none; }

.esq-matching-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.esq-matching-row:last-child { margin-bottom: 0; }
.esq-matching-choice-label {
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 700;
    color: #000000;
}
.esq-custom-select {
    position: relative;
    width: 100%;
}
.esq-custom-select-trigger {
    padding: 10px 36px 10px 14px;
    background: #f4f8fc;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    position: relative;
}
.esq-custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #555555;
    transition: transform 0.2s;
}
.esq-custom-select.open .esq-custom-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}
.esq-custom-select-trigger:hover,
.esq-custom-select.open .esq-custom-select-trigger { background: #eef1f8; }
.esq-custom-select.has-value .esq-custom-select-trigger { background: #eef1f8; }
.esq-custom-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #ffffff;
    border: 1.5px solid #8BA1D2;
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(93, 163, 218, 0.15);
}
.esq-custom-select.open .esq-custom-select-options { display: block; }
.esq-custom-select-option {
    padding: 10px 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: background 0.15s;
}
.esq-custom-select-option:hover { background: #eef1f8; }
.esq-custom-select-option.is-selected { background: #eef1f8; color: #000000; }
.esq-custom-select.is-correct .esq-custom-select-trigger { background: #e4f2f0; }
.esq-custom-select.is-wrong   .esq-custom-select-trigger { background: #fce4e4; }
.esq-custom-select.is-locked  .esq-custom-select-trigger { pointer-events: none; }

/* Needle cursor page-wide during balloon game */
/* Pin: round head top-left, long shaft to sharp tip at bottom-right (hotspot = tip) */
body.esq-needle-cursor,
body.esq-needle-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cline x1='8' y1='38' x2='32' y2='4' stroke='%23c0c0c0' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='8' y1='38' x2='32' y2='4' stroke='%23888' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='5' r='5' fill='%23e84040'/%3E%3Ccircle cx='32' cy='5' r='3' fill='%23ff6b6b'/%3E%3C/svg%3E") 8 38, crosshair !important;
}

/* Balloons */
.esq-balloon {
    position: fixed;
    bottom: -160px;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cline x1='8' y1='38' x2='32' y2='4' stroke='%23c0c0c0' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='8' y1='38' x2='32' y2='4' stroke='%23888' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='5' r='5' fill='%23e84040'/%3E%3Ccircle cx='32' cy='5' r='3' fill='%23ff6b6b'/%3E%3C/svg%3E") 8 38, crosshair !important;
    z-index: 100001;
    animation: esqBalloonRise linear forwards;
}
@keyframes esqBalloonRise {
    0%   { transform: translateY(0) rotate(0deg);  opacity: 0; }
    5%   { opacity: 1; }
    25%  { transform: translateY(-28vh) rotate(4deg); }
    50%  { transform: translateY(-55vh) rotate(-3deg); }
    75%  { transform: translateY(-82vh) rotate(4deg); }
    100% { transform: translateY(-115vh) rotate(0deg); opacity: 1; }
}
@keyframes esqBalloonPop {
    0%   { transform: scale(1);   opacity: 1; }
    40%  { transform: scale(1.4); opacity: 0.9; }
    100% { transform: scale(0.1); opacity: 0; }
}

/* Bubbles */
.esq-bubble {
    position: fixed;
    bottom: -160px;
    z-index: 100001;
    animation: esqBubbleRise linear forwards;
}
@keyframes esqBubblePop {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.6); opacity: 0.5; }
    100% { transform: scale(0.1); opacity: 0; }
}
.esq-splash-drop {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100002;
    animation: esqSplashDrop 0.9s ease-out forwards;
}
@keyframes esqSplashDrop {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

/* Hammer cursor page-wide during whack-a-mole */
body.esq-hammer-cursor,
body.esq-hammer-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect x='17' y='17' width='7' height='21' rx='2' fill='%237B4F2E'/%3E%3Crect x='5' y='3' width='30' height='16' rx='5' fill='%23666'/%3E%3Crect x='5' y='3' width='30' height='7' rx='5' fill='%23999'/%3E%3C/svg%3E") 20 19, crosshair !important;
}

/* Whack-a-mole */
.esq-wam-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9996;
    pointer-events: none;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}
.esq-wam-grid {
    display: grid;
    grid-template-columns: repeat(3, 110px);
    grid-template-rows: repeat(2, 100px);
    gap: 16px 28px;
}
.esq-wam-cell {
    position: relative;
    width: 110px;
    height: 100px;
}
.esq-wam-shaft {
    position: absolute;
    bottom: 6px;
    left: 50%;
    margin-left: -34px;
    width: 68px;
    height: 74px;
    overflow: hidden;
}
.esq-wam-mole {
    position: absolute;
    bottom: -74px;
    left: 1px;
    width: 66px;
    height: 72px;
    background: radial-gradient(ellipse at 40% 28%, #d4a07a 0%, #a06030 55%, #7a4520 100%);
    border-radius: 50% 50% 42% 42%;
    transition: bottom 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.esq-wam-mole.active {
    bottom: 4px;
    pointer-events: auto;
}
.esq-wam-mole::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 11px;
    width: 11px;
    height: 13px;
    background: radial-gradient(circle at 35% 30%, #555, #111);
    border-radius: 50%;
    box-shadow: 28px 0 0 0 #111;
}
.esq-wam-mole::after {
    content: '';
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 13px;
    background: radial-gradient(ellipse, #f8c8d8, #e090a8);
    border-radius: 50%;
}
.esq-wam-pit {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 28px;
    background: radial-gradient(ellipse at 50% 40%, #0d0400 0%, #2a0e02 55%, #4a2010 100%);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.35), 0 5px 14px rgba(0,0,0,0.7) inset;
}
/* Ground strip for context */
.esq-wam-ground {
    position: absolute;
    bottom: 0;
    left: -20px;
    right: -20px;
    height: 22px;
    background: linear-gradient(to bottom, #7ec452 0%, #5a9a38 100%);
    border-radius: 0 0 10px 10px;
    z-index: 1;
}
@keyframes esqMoleHit {
    0%   { filter: brightness(2.2); transform: scaleX(1.15) scaleY(0.8); }
    50%  { filter: brightness(1.4); transform: scaleX(0.95) scaleY(1.05); }
    100% { filter: brightness(1);   transform: scaleX(1) scaleY(1); }
}
.esq-wam-mole.hit {
    animation: esqMoleHit 0.22s ease-out;
}

/* Count hint (checkbox) */
.esq-count-hint {
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #8BA1D2;
    margin: 8px 0 0;
    text-align: center;
}

/* Retry message */
.esq-retry-message {
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #c94040;
    margin: 16px 0 0 !important;
    text-align: center;
}


/* Answered state */
.esq-step.answered .esq-answer-label { pointer-events: none; opacity: 0.9; }
.esq-step.answered .esq-number-input { pointer-events: none; opacity: 0.9; }
