@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');
:root{--purple:#7750ba;--purple-dark:#55338e;--purple-light:#eee3fb;--pink:#f3a6c4;--pink-light:#fff0f7;--gold:#f2bb5a;--ink:#35264c;--muted:#746883;--cream:#fffcf7;--line:#e8d9f3;--shadow:0 24px 58px rgba(88,52,142,.11)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:linear-gradient(155deg,#fffaff 0%,#fbf5ff 39%,#fff7f3 100%);font-family:Cairo,'Noto Sans Arabic',Tahoma,sans-serif;color:var(--ink);direction:rtl;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.ambient{position:fixed;z-index:-1;pointer-events:none;border-radius:50%;filter:blur(5px)}.ambient-a{width:480px;height:480px;background:#e6d5fa80;top:170px;right:-240px}.ambient-b{width:390px;height:390px;background:#ffe3ed99;bottom:-220px;left:-130px}.topbar{height:106px;max-width:1220px;margin:auto;padding:15px 27px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:15px;min-width:0}.brand .moe{width:96px;height:70px;object-fit:contain;background:white;border-radius:17px;padding:5px 8px;box-shadow:0 7px 25px #d4c5e550}.brand div{display:flex;flex-direction:column;line-height:1.65}.brand-caption{font-size:12px;color:#8d779d;font-weight:800}.brand strong{font-size:17px;font-weight:900}.admin-link{white-space:nowrap;color:#714ba7;background:#fff;border:1px solid #eee2f7;border-radius:999px;padding:8px 19px;font-weight:800;box-shadow:0 6px 18px #baa0d33b}.admin-link:hover{background:#f8eefe}.shell{max-width:1120px;margin:0 auto;padding:5px 26px 36px}.welcome-grid{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;min-height:440px;gap:8px}.eyebrow{display:inline-flex;align-items:center;border-radius:100px;background:#f7e8fb;color:#7a4ea8;padding:7px 19px;font-size:14px;font-weight:900;letter-spacing:.1px}.welcome-copy h1,.admin-hero h1{font-size:clamp(39px,5vw,67px);line-height:1.4;margin:18px 0 9px;letter-spacing:-2px;color:#4a2c79;font-weight:900}.welcome-copy h1 span,.admin-hero h1 span{color:#a36cd3}.welcome-copy h1 .star-inline{font-size:36px;color:#f3c15f;vertical-align:middle}.lead{font-size:16px;line-height:2.1;color:#655674;max-width:640px;margin:10px 0 15px}.hero-pills{display:flex;gap:9px;flex-wrap:wrap;margin:19px 0}.hero-pills span{background:#fff;border:1px solid #e9dced;box-shadow:0 5px 15px #b99cc218;color:#674f84;font-size:13px;font-weight:800;border-radius:100px;padding:7px 13px}.credits{display:flex;flex-wrap:wrap;gap:9px 16px;margin:18px 0;font-size:12px;color:#735a83}.credits span{padding:6px 11px;border-radius:10px;background:#f7edf9;border-right:3px solid #ad83d0}.credits b{color:#533882}.hero-art{position:relative;display:flex;align-items:center;justify-content:center}.hero-art img{width:100%;max-width:540px;filter:drop-shadow(0 14px 15px rgba(119,76,186,.05))}.floating{position:absolute;font-size:32px;animation:bob 5s ease-in-out infinite}.f-one{right:6%;top:13%}.f-two{bottom:17%;left:1%;animation-delay:1.4s}.art-ribbon{position:absolute;bottom:2%;left:13%;right:13%;text-align:center;background:#7650b7;color:#fff;border:3px solid #f9e7a6;box-shadow:0 9px 22px #7454aa44;padding:8px 15px;border-radius:60px;font-weight:900;font-size:14px;transform:rotate(-3deg)}@keyframes bob{50%{transform:translateY(-12px)}}.intro-card{background:linear-gradient(123deg,#fff 20%,#fff9fe 100%);border:1px solid #eee0f3;border-radius:27px;box-shadow:var(--shadow);padding:27px 31px;margin:28px auto;max-width:950px}.intro-head{display:flex;justify-content:space-between;gap:15px;align-items:center}.intro-head h2{font-size:27px;color:#62409b;margin:0 0 5px;font-weight:900}.intro-head p{color:#806f88;font-size:14px;margin:0}.trophy{width:64px;height:64px;background:#fff2d8;border-radius:19px;display:grid;place-items:center;font-size:31px;flex:none}.start-form{display:flex;align-items:flex-end;gap:15px;margin-top:22px;flex-wrap:wrap}.start-form label{flex:1;min-width:200px;color:#4c3b60;font-weight:900;font-size:14px}.required{font-size:12px;color:#a36d95;font-weight:600}.start-form input,.records-controls input{display:block;margin-top:7px;width:100%;background:#fff;border:2px solid #eaddf1;border-radius:14px;outline:0;padding:12px 15px;color:#3d2a52;font-size:14px;transition:border .2s}.start-form input:focus,.records-controls input:focus{border-color:#a77bcf;box-shadow:0 0 0 3px #b78dde20}.primary-btn{background:linear-gradient(115deg,#895dc8,#6844a9);color:white;border:0;border-radius:14px;padding:14px 24px;min-height:53px;font-size:15px;font-weight:900;box-shadow:0 10px 25px #7650ba46}.primary-btn:hover{filter:brightness(1.08)}.primary-btn span{margin-right:10px}.secondary-btn{color:#6945a4;background:#f3e9fb;border:1px solid #d9c5e9;border-radius:14px;padding:13px 19px;min-height:50px;font-weight:900}.secondary-btn:hover{background:#e9d9f9}.subtle-btn{background:white;color:#75509d;border:1px solid #e5d9ed;padding:8px 13px;border-radius:12px;font-weight:900}.alert{margin-top:15px;color:#9e3e51;background:#ffecf0;border-radius:12px;padding:10px 13px;font-size:13px;font-weight:800}.stat-band{display:flex;align-items:center;gap:15px;max-width:950px;margin:15px auto;background:linear-gradient(90deg,#f1e4fb,#ffeefa);padding:18px 24px;border:1px dashed #d7bdeb;border-radius:21px}.stat-icon{font-size:38px}.stat-band div:nth-child(2){display:flex;gap:8px;flex-direction:column}.stat-band strong{font-size:27px;color:#6b40ab;line-height:1}.stat-band span{font-size:13px;font-weight:900}.stat-band p{margin-right:auto;color:#836b91;font-size:12px;max-width:390px;line-height:1.7}footer{display:flex;flex-wrap:wrap;gap:8px 25px;align-items:center;justify-content:center;text-align:center;border-top:1px solid #eadcf0;padding:24px 18px 31px;color:#755f86;font-size:12px;margin-top:36px}footer strong{color:#634297}footer small{font-size:11px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%) translateY(120px);opacity:0;z-index:20;background:#634197;color:white;border-radius:16px;box-shadow:0 8px 30px #4d337444;padding:13px 22px;text-align:center;transition:all .22s ease;font-size:13px;font-weight:900;max-width:calc(100vw - 25px);pointer-events:none}.toast.visible{transform:translateX(-50%) translateY(0);opacity:1}.game-area{max-width:880px;margin:12px auto}.game-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.game-head-title{font-size:17px;font-weight:900;color:#58398c}.student-chip{font-size:12px;font-weight:900;color:#8053aa;background:#f0e6fa;padding:6px 12px;border-radius:40px}.progress-box,.task-card{background:white;box-shadow:var(--shadow);border:1px solid #e9dbf3;border-radius:24px;padding:23px;margin:16px 0}.progress-label{display:flex;justify-content:space-between;gap:10px;color:#6b5093;font-weight:900;font-size:13px}.progress-track{height:15px;border-radius:99px;background:#f0e6fa;margin:13px 0;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#b794e1,#7546b3,#ed9fc4);border-radius:99px;transition:width .4s}.station-dots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.station-dot{padding:9px 5px;background:#f9f3fc;border:1px solid #efe1f7;border-radius:11px;text-align:center;color:#9884a8;font-size:11px;font-weight:800}.station-dot.active{background:#eee0fa;color:#7044b0;border-color:#d7b9ef}.station-dot.done{background:#ecf8ef;color:#297851;border-color:#b8e0c5}.task-card{padding:28px 32px;min-height:360px}.task-step{display:inline-block;font-weight:900;font-size:12px;color:#9259be;background:#f5e8fc;border-radius:30px;padding:5px 13px}.task-card h2{font-size:25px;color:#533287;line-height:1.7;margin:13px 0 7px}.task-hint{color:#8a7199;font-size:13px;margin:0 0 22px}.task-body{min-height:160px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice{background:#faf5ff;border:2px solid #e9d8f4;border-radius:17px;padding:15px;color:#493462;font-weight:800;font-size:14px;text-align:center;min-height:64px}.choice:hover{border-color:#caa2e7;background:#f4e8fe}.choice.right{background:#e7f8ef;border-color:#81caa3;color:#277451}.choice.wrong{background:#fff0f1;border-color:#efa0ab;color:#a94f5f}.word-area{padding:14px;display:flex;gap:8px;flex-wrap:wrap;align-content:center;min-height:80px;background:#f7effd;border:2px dashed #d5b9eb;border-radius:14px;margin-bottom:15px}.word-token{border:1px solid #d8c4ed;background:white;color:#624097;border-radius:12px;padding:9px 14px;font-weight:900;box-shadow:0 5px 13px #d1b6e541}.word-token:disabled{opacity:.3;cursor:default}.word-selected{background:#ede0fa}.task-feedback{min-height:26px;font-size:14px;font-weight:900;color:#725494;margin:12px 0}.task-feedback.good{color:#16855b}.task-feedback.bad{color:#a74a60}.task-actions{display:flex;gap:10px;flex-wrap:wrap}.success-area{max-width:970px;margin:25px auto;text-align:center}.success-banner{border-radius:25px;background:linear-gradient(110deg,#f4e5fc,#fff1f7);padding:23px;margin-bottom:20px}.success-banner h2{color:#6a3d9b;font-size:29px;margin:6px}.success-banner p{color:#765d88;margin:0 0 12px}.confetti{font-size:25px}.record-status{font-size:12px;color:#8c6488;font-weight:900}.certificate-panel{padding:17px 18px 23px;background:white;border-radius:24px;border:1px solid #ede1f0;box-shadow:var(--shadow)}.certificate-preview{width:100%;border-radius:14px;display:block;border:1px solid #d9c2e9}.certificate-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:13px;margin:20px 0 10px}.small-note{font-size:11px;line-height:2;color:#95809f}.success-area>.subtle-btn{margin-top:24px}.admin-shell{max-width:1110px}.admin-hero{padding:25px 30px 30px;border-radius:27px;background:linear-gradient(115deg,#ede0fa,#fff1f8);border:1px solid #e2d0ee;position:relative;overflow:hidden}.admin-hero:after{content:'✦';position:absolute;left:40px;top:-40px;color:#b48bd9;font-size:200px;opacity:.18}.admin-hero h1{font-size:clamp(35px,5vw,53px);margin:10px 0 0}.admin-hero p{margin:0;color:#77638a;line-height:1.9;max-width:680px}.admin-hero .credits{margin:10px 0 0}.login-panel{max-width:720px}.login-panel .start-form label{max-width:420px}.dashboard-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}.stat-tile{background:white;border-radius:21px;border:1px solid #edddf2;box-shadow:0 12px 30px #8762a81c;display:flex;flex-direction:column;gap:4px;align-items:center;padding:17px 10px}.stat-tile span{font-size:27px}.stat-tile strong{font-size:29px;color:#6c41a4}.stat-tile small{color:#846e94;font-weight:800}.action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.action-tile{background:linear-gradient(150deg,#fff,#f8f0fe);border:1px solid #e2cbed;border-radius:19px;box-shadow:0 10px 25px #7d59a11e;padding:17px 10px;display:flex;gap:7px;flex-direction:column;align-items:center;text-align:center;color:#643e94}.action-tile:hover{background:#f0e1fa;transform:translateY(-2px)}.action-tile>span{font-size:31px}.action-tile strong{font-size:14px}.action-tile small{font-size:11px;color:#887098}.records{background:white;border:1px solid #e6d8ed;border-radius:21px;padding:20px;box-shadow:var(--shadow)}.records-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}.records-head h2{margin:0;color:#644295}.records-controls{display:flex;align-items:center;gap:10px}.records-controls input{width:270px;margin:0}.admin-notice{font-size:12px;color:#8b6598;background:#faf3ff;border-radius:10px;padding:11px 14px;margin:12px 0}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:660px;font-size:13px}th{background:#e9d9f8;color:#533082;font-weight:900}td,th{padding:12px;text-align:right;border-bottom:1px solid #eee4f4}td{color:#5e4b70}.empty-state{text-align:center;padding:29px;color:#8b7398}.delete-btn{border:0;border-radius:8px;background:#ffe8ec;color:#af3b59;font-weight:900;padding:6px 13px}.print-report{display:none}.report-logo img{width:150px}.report-signatures{display:flex;justify-content:space-between;margin-top:50px;font-weight:900}.print-report h1{text-align:center;color:#624198}.print-report h2{text-align:center}.print-report table{margin-top:25px}.print-report td,.print-report th{border:1px solid #d0bddc}.print-report p{text-align:center}
@media(max-width:850px){.welcome-grid{grid-template-columns:1fr;gap:0}.welcome-copy{padding-top:12px}.hero-art{max-width:500px;width:100%;margin:auto}.hero-art img{max-height:380px}.action-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:580px){.topbar{height:88px;padding:10px 13px}.brand{gap:8px}.brand .moe{width:67px;height:59px;border-radius:11px}.brand strong{font-size:12px}.brand-caption{font-size:10px}.admin-link{padding:7px 11px;font-size:12px}.shell{padding:3px 13px 22px}.welcome-copy h1{font-size:43px;margin:10px 0;letter-spacing:-1px}.lead{font-size:13px;line-height:2}.hero-pills span{font-size:11px}.credits{margin:13px 0;font-size:10px;gap:6px}.hero-art img{max-height:300px}.art-ribbon{font-size:11px;bottom:0}.intro-card{padding:18px;margin-top:23px;border-radius:20px}.intro-head h2{font-size:19px}.intro-head p{font-size:12px}.trophy{height:49px;width:49px;font-size:23px}.start-form{gap:10px}.start-form label{min-width:100%}.start-form button{width:100%}.stat-band{padding:12px;gap:9px;flex-wrap:wrap}.stat-band p{font-size:10px;margin:0}.stat-icon{font-size:29px}.stat-band strong{font-size:23px}.game-head{flex-wrap:wrap}.game-head-title{font-size:13px}.student-chip{font-size:11px}.progress-box,.task-card{padding:17px;border-radius:20px}.task-card h2{font-size:20px}.station-dot{font-size:9px}.choices{grid-template-columns:1fr}.choice{font-size:13px;min-height:55px}.admin-hero{padding:20px}.admin-hero h1{font-size:36px}.admin-hero p{font-size:12px}.dashboard-stats{gap:7px}.stat-tile{padding:11px 3px}.stat-tile strong{font-size:24px}.stat-tile small{font-size:9px}.action-grid{gap:9px}.action-tile{padding:10px 6px}.action-tile strong{font-size:11px}.action-tile small{font-size:9px}.records{padding:13px}.records-head h2{font-size:18px}.records-controls{width:100%}.records-controls input{width:100%;min-width:0}footer{padding:20px 11px;font-size:11px}}
@media print{body{background:white!important}.topbar,.ambient,footer,.welcome-area,.game-area,.success-banner,.certificate-buttons,.small-note,.success-area>.subtle-btn,.admin-hero,.login-panel,.dashboard,.toast{display:none!important}.shell{padding:0!important;max-width:none!important}.success-area{display:block!important;margin:0!important}.certificate-panel{padding:0;border:0;box-shadow:none}.certificate-preview{width:100%;border:0;border-radius:0;max-height:95vh;object-fit:contain}.print-report{display:block!important;padding:0 22px}.admin-page .shell{padding:0!important}.admin-page .print-report table{font-size:11px}@page{size:A4 landscape;margin:8mm}}
/* 2026 elementary-school redesign: pink, lavender, mint, sky blue and off-white. */
:root{--purple:#8450ba;--purple-dark:#512b82;--purple-light:#f2e5fc;--pink:#f8a3c8;--pink-light:#ffebf5;--gold:#edbd54;--ink:#443052;--muted:#746683;--cream:#fff9ee;--line:#eadff4;--shadow:0 24px 48px rgba(125,79,168,.13)}
body{background:radial-gradient(ellipse at top right,#e2f8f3 0,transparent 38%),radial-gradient(ellipse at top left,#d8ecff 0,transparent 40%),linear-gradient(180deg,#f4f8ff 0%,#ffeff9 54%,#f9f2ff 100%)}
.illustrated-cover{position:relative;overflow:hidden;border-radius:34px;background:linear-gradient(148deg,#ddf5ff 0%,#e6eeff 22%,#ffe7f3 57%,#fffaf0 79%,#e6fbec 100%);border:4px solid #fff;outline:1px solid #d8b6ec;box-shadow:0 18px 55px #8067b035;margin:8px auto 24px;padding:26px 30px 23px;isolation:isolate}
.illustrated-cover::before{content:'☁️          ✨        ☁️';position:absolute;inset:1% 0 auto 0;text-align:center;z-index:-1;font-size:53px;opacity:.38;pointer-events:none;letter-spacing:23px}
.illustrated-cover::after{content:'';position:absolute;left:-10%;right:-10%;height:160px;bottom:-79px;border-radius:50% 50% 0 0;background:linear-gradient(90deg,#98e1ad,#b8efca,#8acbd9);z-index:-1}
.cover-top{display:flex;align-items:center;justify-content:center;position:relative;min-height:64px}.cover-school-name{display:inline-block;text-align:center;color:#512d75;background:linear-gradient(180deg,#fffbff,#fff1fa);border:3px solid #dfb1e9;outline:3px solid #fff;border-radius:100px;padding:7px 33px;font-size:clamp(17px,2.8vw,29px);font-weight:900;box-shadow:0 8px 0 #e8bbd040,0 8px 19px #8054b12b}.cover-garland{position:absolute;right:0;font-size:28px;top:5px}
.cover-stage{display:grid;grid-template-columns:39% 61%;gap:8px;align-items:center;min-height:330px}.cover-school{position:relative;transform:translateY(15px)}.cover-school>img{display:block;width:100%;max-width:440px;filter:drop-shadow(0 19px 19px #8f5cac24)}.cover-school-tag{position:absolute;bottom:0;left:10%;right:8%;padding:5px 8px;border-radius:30px;background:#fffefa;border:2px solid #e6d1ef;text-align:center;color:#8052a8;font-size:12px;font-weight:900}
.cover-center{text-align:center;position:relative;z-index:1}.cover-award{font-size:65px;line-height:1;margin-bottom:2px;filter:drop-shadow(0 7px 3px #9c6b9933)}.cover-ribbon{display:inline-block;background:linear-gradient(110deg,#af76db,#ed9dce);border:2px solid white;outline:2px solid #d19de1;border-radius:90px;color:#fff;font-size:14px;font-weight:900;padding:6px 21px;box-shadow:0 8px 20px #c573b242}.cover-center h1{font-size:clamp(32px,5.7vw,69px);line-height:1.28;color:#55258b;text-shadow:1px 2px #fff,2px 4px #e0c6f3;letter-spacing:-1px;margin:9px 0}.cover-center h1 span{color:#a84fa2}.cover-center p{color:#543a74;font-weight:800;font-size:clamp(12px,1.7vw,16px);margin:11px auto;max-width:520px}
.cover-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;max-width:810px;margin:15px auto 0;position:relative;z-index:1}.topic{background:#fff;border-radius:28px;border:3px solid #d9b6e8;padding:16px 8px 17px;text-align:center;box-shadow:0 8px 0 #d1b6e64b,0 11px 24px #9f6db11e;min-height:130px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#442f66}.topic-one{background:linear-gradient(145deg,#f0fff1,#c4f4d4);border-color:#94d8ac}.topic-two{background:linear-gradient(145deg,#fff2f9,#ffd3e9);border-color:#e7a7cd}.topic-three{background:linear-gradient(145deg,#eefaff,#c9ecff);border-color:#92ceeb}.topic-icon{font-size:34px;line-height:1.15}.topic strong{font-size:clamp(13px,2.1vw,19px);line-height:1.35;color:#4b326e;font-weight:900}.cover-footer{max-width:760px;text-align:center;margin:24px auto 4px;padding:10px 16px;font-size:13px;color:#604087;font-weight:900;background:#fffdfa;border:1px solid #e1c9eb;border-radius:999px}.cover-footer b{color:#ed86bc;margin:0 8px}.cover-credits{justify-content:center;gap:10px;margin:15px auto 0!important}.cover-credits span{font-size:12px;border:1px solid #eac9e7;border-radius:90px;background:#fffefbd9;padding:8px 14px!important}.cover-credits b{color:#653b87}.challenge-cover+.intro-card{margin-top:28px;background:linear-gradient(145deg,#fffefe,#fceef9);border:2px solid #e9d5f4}
.admin-cover .cover-stage{min-height:300px}.admin-cover .cover-center h1{font-size:clamp(31px,5vw,58px)}.admin-cover .cover-center h1 span{color:#a94f9e}.admin-cover .cover-topics{margin-top:7px}.admin-topics .topic{cursor:pointer;font:inherit;transition:transform .18s ease,box-shadow .18s ease}.admin-topics .topic:hover,.admin-topics .topic:focus-visible{transform:translateY(-4px);box-shadow:0 10px 20px #ac70c244}.cover-main-button{display:block;min-width:265px;max-width:440px;margin:22px auto 6px;padding:12px 33px;border-radius:100px;border:3px solid #fff;outline:2px solid #d5a5eb;color:#fff;background:linear-gradient(135deg,#9b61ce,#773fba);box-shadow:0 9px 22px #9c5cc45c;font-size:22px;font-weight:900}.cover-main-button span{margin-right:15px}.cover-main-button:hover{filter:brightness(1.06)}
.dashboard-title{display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(100deg,#fff1f9,#eaf7ff,#ebfaed);border:2px solid #e2c5eb;border-radius:24px;padding:20px 25px;margin:20px 0 13px;box-shadow:0 8px 28px #9659ab16}.dashboard-title h2{margin:9px 0 2px;font-size:24px;color:#693c92}.dashboard-title p{margin:0;font-size:12px;color:#6e6482}.dashboard-title img{width:124px;max-width:30%;background:white;border-radius:15px;padding:5px}
.admin-page .dashboard-stats{margin-top:13px}.admin-page .stat-tile:nth-child(1){background:linear-gradient(145deg,#fff8ec,#fff1ca)}.admin-page .stat-tile:nth-child(2){background:linear-gradient(145deg,#fff1f8,#ffdef0)}.admin-page .stat-tile:nth-child(3){background:linear-gradient(145deg,#edfcff,#d6f4ff)}
.admin-page .action-grid{grid-template-columns:repeat(3,1fr)}.admin-page .action-tile{min-height:116px;border:2px solid #dcc8f0;transition:transform .18s ease,box-shadow .18s ease}.admin-page .action-tile:nth-child(6n+1){background:linear-gradient(145deg,#e8fff3,#caf3de);border-color:#acdec3}.admin-page .action-tile:nth-child(6n+2){background:linear-gradient(145deg,#ffedf7,#ffdae9);border-color:#f0b7ce}.admin-page .action-tile:nth-child(6n+3){background:linear-gradient(145deg,#eaf7ff,#d5eeff);border-color:#a9d3f5}.admin-page .action-tile:nth-child(6n+4){background:linear-gradient(145deg,#edfcff,#d9f4f1);border-color:#a6dfd9}.admin-page .action-tile:nth-child(6n+5){background:linear-gradient(145deg,#f4eaff,#e8d6ff);border-color:#c7a7ec}.admin-page .action-tile:nth-child(6n+6){background:linear-gradient(145deg,#fff6f0,#ffe4e0);border-color:#eec7bd}.admin-page .action-tile strong{color:#58397a}.admin-page .action-tile>span{font-size:30px}
.records{border:2px solid #e4cce8}.records h2{color:#673c89}.records thead th{background:linear-gradient(135deg,#eedaff,#f9dced,#e0f0ff);color:#512a75}.admin-notice{background:#f2eeff;color:#6d4f8a}.password-panel{border:2px solid #d5b6ed;border-radius:23px;padding:22px;margin:0 0 24px;background:linear-gradient(125deg,#fff,#fbf1ff,#edf9ff);box-shadow:0 12px 26px #906bb01e}.password-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.password-head h3{color:#69369e;margin:0;font-size:19px}.password-head p{color:#745f86;font-size:12px;margin:5px 0}.password-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:15px 0 0}.password-fields label{display:block;font-size:12px;font-weight:900;color:#573f73}.password-fields input{width:100%;margin-top:7px;padding:12px 14px;border-radius:13px;border:2px solid #e2d4ec;background:#fff;color:#3d295b;min-width:0}.password-fields input:focus{outline:2px solid #b88add}.password-fields button{grid-column:1/-1;justify-self:start}.admin-page .records-controls input{border-color:#d9c9e9}
@media(max-width:850px){.illustrated-cover{padding:21px 17px}.cover-stage{min-height:270px}.cover-school-tag{font-size:10px}.cover-award{font-size:47px}.admin-cover .cover-stage{min-height:260px}.password-fields{grid-template-columns:1fr 1fr}.password-fields button{justify-self:stretch}}
@media(max-width:580px){.illustrated-cover{border-radius:25px;padding:15px 11px 22px;border-width:2px}.illustrated-cover::before{font-size:29px;letter-spacing:5px}.cover-garland{font-size:15px;right:0;top:0}.cover-school-name{font-size:15px;line-height:1.5;padding:7px 11px;max-width:85%;border-width:2px}.cover-top{min-height:50px}.cover-stage,.admin-cover .cover-stage{grid-template-columns:1fr;min-height:0;gap:0;display:flex;flex-direction:column-reverse}.cover-school{transform:none;max-width:250px;margin:-1px auto -6px}.cover-school>img{max-height:195px}.cover-school-tag{bottom:1px;font-size:9px}.cover-center{padding:5px 0}.cover-award{font-size:39px}.cover-ribbon{font-size:10px;padding:4px 13px}.cover-center h1,.admin-cover .cover-center h1{font-size:36px;line-height:1.21;margin:5px 0}.cover-center p{font-size:11px;line-height:1.7;margin:8px 5px 0}.cover-topics{gap:7px;margin-top:17px}.topic{min-height:100px;padding:11px 3px 12px;border-radius:18px;border-width:2px}.topic strong{font-size:11px;line-height:1.4}.topic-icon{font-size:26px}.cover-footer{font-size:10px;padding:9px 6px;margin:18px auto 3px}.cover-footer b{margin:0 2px}.cover-credits{margin:13px auto 0!important;gap:5px;justify-content:center}.cover-credits span{font-size:9px;padding:5px 7px!important}.cover-main-button{font-size:17px;min-width:205px;padding:9px 14px;margin-top:17px}.dashboard-title{padding:15px 12px}.dashboard-title h2{font-size:18px}.dashboard-title p{font-size:10px}.dashboard-title img{width:84px}.admin-page .action-grid{grid-template-columns:repeat(2,1fr);gap:8px}.admin-page .action-tile{min-height:96px}.admin-page .action-tile>span{font-size:25px}.password-panel{padding:14px}.password-head h3{font-size:16px}.password-head p{font-size:11px}.password-fields{grid-template-columns:1fr}.password-fields button{width:100%}.password-head .subtle-btn{font-size:12px}}
@media print{.illustrated-cover,.password-panel,.dashboard-title{display:none!important}}

/* Design from the approved colorful elementary-school poster */
body{background:linear-gradient(180deg,#e7f5ff 0%,#f6eafb 35%,#fff5f9 74%,#eafcf3 100%)}
.topbar{max-width:940px;height:auto;min-height:83px}.shell{max-width:940px;padding:5px 16px 32px}
.poster-card{max-width:780px;margin:3px auto 18px;border-radius:29px;padding:6px;background:linear-gradient(135deg,#fce4f2,#e1c4ff,#e9faff);border:2px solid #e2afdf;box-shadow:0 12px 0 #d0a5d45c,0 24px 55px #633d9b25;overflow:hidden}
.poster-card>img{display:block;width:100%;height:auto;border-radius:23px}
.challenge-poster,.poster-crop{position:relative}
.poster-hotspot{position:absolute;background:transparent;color:transparent;border:0;box-shadow:none;cursor:pointer;z-index:2;display:block}
.poster-hotspot:focus-visible{outline:5px solid #f6df36;outline-offset:-6px;background:#f8e3ff35;border-radius:36px}
.poster-start{top:69.9%;left:22%;width:56%;height:9.1%;border-radius:55px}
.game-summary{text-align:center;color:#5e3981;font-weight:900;font-size:13px;padding:12px;background:#fffbffef;border:2px solid #ebcaed;border-radius:18px;box-shadow:0 8px 16px #8a57aa18;max-width:780px;margin:10px auto 18px;line-height:2}.game-summary span{color:#d78aae;margin:0 5px}
.signup-card{background:linear-gradient(145deg,#fffefc,#fff0f9,#eef8ff);border:3px solid #ddb6e9;outline:2px solid #fff;box-shadow:0 16px 40px #bc76b22b}
.signup-card h2{color:#65308f}.signup-card .primary-btn,.primary-btn{background:linear-gradient(120deg,#b653cb,#7b3fb7);border:2px solid #f9d684;box-shadow:0 6px 0 #75419c3f,0 12px 22px #ad7cc557}
.stat-band{max-width:780px;background:linear-gradient(112deg,#e8faf1,#fff0f9,#e6f1ff);border:2px solid #e4beed}
.admin-poster{max-width:780px}.poster-crop{position:relative;aspect-ratio:1024/830;overflow:hidden;border-radius:22px}.poster-crop>img{display:block;width:100%;height:auto;border-radius:22px}
.admin-hotspot{top:57%;height:26%;width:19%;border-radius:20px}.pdf-hotspot{left:29%;}.delete-hotspot{left:49%;}.refresh-hotspot{left:70%;}.entry-hotspot{top:84%;left:35%;width:45%;height:14%;border-radius:60px}
.login-panel{background:linear-gradient(145deg,#fffefc,#ffeffa,#eafbff);border:3px solid #e5c3ee}
.admin-page .dashboard-stats{margin-top:16px}.admin-page .action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-page .action-tile{border:2px solid #d6b1ee;background:linear-gradient(135deg,#f1e5ff,#fff6ff);border-radius:21px;box-shadow:0 8px 0 #ded0ec63,0 13px 18px #b580c02e}.admin-page .action-tile:nth-child(6n+1){background:linear-gradient(155deg,#e9faed,#bff0d3)}.admin-page .action-tile:nth-child(6n+2){background:linear-gradient(155deg,#fff2fa,#ffd3e5)}.admin-page .action-tile:nth-child(6n+3){background:linear-gradient(155deg,#eaf8ff,#c7e9ff)}.admin-page .action-tile:nth-child(6n+4){background:linear-gradient(155deg,#eaf6ff,#d3dafa)}.admin-page .action-tile:nth-child(6n+5){background:linear-gradient(155deg,#f7edff,#e5cfff)}.admin-page .action-tile:nth-child(6n+6){background:linear-gradient(155deg,#fff2f6,#ffe7ed)}
.admin-page .records{border:2px solid #d8b6e9}.admin-page .records thead th{background:linear-gradient(125deg,#f0d9fa,#fbe0ee,#dff2ff)}
@media(max-width:590px){.topbar{padding:9px 13px}.brand{gap:8px}.brand .moe{width:61px;height:49px;border-radius:12px}.brand strong{font-size:12px}.brand-caption{font-size:10px}.admin-link{font-size:12px;padding:7px 10px}.shell{padding:4px 9px 23px}.poster-card{padding:3px;border-radius:19px}.poster-card>img,.poster-crop,.poster-crop>img{border-radius:15px}.poster-start{top:69.7%;left:22%;width:56%;height:9.1%}.game-summary{font-size:11px;line-height:1.9;padding:8px}.game-summary span{margin:0 1px}.intro-card{padding:18px 15px}.intro-head h2{font-size:20px}.intro-head p{font-size:12px}.start-form label{min-width:100%}.start-form .primary-btn{width:100%}.stat-band{flex-wrap:wrap}.stat-band p{margin-right:0}.admin-page .action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-page .action-tile{min-height:90px}.dashboard-stats{gap:7px}.stat-tile{padding:10px 3px}.stat-tile small{font-size:10px;text-align:center}.records-controls{width:100%}.records-controls input{width:100%}}
@media print{.poster-card,.game-summary{display:none!important}}

/* Simplified administration: keep only the live total count, centered above actions */
.admin-page .dashboard-stats{display:flex;justify-content:center;align-items:center;margin:16px auto 20px;}
.admin-page .dashboard-stats .stat-tile{width:min(100%,380px);min-height:108px;background:linear-gradient(135deg,#f5eaff,#fff2f8,#e6f7ff);border:2px solid #dab7ed;box-shadow:0 8px 0 #dbc2e457,0 14px 30px #ac87c220;}
.admin-page .dashboard-stats .stat-tile strong{font-size:32px;color:#7444a5;}

/* Certificate tools in the interactive administration table */
.cert-view-btn{border:1px solid #c692dd;border-radius:12px;background:linear-gradient(125deg,#fce6f5,#eedcff);color:#69318e;font-weight:900;font-size:12px;white-space:nowrap;padding:8px 11px;min-height:41px}
.cert-view-btn:hover,.cert-view-btn:focus-visible{outline:2px solid #a86ac9;outline-offset:1px;background:#f5dcff}
.certificate-dialog{border:3px solid #ebc1e9;border-radius:22px;background:#fffbff;padding:18px;width:min(96vw,880px);max-height:95dvh;box-shadow:0 20px 90px #47225c66;direction:rtl;overflow-y:auto}
.certificate-dialog::backdrop{background:#25143eb0;backdrop-filter:blur(3px)}
.certificate-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.certificate-dialog-head h2{margin:0;color:#673595;font-size:19px}
.certificate-dialog>img{width:100%;height:auto;display:block;border-radius:10px;margin:15px auto;box-shadow:0 6px 22px #916db02e}
.certificate-dialog-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.certificate-dialog-actions a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.print-certificate-admin{display:none}
@media print{
 .admin-page #printReport[hidden], .admin-page #adminCertificatePrint[hidden]{display:none!important}
 .admin-page #adminCertificatePrint:not([hidden]){display:block!important;position:static!important}
 .admin-page #adminCertificatePrint:not([hidden]) img{display:block;width:100%;max-height:185mm;object-fit:contain;margin:0 auto}
 .admin-page #adminCertificatePrint:not([hidden])~.print-report{display:none!important}
 .admin-page .certificate-dialog{display:none!important}
}

/* Officially approved final landscape cover (1357 × 1159). Do not crop or repaint. */
.challenge-poster{max-width:1000px;}
.challenge-poster>img{width:100%;display:block;aspect-ratio:1357 / 1159;object-fit:contain;background:#d8eeff;}
.challenge-poster .poster-start{top:70.3%;left:26.0%;width:48%;height:10.2%;border-radius:999px;}
.poster-card.challenge-poster{background:linear-gradient(145deg,#f8ddf0,#e8ccfb,#d7f2fc);border:2px solid #ddb7e4;}
@media(max-width:590px){.challenge-poster .poster-start{top:70.3%;left:26%;width:48%;height:10.2%;}}
/* Ministry identity: transparent mark on the final site header */
.topbar .brand .moe{background:transparent;box-shadow:none;padding:0;}


/* رحلة النجوم قبل الشهادة - مشروع الابتدائية المستقل فقط */
.victory-overlay{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;overflow:hidden;isolation:isolate;direction:rtl;padding:16px 12px;background:radial-gradient(ellipse at 50% 32%,rgba(255,251,255,.97) 0%,rgba(250,224,246,.97) 48%,rgba(221,211,255,.98) 100%);}
.victory-overlay[hidden]{display:none!important}
.victory-overlay::before{content:"";position:absolute;width:min(95vw,620px);aspect-ratio:1;left:50%;top:48%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,247,193,.80),rgba(255,228,252,.32) 44%,transparent 70%);pointer-events:none;}
.victory-particles{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.victory-star{position:absolute;left:50%;top:50%;width:1em;height:1em;display:grid;place-items:center;opacity:0;line-height:1;font-size:var(--size,29px);filter:drop-shadow(0 3px 5px rgba(158,83,168,.16));animation:victoryStarFly var(--duration,2s) cubic-bezier(.1,.55,.3,1) var(--delay,0s) forwards;will-change:transform,opacity}
.victory-star:nth-child(3n){filter:drop-shadow(0 2px 6px rgba(247,166,55,.30))}
@keyframes victoryStarFly{0%{opacity:0;transform:translate(-50%,-50%) translate(0,7vh) scale(.14) rotate(0)}17%{opacity:1}67%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translate(var(--x),var(--y)) scale(var(--scale,1)) rotate(var(--rotate,220deg))}}
.victory-center{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:min(92vw,550px);padding:21px 15px 23px;border-radius:36px;border:3px solid rgba(255,255,255,.92);background:linear-gradient(145deg,rgba(255,255,255,.87),rgba(255,244,255,.86));box-shadow:0 20px 52px rgba(127,76,162,.18),inset 0 0 0 1px rgba(229,180,242,.50);animation:victoryPop .62s cubic-bezier(.17,1.4,.3,1) both}
@keyframes victoryPop{0%{opacity:0;transform:translateY(26px) scale(.75)}100%{opacity:1;transform:translateY(0) scale(1)}}
.victory-glow{position:absolute;top:0;left:50%;transform:translateX(-50%);height:100px;width:250px;border-radius:50%;background:radial-gradient(ellipse,#ffeaa8,transparent 72%);z-index:-1}
.victory-cup{font-size:clamp(70px,15vw,92px);line-height:1.25;filter:drop-shadow(0 8px 7px rgba(162,105,30,.15));animation:victoryCupSwing 1.2s ease-in-out .2s 1 both}
@keyframes victoryCupSwing{0%,100%{transform:rotate(0)}25%{transform:rotate(-10deg)}60%{transform:rotate(8deg)}}
.victory-label{display:inline-block;background:linear-gradient(100deg,#a362d6,#db65b4);color:#fff;border-radius:40px;padding:7px 25px;font-size:clamp(16px,4vw,20px);font-weight:900;box-shadow:0 6px 0 rgba(136,71,174,.12)}
.victory-headline{font-size:clamp(25px,6vw,38px);font-weight:900;color:#633394;line-height:1.55;margin:12px 0 3px}
.victory-subtitle{font-size:clamp(15px,4vw,19px);font-weight:800;color:#a44b8e;line-height:1.6}
.victory-spinner{display:flex;gap:11px;margin:17px 0 3px;direction:ltr}.victory-spinner span{display:block;width:11px;height:11px;border-radius:50%;background:#e3ab46;animation:victoryPulse .85s ease-in-out infinite alternate}.victory-spinner span:nth-child(2){background:#9d63d1;animation-delay:.2s}.victory-spinner span:nth-child(3){background:#e687b6;animation-delay:.4s}
@keyframes victoryPulse{from{transform:scale(.72);opacity:.56}to{transform:scale(1.25);opacity:1}}
.victory-next{font-weight:750;color:#756284;font-size:13px;margin:9px 0 10px}.victory-skip{border:2px solid #e5c8ef;background:#fff9ff;border-radius:999px;padding:9px 23px;font-size:14px;color:#713da0;font-weight:900;box-shadow:0 5px 13px #6c3b8917}
.victory-skip:hover,.victory-skip:focus-visible{outline:2px solid #b976c8;outline-offset:2px}
@media(max-width:480px){.victory-center{padding:16px 12px 19px;border-radius:28px}.victory-next{font-size:12px}.victory-cup{font-size:66px}}
@media(prefers-reduced-motion:reduce){.victory-star,.victory-center,.victory-cup,.victory-spinner span{animation:none!important}.victory-center{opacity:1;transform:none}.victory-star{display:none!important}}
@media print{.victory-overlay{display:none!important}}
