@font-face{font-family:G1Cairo;src:url('../../assets/fonts/cairo-arabic.woff2') format('woff2');font-style:normal;font-weight:200 1000;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:G1Cairo;src:url('../../assets/fonts/cairo-latin.woff2') format('woff2');font-style:normal;font-weight:200 1000;font-display:swap}
@font-face{font-family:G1Baloo;src:url('../../assets/fonts/baloo-arabic.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:G1Baloo;src:url('../../assets/fonts/baloo-latin.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap}
.g1-page{--ink:#294c3b;--muted:#536a5a;--paper:#fffdf7;--accent:#487d46;--light:#eaf2df;--edge:#d5dfc9;--shadow:#c0d2ad;margin:0;background:#f7f8ed;color:var(--ink);font:500 22px/1.8 G1Cairo,Arial,sans-serif;direction:rtl;text-align:right;-webkit-text-size-adjust:100%}
.g1-page[data-subject="english"]{--accent:#396d99;--light:#e8f1f8;--edge:#ccdfed;--shadow:#adc9dd}
.g1-page[data-subject="arabic"]{--accent:#85619b;--light:#f2eaf6;--edge:#dfcfe8;--shadow:#cbb5d7}
.g1-page[data-subject="life"]{--accent:#9b6634;--light:#faf0dc;--edge:#ead8ba;--shadow:#d8bd93}
.g1-page *{box-sizing:border-box}.g1-page button,.g1-page input,.g1-page select{font:inherit;color:inherit}.g1-page button,.g1-page a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}.g1-page a{color:var(--accent);text-underline-offset:5px}.g1-page img,.g1-page svg{max-width:100%}.g1-page button{cursor:pointer}.g1-page button:disabled{cursor:default;opacity:.55}.g1-page :focus-visible{outline:4px solid #d08b2c;outline-offset:5px}.g1-page h1,.g1-page h2,.g1-page h3,.g1-page p{margin:0}.g1-page h1,.g1-page h2,.g1-page h3{font-family:G1Baloo,G1Cairo,Arial,sans-serif;line-height:1.4}.g1-page h1{font-size:clamp(34px,4.4vw,54px)}.g1-page h2{font-size:32px}.g1-page h3{font-size:26px}.g1-icon{display:block;width:36px;height:36px;flex:none}.g1-topbar{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1240px;margin:auto;padding:18px 30px;border-bottom:2px solid var(--edge)}.g1-brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-family:G1Baloo,G1Cairo,sans-serif;font-size:26px;font-weight:700}.g1-brand img{width:53px;height:58px;object-fit:contain}.g1-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.g1-switch{display:inline-flex;align-items:center;gap:9px;min-height:54px;padding:5px 16px;border:2px solid var(--edge);border-radius:18px;background:var(--paper);text-decoration:none;font-size:18px;font-weight:700}.g1-wrap{max-width:1180px;margin:0 auto;padding:30px 28px 120px}.g1-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 240px;align-items:center;gap:28px;padding:34px 38px;background:var(--light);border:2px solid var(--edge);border-radius:32px;margin-bottom:34px;overflow:hidden}.g1-hero-copy{display:grid;gap:16px;justify-items:start}.g1-hero-copy p{max-width:650px}.g1-kicker{font-size:18px;font-weight:800;color:var(--accent)}.g1-hero-art{display:flex;align-items:center;justify-content:center;min-width:0}.g1-hero-art img{width:200px;max-height:235px;object-fit:contain;filter:drop-shadow(0 10px 0 #00000008)}.g1-hero-art>.g1-icon{width:180px;height:180px}.g1-primary,.g1-secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:60px;padding:10px 25px;border-radius:18px;font-size:22px;font-weight:800;text-decoration:none;transition:transform .15s,box-shadow .15s;border:2px solid var(--accent)}.g1-page .g1-primary{background:var(--accent);color:#fff;box-shadow:0 5px 0 var(--shadow)}.g1-page .g1-secondary{background:var(--paper);color:var(--accent);box-shadow:0 4px 0 var(--edge)}.g1-primary:active,.g1-secondary:active,.g1-choice:active{transform:translateY(3px);box-shadow:none}.g1-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:30px 0 20px}.g1-section-head p{font-size:18px;color:var(--muted)}.g1-unit{border:2px solid var(--edge);border-radius:28px;background:var(--paper);overflow:hidden;margin:24px 0}.g1-unit-head{display:flex;gap:18px;align-items:center;padding:23px 26px;background:var(--light);border-bottom:2px solid var(--edge)}.g1-unit-head>.g1-icon{width:54px;height:54px}.g1-unit-head p{font-size:18px;color:var(--muted)}.g1-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:24px}.g1-lesson{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;position:relative;min-width:0;padding:25px 18px;border:2px solid var(--edge);border-bottom-width:6px;border-radius:23px;background:#fff;font-size:22px;text-decoration:none}.g1-lesson p,.g1-lesson small{font-size:18px;color:var(--muted)}.g1-node{width:74px;height:74px;display:grid;place-items:center;border:2px solid var(--edge);border-radius:25px;background:var(--light);color:var(--accent);font-size:32px;font-weight:800}.g1-node .g1-icon{width:44px;height:44px}.g1-done .g1-node{background:#e6f1da;border-color:#7f9e69}.g1-done::after{content:'';position:absolute;top:12px;left:12px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#447642 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 16 5 5 11-12'/%3E%3C/svg%3E") center/27px no-repeat}.g1-goal{font-size:18px;color:var(--muted);padding:12px 20px;background:#f6f6ee;border-radius:16px}.g1-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.g1-card{min-width:0;display:flex;flex-direction:column;gap:15px;padding:25px;border:2px solid var(--edge);border-radius:26px;background:var(--paper)}.g1-card>.g1-icon{width:66px;height:66px}.g1-card p{font-size:20px}.g1-card .g1-primary,.g1-card .g1-secondary{margin-top:auto}.g1-nav{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;max-width:1180px;margin:22px auto 0;padding:0 24px}.g1-nav a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:58px;border:2px solid transparent;border-radius:18px;padding:9px 18px;text-decoration:none;font-size:20px;font-weight:700}.g1-nav a[aria-current="page"],.g1-nav .g1-selected{background:var(--light);border-color:var(--edge)}.g1-nav .g1-icon{width:28px;height:28px}.g1-progress{height:17px;border:2px solid var(--edge);border-radius:99px;background:#fff;overflow:hidden;margin:13px 0}.g1-progress-fill{height:100%;background:var(--accent);border-radius:99px;transition:width .3s ease}.g1-caption,.g1-reference{font-size:16px;color:var(--muted)}.g1-reference{line-height:1.9;margin-top:10px}.g1-book-link{display:inline-flex;align-items:center;gap:8px;font-size:18px;min-height:48px}.g1-book-link .g1-icon{width:24px;height:24px}.g1-empty,.g1-notice{padding:24px;border:2px dashed var(--edge);border-radius:22px;background:#fffdf7;margin:20px 0;font-size:20px}.g1-empty{text-align:center}.g1-notice{border-style:solid;background:#faf2dd}.g1-tabs{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}.g1-tabs button,.g1-symbol-picker button{min-height:58px;border:2px solid var(--edge);border-radius:17px;background:#fff;padding:8px 20px;font-size:22px}.g1-tabs .g1-selected,.g1-symbol-picker .g1-selected{border-color:var(--accent);background:var(--light);box-shadow:0 0 0 2px var(--accent)}.g1-parent{font-size:20px}.g1-parent p{margin-bottom:16px}.g1-table-wrap{overflow:auto;border:2px solid var(--edge);border-radius:20px}.g1-table{border-collapse:collapse;width:100%;min-width:540px;font-size:18px}.g1-table th,.g1-table td{padding:15px 18px;border-bottom:1px solid var(--edge);text-align:right}.g1-table th{background:var(--light);font-weight:800}.g1-table tr:last-child td{border-bottom:0}.g1-lab{border:2px solid var(--edge);border-radius:28px;background:#fff;padding:28px;margin:24px 0}.g1-lab-controls{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;margin:22px 0}.g1-lab-controls button{min-width:64px;min-height:64px;display:flex;align-items:center;justify-content:center;padding:10px;border:2px solid var(--edge);border-bottom-width:5px;border-radius:18px;background:var(--light)}.g1-counter{font-family:G1Baloo,G1Cairo,sans-serif;font-size:48px;min-width:80px;text-align:center}.g1-feedback{display:flex;align-items:center;justify-content:center;gap:12px;font-size:22px;font-weight:700;min-height:60px;padding:16px;margin-top:18px;border-radius:18px;line-height:1.8}.g1-feedback:empty{padding:0;min-height:0;margin:0}.g1-success{border:2px solid #93b77b;background:#edf5e5;color:#315b2d}.g1-retry{border:2px solid #dbbc7e;background:#fff5de;color:#79541e}.g1-feedback .g1-icon{width:30px;height:30px}.g1-canvas{display:flex;align-items:center;justify-content:center;min-height:220px;border-radius:22px;background:#fbfaf3;padding:24px;overflow-wrap:anywhere}.g1-symbol-picker{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;margin:24px 0}.g1-symbol-picker button{min-width:66px;font-size:32px}.g1-symbol-picker .g1-icon{width:50px;height:50px}.g1-modal{width:min(830px,calc(100% - 28px));max-height:calc(100dvh - 36px);padding:0;border:2px solid var(--edge);border-radius:30px;background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain;font:500 22px/1.8 G1Cairo,Arial,sans-serif}.g1-modal::backdrop{background:#1c362db3;backdrop-filter:blur(3px)}.g1-modal-head{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:var(--paper);border-bottom:2px solid var(--edge)}.g1-modal-head h2{font-size:28px}.g1-modal-body{padding:26px}.g1-close{display:grid;place-items:center;flex:none;width:54px;height:54px;background:#fff;border:2px solid var(--edge);border-radius:17px}.g1-close .g1-icon{width:27px;height:27px}.g1-stage{animation:g1-enter .22s ease-out}.g1-scene{display:flex;align-items:center;justify-content:center;min-height:210px;margin:12px 0 24px;border:2px solid var(--edge);border-radius:24px;background:#fff;padding:24px;overflow:hidden}.g1-step-text{font-size:26px;text-align:center;line-height:2;margin:18px auto 24px;max-width:650px;overflow-wrap:anywhere}.g1-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.g1-choice{display:flex;align-items:center;justify-content:center;gap:12px;min-height:76px;min-width:0;padding:16px 20px;border:2px solid var(--edge);border-bottom-width:5px;border-radius:20px;background:#fff;text-align:center;font-size:26px;font-weight:700;overflow-wrap:anywhere;transition:transform .15s,border-color .15s}.g1-choice>.g1-icon{width:54px;height:54px}.g1-choice[aria-pressed="true"],.g1-choice.g1-selected{background:var(--light);border-color:var(--accent)}.g1-choice.g1-success{border-color:#628e4f;background:#edf5e5}.g1-choice.g1-retry{border-color:#cba65f;background:#fff5de}.g1-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding-top:18px;margin-top:24px;border-top:2px solid var(--edge)}.g1-footer p{font-size:18px}.g1-finish{display:grid;justify-items:center;gap:22px;text-align:center;padding:28px 0}.g1-finish>.g1-icon{width:100px;height:100px}.g1-confetti{animation:g1-pop .35s ease-out}.g1-art-count{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 20px;max-width:510px;width:100%;align-items:center;justify-items:center}.g1-art-object{display:block;min-width:0}.g1-art-object .g1-icon{width:68px;height:68px}.g1-art-items{display:flex;align-items:center;justify-content:center;gap:28px;flex-wrap:wrap;max-width:100%;width:100%}.g1-art-item{display:grid;place-items:center;padding:16px;background:#f4f6eb;border:1px solid var(--edge);border-radius:24px}.g1-art-item .g1-icon{width:100px;height:100px}.g1-art-zero{display:grid;place-items:center;gap:0;min-width:190px;min-height:180px;border:3px dashed var(--edge);border-radius:25px;background:#fcfcf6}.g1-art-zero span{font:700 72px/1.3 G1Baloo,G1Cairo,sans-serif;color:var(--accent)}.g1-art-zero strong{font-size:24px}.g1-art-shape{width:190px;height:190px}.g1-art-symbol{display:grid;gap:12px;justify-items:center;min-width:0;max-width:100%}.g1-art-symbol bdi{font:600 clamp(54px,10vw,94px)/1.5 G1Baloo,G1Cairo,sans-serif;max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap;color:var(--accent)}.g1-art-symbol span{font-size:20px;text-align:center;color:var(--muted)}
@keyframes g1-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes g1-pop{0%{transform:scale(.95)}60%{transform:scale(1.03)}100%{transform:none}}
@media(hover:hover){.g1-lesson:hover,.g1-card:hover{border-color:var(--accent)}.g1-primary:hover,.g1-secondary:hover{filter:brightness(.97)}.g1-choice:hover{border-color:var(--accent)}}
@media(max-width:900px){.g1-path,.g1-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.g1-hero{grid-template-columns:minmax(0,1fr) 160px;padding:26px;gap:20px}.g1-hero-art img{width:150px}.g1-nav a{padding:8px 12px}}
@media(max-width:600px){.g1-topbar{padding:15px 17px;gap:10px;min-height:80px}.g1-brand{font-size:22px;gap:7px}.g1-brand img{width:39px;height:47px}.g1-switch{font-size:16px;min-height:48px;padding:6px 10px}.g1-actions{gap:6px}.g1-wrap{padding:22px 15px 125px}.g1-hero{grid-template-columns:minmax(0,1fr) 90px;padding:23px 18px;gap:8px;border-radius:25px}.g1-hero-copy{gap:14px}.g1-hero h1{font-size:34px}.g1-hero-copy p{font-size:20px;grid-column:1/-1}.g1-hero-art img{width:96px;max-height:130px}.g1-hero-art>.g1-icon{width:90px;height:90px}.g1-hero .g1-primary{font-size:20px;padding:9px 16px}.g1-kicker{font-size:16px}.g1-page h2{font-size:29px}.g1-page h3{font-size:25px}.g1-path,.g1-grid{grid-template-columns:minmax(0,1fr)}.g1-path{padding:17px;gap:15px}.g1-unit-head{padding:20px 17px;gap:12px}.g1-unit-head>.g1-icon{width:44px;height:44px}.g1-lesson{display:grid;grid-template-columns:66px minmax(0,1fr);text-align:right;column-gap:15px;row-gap:4px;align-items:center;padding:18px 14px}.g1-node{width:64px;height:64px;grid-row:1/4;font-size:28px;border-radius:22px}.g1-lesson p,.g1-lesson small{font-size:18px}.g1-done::after{left:8px;top:6px;width:24px;height:24px;font-size:16px}.g1-card{padding:22px}.g1-nav{position:fixed;z-index:5;inset:auto 0 0;margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fffef9f7;border-top:2px solid var(--edge);box-shadow:0 -5px 20px #294c3b0a;max-width:none}.g1-nav a{min-width:0;min-height:69px;flex-direction:column;gap:2px;padding:5px 1px;font-size:16px;line-height:1.6;border-radius:15px;white-space:normal;text-align:center}.g1-nav .g1-icon{width:27px;height:27px}.g1-section-head{margin-top:25px}.g1-section-head p{font-size:18px}.g1-lab{padding:20px 15px}.g1-lab-controls{gap:14px}.g1-canvas{padding:17px 12px;min-height:200px}.g1-modal{width:calc(100% - 16px);max-height:calc(100dvh - 18px);border-radius:23px}.g1-modal-head{padding:14px 16px;gap:12px}.g1-modal-head h2{font-size:25px}.g1-modal-body{padding:20px 15px}.g1-scene{padding:17px 12px;min-height:190px;margin-top:8px}.g1-step-text{font-size:24px;line-height:1.9}.g1-choices{gap:12px}.g1-choice{font-size:25px;padding:13px 10px;min-height:74px;gap:8px;flex-wrap:wrap}.g1-choice>.g1-icon{width:47px;height:47px}.g1-footer{gap:16px;align-items:stretch}.g1-footer .g1-primary,.g1-footer .g1-secondary{flex:1;font-size:20px;padding:9px 16px}.g1-art-count{gap:10px 8px}.g1-art-object .g1-icon{width:44px;height:44px}.g1-art-items{gap:14px}.g1-art-item{padding:12px;border-radius:19px}.g1-art-item .g1-icon{width:73px;height:73px}.g1-art-shape{width:160px;height:160px}.g1-art-symbol bdi{font-size:70px}.g1-feedback{font-size:20px;padding:14px 12px}.g1-tabs{gap:10px}.g1-tabs button{font-size:20px;padding:8px 16px}}
@media(max-width:360px){.g1-brand{font-size:20px}.g1-switch{padding:6px 8px}.g1-hero{grid-template-columns:minmax(0,1fr);padding:22px 18px}.g1-hero-art{display:none}.g1-nav a{font-size:16px}.g1-art-count{gap:8px 5px}.g1-art-object .g1-icon{width:40px;height:40px}.g1-choices{grid-template-columns:minmax(0,1fr)}.g1-choice{min-height:64px}.g1-modal-body{padding:18px 12px}.g1-art-symbol bdi{font-size:60px}}
@media(prefers-reduced-motion:reduce){.g1-page *,.g1-page *::before,.g1-page *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ربط عناصر المحرّك بالحالات التفاعلية. */
.g1-page [hidden]{display:none!important}.g1-progress-fill{display:block}.g1-brand small{display:block;font:600 15px/1.7 G1Cairo,Arial,sans-serif}.g1-connection{font-size:16px;color:var(--muted)}.g1-goal{display:block;margin-top:10px}.g1-summary{padding:20px 25px;background:var(--paper);border:2px solid var(--edge);border-radius:24px}.g1-summary>span{display:flex;align-items:center;gap:12px}.g1-unit-head{cursor:pointer;list-style:none}.g1-unit-head::-webkit-details-marker{display:none}.g1-unit-head>span:nth-child(2){flex:1;min-width:0}.g1-unit-head small{font-size:16px}.g1-unit-head h2{font-size:28px}.g1-unit-head>.g1-icon{width:28px;height:28px;transition:transform .2s}.g1-unit[open]>.g1-unit-head>.g1-icon{transform:rotate(90deg)}.g1-stage{display:grid;justify-items:center;gap:22px;text-align:center}.g1-stage>.g1-art-count{margin:auto}.g1-stage>.g1-choices{width:100%}.g1-stage>.g1-step-text{font-size:26px;line-height:1.8}.g1-stage>.g1-primary{justify-self:stretch}.g1-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.g1-choice{overflow-wrap:anywhere}.g1-choice bdi{font-size:28px}.g1-choice .g1-art-item{padding:8px}.g1-choice .g1-art-item .g1-icon{width:64px;height:64px}.g1-lab>.g1-art-count{margin:24px auto}.g1-lab h2{margin-bottom:18px}.g1-symbol-picker .g1-art-item{padding:8px}.g1-symbol-picker .g1-art-item .g1-icon{width:72px;height:72px}.g1-symbol-picker button{display:grid;justify-items:center;gap:10px;flex:1 1 120px}.g1-symbol-picker .g1-art-shape{width:100px;height:100px}.g1-trace-label{display:flex;align-items:center;gap:16px;margin:24px 0}.g1-trace-label select{border:2px solid var(--edge);border-radius:14px;padding:8px 16px;min-width:100px;min-height:58px;background:white;font-size:30px}.g1-trace-area{position:relative;border:2px dashed var(--edge);border-radius:24px;overflow:hidden;margin:20px 0;isolation:isolate;min-width:0}.g1-trace-guide{position:absolute;inset:0;display:grid;place-items:center;font:600 160px/1.4 G1Cairo,Arial,sans-serif;color:#d5ddd0;pointer-events:none}.g1-trace-area .g1-canvas{display:block;position:relative;width:100%;height:260px;min-height:0;padding:0;background:transparent;border-radius:0;touch-action:none}.g1-finish{display:grid;justify-items:center;gap:22px;padding:35px;text-align:center}.g1-finish img{object-fit:contain}.g1-footer{font-size:16px}.g1-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.g1-skip{position:fixed;z-index:10000;top:-200px;right:20px;padding:15px;background:white;border:3px solid var(--accent);border-radius:12px}.g1-skip:focus{top:10px}.g1-page{overflow-wrap:anywhere}.g1-stage .g1-feedback{width:100%}
@media(max-width:700px){.g1-topbar{padding:14px;align-items:start;gap:10px}.g1-brand img{width:36px;height:42px}.g1-brand{font-size:20px;gap:8px}.g1-brand small{font-size:14px}.g1-actions{justify-content:end}.g1-connection{font-size:14px}.g1-switch{font-size:16px;padding:6px 12px}.g1-unit-head{padding:18px 14px;gap:12px}.g1-unit-head .g1-node{width:48px;height:48px;font-size:25px;flex-shrink:0}.g1-unit-head h2{font-size:24px}.g1-unit-head>.g1-icon{display:none}.g1-stage>.g1-step-text{font-size:24px}.g1-choices{gap:12px}.g1-choice bdi{font-size:25px}.g1-summary{font-size:18px;padding:16px}.g1-choices .g1-art-count{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.g1-choices .g1-art-object .g1-icon{width:28px;height:28px}.g1-finish{padding:24px 16px}}
@media(max-width:360px){.g1-choices{grid-template-columns:1fr}.g1-hero-art{display:flex}.g1-hero-art img{height:120px;width:120px}.g1-topbar{flex-wrap:wrap}.g1-actions{width:100%;justify-content:space-between}.g1-finish .g1-primary{font-size:19px}}
@media print{.g1-nav,.g1-topbar,.g1-footer,.g1-parent>button{display:none!important}.g1-wrap{padding:0}.g1-page{background:white}.g1-parent{font-size:14px}.g1-table{min-width:0}}

[data-counter-scene]>.g1-art-count{margin:24px auto}.g1-symbol-picker{display:flex;flex-wrap:wrap;gap:16px;margin:22px 0}.g1-stage{animation:g1-enter .22s ease-out}.g1-success{animation:g1-pop .24s ease-out}.g1-unit-head>.g1-node{flex-shrink:0}.g1-lab .g1-primary{max-width:100%;white-space:normal}.g1-hero .g1-primary{white-space:normal;text-align:center}.g1-parent li{margin-block:12px}.g1-parent h2{margin-block:28px 14px}.g1-parent .g1-card h2{margin:0}.g1-table-wrap{margin-block:24px}.g1-table caption{padding:15px;text-align:start}.g1-art-operation{max-width:100%}
@keyframes g1-enter{from{opacity:.4;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes g1-pop{50%{transform:scale(1.015)}}
@media(max-width:600px){.g1-art-operation{flex-direction:column!important}.g1-art-operation>div{width:100%}.g1-art-operation .g1-icon{width:42px;height:42px}.g1-art-operation>[aria-hidden]{font-size:32px!important}.g1-symbol-picker{gap:12px}.g1-symbol-picker button{flex-basis:100px}.g1-nav a:last-child span{font-size:14px}}
/* تسميات الهاتف قصيرة كي تبقى الكلمات متصلة وواضحة. */
.g1-nav-short{display:none}.g1-skip:focus:not(:focus-visible){top:-200px}
@media(max-width:600px){.g1-nav-full{display:none}.g1-nav-short{display:block;white-space:nowrap}.g1-nav a{font-size:16px;overflow-wrap:normal}.g1-nav a:last-child span{font-size:16px}.g1-lesson{grid-template-columns:54px minmax(0,1fr);column-gap:12px}.g1-lesson .g1-node{width:50px;height:56px;font-size:25px}.g1-lesson>.g1-node{grid-row:1/3}.g1-lesson>span:nth-child(2){grid-column:2;grid-row:1/3}.g1-lesson>span:nth-child(3){display:none}.g1-goal{padding:0;background:transparent}.g1-lesson small{font-size:17px}.g1-hero{grid-template-columns:minmax(0,1fr)}.g1-hero-art{position:absolute;left:12px;bottom:98px;width:64px;opacity:.9}.g1-hero-art img{width:64px;height:86px}.g1-hero-copy{position:relative}.g1-hero-copy h1,.g1-hero-copy p{padding-left:62px}.g1-hero-copy>.g1-primary{width:100%}.g1-hero-art:has(.g1-art-items){display:none}}
/* يبقى رابط تجاوز الترويسة متاحًا بلوحة المفاتيح دون ظهوره خارج الشاشة. */
.g1-skip{clip-path:inset(50%);width:1px;height:1px;padding:0;border:0;overflow:hidden}.g1-skip:focus-visible{clip-path:none;width:auto;height:auto;top:10px;padding:15px;border:3px solid var(--accent);overflow:visible}
.g1-art-operation>div>div{justify-items:center}
/* مختبرات الصف الثاني: تكوين العدد، وترتيب الكلمات، والتصنيف. */
.g2-place-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.g2-place-controls>div{display:grid;justify-items:center;gap:12px;border:2px solid var(--edge);border-radius:20px;padding:18px 10px;background:var(--paper)}.g2-place-controls button{padding:9px;min-width:56px;min-height:56px}.g2-place-controls output{font:700 40px/1.6 G1Baloo,G1Cairo,sans-serif}.g2-target{font-size:36px;color:var(--accent)}.g2-hundred-column{display:grid;justify-items:center;gap:10px;font-size:20px;max-width:100%}.g2-hundred-panels{display:grid;grid-template-columns:repeat(3,minmax(0,76px));gap:8px;max-width:100%}.g2-groups{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;width:100%;margin:20px auto}.g2-group{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;justify-items:center;gap:6px;border:2px solid var(--edge);border-radius:18px;background:var(--light);padding:12px;max-width:100%}.g2-group-object .g1-icon{width:40px;height:40px}.g2-sentence{border:2px dashed var(--accent);border-radius:20px;background:var(--light);padding:20px;min-height:96px;margin:24px 0;display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:28px}.g2-sentence>span{font-size:20px;color:var(--muted)}.g2-word-bank{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0;justify-content:center}.g2-word-bank button{min-width:70px}.g2-lab-actions{display:flex;flex-wrap:wrap;gap:14px}.g2-category-item{display:grid;justify-items:center;gap:18px;margin:25px 0}.g2-category-item .g1-icon{width:120px;height:120px}
@media(max-width:600px){.g2-place-controls{gap:8px}.g2-place-controls>div{padding:12px 5px}.g2-place-controls h3{font-size:19px}.g2-place-controls button{min-width:50px;min-height:50px}.g2-place-controls output{font-size:34px}.g2-hundred-panels{grid-template-columns:repeat(3,minmax(0,62px))}.g2-group{gap:5px;padding:10px}.g2-group-object .g1-icon{width:34px;height:34px}.g2-sentence{font-size:25px;padding:15px}.g2-word-bank button{font-size:23px;padding:8px 14px}.g2-lab-actions{display:grid;grid-template-columns:1fr}.g2-category-item .g1-icon{width:100px;height:100px}}
.g1-art-tens,.g2-place-controls{direction:ltr}.g1-art-tens>div,.g2-place-controls>div{direction:rtl}.g2-clock{width:min(100%,280px);height:auto}.g1-choice bdi[dir="ltr"]{unicode-bidi:isolate-override}
.g2-hundred-panels{grid-template-columns:repeat(var(--g2-hundred-cols,3),minmax(0,76px))}@media(max-width:600px){.g2-hundred-panels{grid-template-columns:repeat(var(--g2-hundred-cols,3),minmax(0,62px))}}
/* مشاهد المنهاج: تبقى الأعداد والرسوم جزءًا من الشرح، ولا تغير التقدم. */
.m-learning-scene{width:100%;max-width:620px;margin:12px auto;padding:16px;background:#fffdf7;border:2px solid #d5dfcf;border-radius:20px;box-sizing:border-box;color:#294c3b;overflow-wrap:normal}
.m-learning-scene>svg{display:block;width:100%;max-width:340px;height:auto;max-height:240px;margin:auto}.m-scene-caption{margin:10px 0;text-align:center;font-size:21px;line-height:1.7}.m-equation{font-size:30px;text-align:center;unicode-bidi:isolate}.m-ten-frames{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;direction:ltr}.m-ten-frames>div{min-width:0}.m-ten-frames svg{width:100%;height:auto}.m-ten-frames .m-scene-caption{font-size:18px;direction:rtl}.m-column-wrap{display:flex;justify-content:center}.m-column{border-collapse:collapse;text-align:center;table-layout:fixed;width:min(100%,360px)}.m-column caption{font-size:25px;padding:8px;unicode-bidi:isolate}.m-column td,.m-column th{padding:9px 5px;font-size:29px;min-width:42px}.m-column thead th{font-size:18px;background:#edf4df}.m-column th:first-child{width:34px}.m-column td strong{color:#8b4d2f;display:inline-block;margin:0 3px}.m-column td s{font-size:19px;color:#758176}.m-column .m-carry td{font-size:19px;padding:2px;height:23px}.m-column-result{border-top:3px solid #385346;background:#edf4df}.m-column-result td{font-weight:800}.m-ordinal{display:flex;justify-content:space-around;gap:12px;padding:0;margin:12px 0;list-style:none}.m-ordinal li{display:grid;justify-items:center;min-width:0;gap:8px;font-size:20px}.m-ordinal svg{width:70px;height:70px;max-width:100%}.m-data-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:20px;text-align:center}.m-data-table th,.m-data-table td{border:2px solid #c4d3bc;padding:9px 5px;overflow-wrap:anywhere}.m-data-table th{background:#edf4df}.m-data-table caption{padding:8px 0;font-size:20px}.m-data-icons{display:flex;flex-wrap:wrap;justify-content:center;gap:3px}.m-data-icons .g1-icon{width:34px;height:34px}.m-survey-actions{display:flex;gap:10px}.m-learning-scene button{font:inherit;background:#edf4df;color:#294c3b;border:2px solid #98b17f;border-radius:12px;padding:10px 14px;min-height:48px;cursor:pointer}.m-learning-scene button:focus-visible{outline:3px solid #af732e;outline-offset:3px}.m-learning-scene button:disabled{opacity:.55;cursor:default}.m-survey-actions button{display:flex;align-items:center;gap:7px;flex:1;min-width:0}.m-survey-actions svg{width:38px;height:38px}.m-write-number{height:210px;position:relative;background:#fff;border:2px dashed #bccdaf;border-radius:15px}.m-write-number>span{position:absolute;inset:0;display:grid;place-items:center;font-size:120px;line-height:1;color:#b7c6af;direction:ltr;pointer-events:none;user-select:none}.m-write-number canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.m-write-number+button{margin-top:12px}.m-position{height:250px;position:relative}.m-position-ref{position:absolute;top:30%;height:42%}.m-position-ref>svg{width:100%;height:100%}.m-position-object{position:absolute;transform:translate(-50%,-50%);width:60px;height:60px}.m-position-object>svg{width:100%;height:100%}
@media(max-width:420px){.m-learning-scene{padding:10px}.m-scene-caption{font-size:19px}.m-ten-frames{gap:7px}.m-ten-frames .m-scene-caption{font-size:16px}.m-column td,.m-column th{font-size:25px;padding:7px 3px}.m-column thead th{font-size:16px}.m-data-table{font-size:17px}.m-data-icons .g1-icon{width:27px;height:27px}.m-ordinal li{font-size:17px}.m-write-number{height:170px}.m-write-number>span{font-size:100px}.m-survey-actions button{font-size:17px;padding:9px 7px}.m-survey-actions svg{width:30px;height:30px}}
