/* Navigation fixes are scoped; keep quiz keys, header ordering and saved progress. */
.quiz-header .quiz-exit-button{display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;flex:none;border:1px solid #d8d1c3;border-radius:14px;background:#fffdf6;color:#18382e;padding:0;font-size:0;box-shadow:0 3px 10px #193c2d0a;}
.quiz-header .quiz-exit-button:hover{background:#eee9dd;border-color:#a8b7a9;}
.quiz-header .quiz-exit-button svg{width:21px;height:21px;}
.activity-confirm-v25{box-sizing:border-box;border:1px solid #dfd7c5;border-radius:26px;background:#fffdf7;color:#17362b;width:min(460px,calc(100vw - 32px));max-height:88dvh;padding:0;overflow:auto;box-shadow:0 24px 80px #0b271e44;font-family:RubikLocal,Rubik,system-ui,sans-serif;}
.activity-confirm-v25::backdrop{background:#10291fb3;backdrop-filter:blur(4px);}
.confirm-content-v25{padding:28px;text-align:center;}
.confirm-symbol-v25{display:grid;place-items:center;margin:0 auto 16px;width:48px;height:48px;background:#f1e1d2;color:#aa4a32;border-radius:17px;font-size:25px;font-weight:700;}
.confirm-content-v25 h2{font-size:24px;margin:8px 0 12px;text-align:center!important;}
.confirm-content-v25 p{line-height:1.85;font-size:14px;color:#5c6c61;text-align:center!important;margin:0;}
.confirm-actions-v25{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;}
.confirm-actions-v25 button{flex:1;min-height:46px;border-radius:12px;border:1px solid #cbd6c8;padding:10px 13px;font:700 14px RubikLocal,Rubik,system-ui,sans-serif;cursor:pointer;}
.confirm-stay-v25{background:#1a4638;color:white;}.confirm-leave-v25{background:#fff9f2;color:#9e442b;border-color:#e2c6b6!important;}
body.activity-confirm-open{overflow:hidden;}
.reference-information-v25{border:1px solid #cbd9cc;border-radius:14px;padding:14px 16px;background:#fffef9;margin-top:14px;}
.reference-information-v25>strong{font-size:12px;color:#2c5c4c!important;}
.reference-information-v25 .answer-source-list{display:block;padding:0!important;}
.reference-item-v25{padding-top:8px;}.reference-item-v25+.reference-item-v25{margin-top:8px;border-top:1px solid #e5e8db;}
.reference-item-v25 p{margin:0!important;font-size:12px;line-height:1.75;color:#516458;}
.reference-item-v25 p.source-disclaimer{font-size:11px;color:#778276;}
.israel-flag-v25{display:inline-block!important;width:26px!important;height:19px!important;max-width:none!important;vertical-align:-3px;object-fit:contain;margin-inline:3px;}
/* A native modal stays above the admin drawer's sizing and focus context. */
.note-editor-v25{box-sizing:border-box;width:min(1040px,calc(100vw - 48px));max-width:none;max-height:92dvh;overflow:auto;overscroll-behavior:contain;padding:0;border:1px solid #d5d6c6;border-radius:24px;background:#fffdf7;color:#17362b;box-shadow:0 32px 110px #0b211b66;font:400 16px RubikLocal,Rubik,system-ui,sans-serif;}
.note-editor-v25::backdrop{background:#0d201eb3;backdrop-filter:blur(4px);}
.note-editor-head-v25{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 28px;border-bottom:1px solid #e5dfd0;background:#fffdf7;}
.note-editor-head-v25 small{color:#b7543b;font-weight:700;font-size:12px;}.note-editor-head-v25 h2{margin:4px 0 0;font-size:25px;}
.note-editor-x-v25{border-radius:13px;width:44px;height:44px;border:1px solid #dfd4c3;background:#f4f0e7;color:#234438;font-size:20px;cursor:pointer;flex:none;}
.note-editor-body-v25{padding:24px 28px 18px;}
.note-editor-body-v25 .admin-field{margin:0 0 8px;display:block;font-weight:700;color:#274d3e;}
.note-editor-body-v25 input:not([type=hidden]),.note-editor-body-v25 textarea{box-sizing:border-box;display:block;width:100%;padding:13px 16px;border:1px solid #cbd3c6;border-radius:13px;background:white;color:#17362b;font:400 16px/1.85 RubikLocal,Rubik,system-ui,sans-serif;direction:rtl;text-align:right;}
.note-editor-body-v25 textarea{min-height:330px;resize:none;overflow:hidden;}
.note-editor-body-v25 :is(input,textarea):focus-visible{outline:3px solid #327a684d;outline-offset:2px;}
.note-content-label-v25{display:flex;align-items:baseline;justify-content:space-between;margin-top:20px;gap:12px;}.note-content-label-v25 bdi{font-size:12px;color:#839081;}
.note-editor-actions-v25{position:sticky;bottom:0;z-index:2;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex-wrap:wrap;text-align:right;gap:12px;padding:16px 28px;background:#fffdf7ed;border-top:1px solid #e3ddce;backdrop-filter:blur(8px);}
.note-editor-actions-v25 button{min-height:46px;min-width:135px;}
body.note-editor-open-v25{overflow:hidden;}
/* Footer: cream paper, original emblem and study-page type treatment. */
.games-page .games-footer{background:#f2eee3;border-top:1px solid #d5d1c3;margin-top:26px;padding:42px 0 0;color:#1c3a30;}
.games-page .games-footer .footer-inner-v25{display:grid;grid-template-columns:1fr 1.55fr .75fr;gap:32px;align-items:start;}
.footer-brand-v25 img{display:block;object-fit:contain;margin-bottom:14px;}
.footer-brand-v25>strong{display:block;font-size:18px;font-weight:700;}.footer-brand-v25 p{font-size:14px;color:#586e62;line-height:1.7;margin:10px 0;}.footer-brand-v25>small{font-size:11px;color:#7c8a7e;}
.footer-copy-v25{padding-inline:20px;border-inline:1px solid #dcd8c9;}.footer-kicker-v25{font-size:12px;letter-spacing:.04em;color:#b25339;font-weight:700;}
.footer-copy-v25 h2{font-size:27px;line-height:1.2;margin:12px 0;font-weight:700;}.footer-copy-v25 p{font-size:13px;line-height:1.8;color:#677a6b;}
.footer-actions-v25{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;}.footer-actions-v25 :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #bac9bb;border-radius:12px;background:#fffcf3;color:#284e3e;text-decoration:none;min-height:44px;padding:9px 14px;font:600 13px RubikLocal,Rubik,system-ui,sans-serif;cursor:pointer;}
.footer-actions-v25 .footer-study-v25{background:#173b30;color:#fff;}
.footer-links-v25{display:grid;gap:8px;}.footer-links-v25>strong{font-size:13px;margin-bottom:8px;}.footer-links-v25 button{border:0;background:none;color:#607668;padding:7px 0;text-align:right;font:400 13px RubikLocal,Rubik,system-ui,sans-serif;min-height:40px;cursor:pointer;}
.footer-links-v25 button:hover{color:#b25339;text-decoration:underline;}
.games-page .games-footer .footer-bottom-v25{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 0;border-top:1px solid #d9d4c5;font-size:11px;color:#7e8a7d;}
@media(max-width:680px){
 .confirm-content-v25{padding:24px 20px;}.confirm-actions-v25{flex-direction:column;}.confirm-actions-v25 button{flex:auto;width:100%;}
 .note-editor-v25{width:calc(100vw - 18px);max-height:96dvh;border-radius:19px;}.note-editor-head-v25{padding:16px;}.note-editor-body-v25{padding:20px 16px;}.note-editor-body-v25 textarea{min-height:360px;}.note-editor-actions-v25{padding:12px 16px;gap:8px;}.note-editor-actions-v25 button{min-width:0;flex:1;padding:10px 8px;font-size:13px;}.note-editor-head-v25 h2{font-size:22px;}
 .games-page .games-footer .footer-inner-v25{grid-template-columns:1fr;gap:25px;width:calc(100% - 36px);text-align:right;}.footer-brand-v25{display:grid;grid-template-columns:80px 1fr;column-gap:14px;}.footer-brand-v25 img{grid-row:1/4;width:80px;align-self:center;margin:0;}.footer-brand-v25 p{margin:6px 0;}.footer-copy-v25{border:0;border-top:1px solid #dcd8c9;border-bottom:1px solid #dcd8c9;padding:24px 0;}.footer-copy-v25 h2{font-size:25px;}.footer-links-v25{grid-template-columns:repeat(3,1fr);gap:7px;}.footer-links-v25>strong{grid-column:1/-1;}.games-page .games-footer .footer-bottom-v25{gap:8px;}
}
/* Center top-layer dialogs explicitly; site-wide reset removes UA margins. */
.note-editor-v25,.activity-confirm-v25{inset:0;margin:auto;height:fit-content;}
.note-editor-actions-v25{min-height:0;margin:0;width:100%;box-sizing:border-box;}
