/* R96: local artwork and friendly welcome; red exam hierarchy follows each theme. */
@font-face{font-family:NunitoStudent;src:url('fonts/nunito-variable.ttf') format('truetype');font-style:normal;font-weight:400 900;font-display:swap}
:root{
 --r96-exam-main:#4d0c1d;--r96-exam-main-line:#da3e59;--r96-exam-title:#f7d698;--r96-exam-ink:#fff0f0;--r96-exam-muted:#e8c5ce;
 --r96-exam-book:#301620;--r96-exam-book-line:#75404f;--r96-book-title:#f1c1c9;--r96-book-button:#943b51;
 --r96-exam-field:#200c14;--r96-exam-cta:#bf1436;--r96-exam-active:#772239;
 --r96-welcome-line:var(--gold);--r96-welcome-trial:var(--raised);--r96-welcome-full:var(--panel);--r96-welcome-number:var(--gold);
}
:root[data-theme="naruto-young"]{--r96-exam-main:#381727;--r96-exam-book:#242535;--r96-exam-book-line:#71505e;--r96-exam-field:#171d2c;--r96-exam-title:#ffe3bf;--r96-book-title:#f4c4cd}
:root[data-theme="mono"]{--r96-exam-main:#321b24;--r96-exam-book:#262027;--r96-exam-main-line:#dc5b72;--r96-exam-book-line:#74525e;--r96-exam-title:#fff1f2;--r96-exam-field:#19171c;--r96-book-title:#f0cbd1;--r96-book-button:#8f4458}
:root[data-theme="forest"]{--r96-exam-main:#352127;--r96-exam-book:#243028;--r96-exam-book-line:#76515b;--r96-exam-title:#ffe4d8;--r96-exam-field:#15221b;--r96-book-title:#f1c5c8;--r96-book-button:#914353}
:root[data-theme="ironman"]{--r96-exam-main:#451728;--r96-exam-book:#252633;--r96-exam-book-line:#86604f;--r96-exam-title:#ffe0a3;--r96-exam-field:#151b28;--r96-book-title:#f1c6c7;--r96-book-button:#97485a}
:root:is([data-theme="naruto-v2"],[data-theme="mono-v2"],[data-theme="vivid-v2"]){
 --r96-exam-main:#fff0ef;--r96-exam-main-line:#c72345;--r96-exam-title:#981333;--r96-exam-ink:#4e1829;--r96-exam-muted:#78515d;
 --r96-exam-book:#fff9f6;--r96-exam-book-line:#d9a2ae;--r96-book-title:#923c52;--r96-book-button:#ac4b61;
 --r96-exam-field:#fffdfa;--r96-exam-cta:#bc173b;--r96-exam-active:#ffe0e5;
}
:root[data-theme="mono-v2"]{--r96-exam-main:#ffeff2;--r96-exam-book:#fff8fa;--r96-exam-field:#fff;--r96-exam-title:#a1193b}
:root[data-theme="vivid-v2"]{--r96-exam-main:#ffe9f0;--r96-exam-book:#f8eef8;--r96-exam-field:#fffafd;--r96-exam-book-line:#cea6c5}

/* Keep the established main controls and make the general exam the strongest card. */
:root[data-theme] .card.admission-card{background:var(--r96-exam-main);border:1px solid var(--r96-exam-main-line);border-top-width:3px;border-left-width:5px;color:var(--r96-exam-ink);box-shadow:0 5px 18px #9e17351a;padding:20px 18px 19px;--admission-red:var(--r96-exam-main-line);--ink:var(--r96-exam-ink);--muted:var(--r96-exam-muted);--gold:var(--r96-exam-title);--line:var(--r96-exam-book-line)}
:root[data-theme] .admission-card .admission-heading h2{font-size:clamp(29px,7.7vw,38px)!important;line-height:1.12;letter-spacing:-.8px;color:var(--r96-exam-title);font-weight:850;margin:12px 0 9px;text-shadow:none}
:root[data-theme] .admission-card .admission-heading{border-color:var(--r96-exam-book-line)}
:root[data-theme] .admission-card .admission-heading:after{opacity:.2}
:root[data-theme] .admission-card :is(p,span,summary,small){color:var(--r96-exam-muted)}
:root[data-theme] .admission-card .admission-kicker{color:var(--r96-exam-title);font-size:10px;letter-spacing:1.1px}
:root[data-theme] .admission-card .admission-facts{margin:13px 0;gap:12px}
:root[data-theme] .admission-card .practice-time{background:transparent;border:0;border-top:1px solid var(--r96-exam-book-line)}
:root[data-theme] .admission-card .time-options button{color:var(--r96-exam-ink);background:var(--r96-exam-field);border:1px solid var(--r96-exam-book-line);min-height:41px}
:root[data-theme] .admission-card .time-options button.active{background:var(--r96-exam-active);color:var(--r96-exam-ink);border-color:var(--r96-exam-main-line);box-shadow:inset 0 -2px 0 var(--r96-exam-main-line)}
:root[data-theme] .admission-card .admission-start{background:var(--r96-exam-cta)!important;border:1px solid #e9667f!important;color:#fff!important;font-weight:850;box-shadow:none;min-height:48px}
:root[data-theme] .admission-card .exam-saved{background:var(--r96-exam-field);border-color:var(--r96-exam-book-line)}
:root[data-theme] .admission-card .exam-saved strong{color:var(--r96-exam-ink)}
:root[data-theme] .admission-card .secondary{background:var(--r96-exam-field);border-color:var(--r96-exam-book-line);color:var(--r96-exam-ink)}

:root[data-theme] .card.book-exam-card{background:var(--r96-exam-book);color:var(--r96-exam-ink);border:1px solid var(--r96-exam-book-line);border-left:3px solid var(--r96-book-button);box-shadow:none;padding:18px 17px;margin-top:16px}
.book-exam-heading{padding-bottom:12px;border-bottom:1px solid var(--r96-exam-book-line)}
.book-exam-kicker{display:inline-block;color:var(--r96-book-title);font-size:9px;font-weight:800;letter-spacing:1.1px}
:root[data-theme] .book-exam-card .book-exam-heading h2{font-size:24px!important;line-height:1.2;color:var(--r96-book-title);font-weight:800;letter-spacing:-.3px;margin:9px 0 7px}
.book-exam-heading p{font-size:13px;line-height:1.6;margin:0;color:var(--r96-exam-muted)}
.book-exam-selector{display:grid;gap:8px;margin:16px 0 9px;min-width:0}
.book-exam-selector>span{font-size:12px;font-weight:750;color:var(--r96-exam-ink)}
.book-exam-selector select{display:block;width:100%;max-width:100%;min-width:0;min-height:47px;background:var(--r96-exam-field);color:var(--r96-exam-ink);border:1px solid var(--r96-exam-book-line);border-radius:11px;padding:10px 31px 10px 11px;font:inherit;font-size:13px;text-overflow:ellipsis}
.book-exam-selector option{color:var(--r96-exam-ink);background:var(--r96-exam-field)}
.book-exam-note{font-size:11px;color:var(--r96-exam-muted);line-height:1.6;margin:8px 0 14px}
.book-exam-card .practice-time{padding:12px 0;margin:0;border:0;border-top:1px solid var(--r96-exam-book-line);background:transparent}
.book-exam-card .practice-time>span{font-size:12px;color:var(--r96-exam-ink);font-weight:750;margin-bottom:9px}
.book-exam-card .time-options{gap:7px}
.book-exam-card .time-options button{flex:1;min-width:0;background:var(--r96-exam-field);color:var(--r96-exam-ink);border:1px solid var(--r96-exam-book-line);min-height:41px;font-size:12px;padding:9px 4px}
.book-exam-card .time-options button.active{background:var(--r96-exam-active);color:var(--r96-exam-ink);border-color:var(--r96-book-button);box-shadow:inset 0 -2px 0 var(--r96-book-button)}
:root[data-theme] .book-exam-card .book-exam-start{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:47px;background:var(--r96-book-button);border:1px solid var(--r96-exam-book-line);border-radius:11px;color:#fff;font-size:14px;font-weight:750;box-shadow:none;margin:4px 0 0}
.book-exam-start svg{width:18px;height:18px;flex:0 0 18px}
.book-exam-card .exam-saved{padding:12px;background:var(--r96-exam-field);border:1px solid var(--r96-exam-book-line);border-radius:11px;margin:12px 0}
.book-exam-card .exam-saved p{display:grid;gap:6px;color:var(--r96-exam-ink)}
.book-exam-card .exam-saved span{color:var(--r96-exam-muted);font-size:11px;line-height:1.5}
.book-exam-card .exam-saved .secondary{background:var(--r96-exam-book);color:var(--r96-exam-ink);border-color:var(--r96-exam-book-line)}
.countdown-book{font-size:13px!important;color:var(--muted);margin:10px 0 0!important}

/* All four individual stickers share one bundled transparent atlas. */
.student-sticker{display:block;flex-shrink:0;width:76px;height:76px;background-image:url('stickers/student-cats.png');background-repeat:no-repeat;background-size:200% 200%;pointer-events:none}
.cat-orator{background-position:0 0;transform:rotate(-5deg)}
.cat-banana{background-position:100% 0;transform:rotate(7deg)}
.cat-serious{background-position:0 100%;transform:rotate(-5deg)}
.cat-cool{background-position:100% 100%;transform:rotate(5deg)}
:root[data-theme] dialog.welcome-student{box-sizing:border-box;position:fixed;width:calc(100% - 24px);max-width:720px;max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow:auto;margin:auto;padding:24px 21px 17px;border:1px solid var(--r96-welcome-line);border-radius:26px;background:var(--card);color:var(--ink);font-family:NunitoStudent,'Trebuchet MS',sans-serif;text-align:center;box-shadow:0 20px 70px #0006}
.welcome-student::backdrop{background:#09070cb8;backdrop-filter:blur(3px)}
.welcome-student .welcome-dismiss{position:absolute;right:9px;top:7px;display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font:500 29px/1 NunitoStudent,sans-serif}
.student-welcome-heading{display:flex;align-items:center;justify-content:center;gap:13px;padding:11px 0 17px}
.student-welcome-heading>div{min-width:0;flex:1}
.student-welcome-heading>.student-sticker{width:91px;height:91px}
.student-welcome-chip{font-size:9px;color:var(--gold);letter-spacing:1.2px;font-weight:850}
:root[data-theme] .welcome-student h2{font:850 clamp(22px,4.6vw,32px)/1.17 NunitoStudent,sans-serif;color:var(--ink);margin:9px 0 8px;letter-spacing:-.4px;text-shadow:none}
.welcome-student h2 em{font-style:normal;color:var(--gold)}
.welcome-student h2>span{display:inline-block;font-size:.72em;vertical-align:middle}
.welcome-student .emoji-icon{border:0!important;background:transparent!important;border-radius:0!important;object-fit:contain!important;filter:none!important}
.welcome-student .student-welcome-heading p{font-size:12px;line-height:1.5;color:var(--muted);margin:5px 0 0}
.welcome-plans{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px;align-items:stretch}
.welcome-plan{display:flex;flex-direction:column;min-width:0;text-align:left;padding:15px;border:1px solid var(--line);border-radius:20px;background:var(--r96-welcome-trial)}
.welcome-full{background:var(--r96-welcome-full);border-color:var(--r96-welcome-line)}
.welcome-plan-top{display:flex;justify-content:space-between;gap:3px;align-items:center;min-height:66px;margin:-7px -5px 1px 0}
.welcome-plan-top .student-sticker{width:68px;height:68px;flex:0 0 68px}
.welcome-plan-pill{display:inline-block;font-size:9px;line-height:1.4;letter-spacing:.2px;color:var(--gold);font-weight:900;padding:6px 7px;border:1px solid var(--line);border-radius:20px;max-width:130px}
:root[data-theme] .welcome-plan h3{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0;color:var(--r96-welcome-number);font-family:NunitoStudent,sans-serif}
.welcome-plan h3 strong{font-size:65px;font-weight:900;line-height:1.1;letter-spacing:-2px}
.welcome-plan h3>span{font-size:21px;font-weight:850;line-height:1.2}
.welcome-student .welcome-plan-subtitle{font-size:15px;font-weight:850;line-height:1.3;color:var(--ink);margin:3px 0 9px}
.welcome-student .welcome-plan-copy{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 17px;flex:1}
.welcome-plan-copy strong{color:var(--ink);font-weight:800}
.welcome-student .welcome-study,.welcome-whatsapp{box-sizing:border-box;display:flex;justify-content:center;align-items:center;gap:7px;min-height:52px;width:100%;margin:0;border-radius:15px;text-align:center;font-family:NunitoStudent,sans-serif;font-weight:850;font-size:14px;line-height:1.25;text-decoration:none;padding:10px 7px;letter-spacing:0}
.welcome-student .welcome-study{background:var(--brand);border:1px solid var(--button-line);color:#fff}
.welcome-whatsapp{background:#167348;color:#fff;border:1px solid #3a9567}
.welcome-whatsapp svg{width:23px;height:23px;flex:0 0 23px}
.student-welcome-footer{margin:16px 0 0;color:var(--ink);font-size:13px;font-weight:750;line-height:1.6}
.student-welcome-footer>span{color:var(--mint);font-size:21px;vertical-align:-2px;margin-right:4px}
.student-welcome-footer small{display:block;font-size:11px;font-weight:600;color:var(--muted);margin-top:2px}
/* Remote announcements keep their existing transport and confirmation behavior. */
.announcement-dialog,.announcement-inbox{font-family:NunitoStudent,'Trebuchet MS',sans-serif}
.announcement-dialog .announcement-content h2,.announcement-inbox h2{font-family:NunitoStudent,sans-serif;font-weight:850;letter-spacing:-.3px;line-height:1.25}
.announcement-dialog .announcement-content p{font-family:NunitoStudent,sans-serif;font-size:15px;line-height:1.7}
.announcement-dialog .announcement-confirm,.announcement-dialog .announcement-later{font-family:NunitoStudent,sans-serif;border-radius:15px}
.welcome-student :is(button,a):focus-visible,.book-exam-card :is(button,select):focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:500px){
 :root[data-theme] dialog.welcome-student{padding:21px 13px 14px;border-radius:23px}
 .student-welcome-heading{gap:4px;padding:12px 0 15px}
 .student-welcome-heading>.student-sticker{width:58px;height:65px}
 .student-welcome-chip{font-size:8px;letter-spacing:.4px}
 .welcome-student .student-welcome-heading p{font-size:11px}
 .welcome-plans{gap:9px}
 .welcome-plan{padding:11px 10px;border-radius:17px}
 .welcome-plan-top{flex-direction:column;align-items:flex-start;min-height:92px;position:relative;justify-content:flex-start;margin:0 0 3px}
 .welcome-plan-top .student-sticker{align-self:center;width:66px;height:66px;flex-basis:66px;margin-top:2px}
 .welcome-plan-pill{font-size:8px;padding:5px 7px;letter-spacing:0}
 .welcome-plan h3{gap:2px 5px}
 .welcome-plan h3 strong{font-size:49px}
 .welcome-plan h3>span{font-size:17px}
 .welcome-student .welcome-plan-subtitle{font-size:13px;margin:5px 0 10px}
 .welcome-student .welcome-plan-copy{font-size:12px;line-height:1.5;margin-bottom:12px}
 .welcome-student .welcome-study,.welcome-whatsapp{font-size:12px;min-height:55px;gap:4px;padding:9px 5px;border-radius:13px}
 .welcome-whatsapp svg{width:19px;height:19px;flex-basis:19px}
 .student-welcome-footer{font-size:11px;margin-top:12px}
 .student-welcome-footer small{font-size:10px}
}
@media(max-width:350px){
 :root[data-theme] dialog.welcome-student{width:calc(100% - 16px);padding:20px 10px 12px}
 .student-welcome-heading>.student-sticker{width:43px;height:51px}
 :root[data-theme] .welcome-student h2{font-size:22px}
 .welcome-plan{padding:10px 8px}
 .welcome-plan h3 strong{font-size:43px}
 .welcome-plan h3>span{font-size:16px}
 .welcome-student .welcome-plan-copy{font-size:11px}
 .welcome-student .welcome-study,.welcome-whatsapp{font-size:11px}
 .welcome-whatsapp svg{display:none}
 .student-welcome-chip{font-size:7px}
 .book-exam-card .time-options{gap:5px}
 .book-exam-card .time-options button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.welcome-student *{animation:none!important;transition:none!important}}
