.games-intro{padding:28px 0 24px;max-width:760px}.games-intro h1{font-size:clamp(32px,5vw,48px);margin:6px 0}.games-intro p{font-size:17px;max-width:620px}.game-summary{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.game-summary>*{padding:7px 13px;border-radius:30px;background:var(--soft);font-size:13px}.game-summary strong{background:#145340;color:#fff}.game-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.game-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:18px;background:var(--paper);padding:20px;transition:transform .15s,box-shadow .15s}.game-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #143c2c12}.game-card-top{display:flex;align-items:center;gap:10px}.game-card-top svg{width:28px;height:28px;color:var(--green);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.game-card-top>span{font-size:12px;font-weight:bold;color:var(--green)}.game-card-top small{margin-left:auto;color:var(--muted)}.game-card-picture{height:128px;margin:16px 0 6px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#f1f5e9}.game-card:nth-child(3n+2) .game-card-picture{background:#fbefda}.game-card:nth-child(3n) .game-card-picture{background:#e8f0f4}.game-card-picture img{width:170px;height:120px;object-fit:contain}.game-card h2{font-size:21px;margin:10px 0 7px}.game-card p{font-size:14px;color:var(--muted);margin:0 0 20px}.game-card-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:14px;margin-top:auto;font-size:12px}.game-card-foot strong{color:var(--green);font-size:14px}.game-note{font-size:13px;color:var(--muted);margin:24px 0}.game-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 24px}.game-top>strong{font-size:20px}.game-setup,.game-board,.game-results{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:clamp(20px,4vw,40px);max-width:850px;margin:0 auto}.game-setup,.game-results{text-align:center}.game-setup h1{font-size:32px;margin:12px 0}.game-emblem{width:90px;height:90px;border-radius:28px;background:#edf2e4;color:#145340;display:grid;place-items:center;margin:auto}.game-emblem svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.game-settings{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:500px;margin:28px auto;text-align:left}.game-settings label{display:flex;flex-direction:column;font-size:14px;font-weight:700;gap:8px}.game-settings select{padding:12px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:10px;min-height:48px}.game-tip{font-size:14px;line-height:1.8;color:var(--muted);max-width:600px;margin:20px auto}.game-setup>.btn{min-width:180px;min-height:50px}.game-progress{display:flex;align-items:center;gap:16px;max-width:850px;margin:0 auto 18px;font-size:13px}.game-progress progress{flex:1;min-width:30px;height:10px;accent-color:#20714e}.game-board h2{font-size:24px;margin:0 0 12px;line-height:1.5}.game-board>p{font-size:15px;color:var(--muted)}.game-board .btn{min-height:48px;font-size:15px}.game-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;direction:rtl;margin:24px 0}.game-option{min-width:0;min-height:115px;border:2px solid var(--line);border-radius:16px;background:var(--bg);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:18px 10px;position:relative}.game-option:hover:not(:disabled){border-color:var(--green)}.game-option.picked{border-color:var(--green);background:var(--soft);box-shadow:inset 0 0 0 1px var(--green)}.game-option.picked:after{content:'✓';position:absolute;top:4px;left:8px;color:var(--green);font-size:17px;font-weight:700}.game-option:disabled{opacity:.55}.game-option .game-ar{font-size:clamp(32px,4vw,52px)}.game-ar{font-family:var(--learner-font,Quran),serif;display:block;font-size:clamp(40px,6vw,66px);line-height:2.1;letter-spacing:0;word-break:normal;overflow-wrap:normal;white-space:normal;font-weight:400;min-width:0}.game-memory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:24px;direction:rtl}.memory-cell{min-width:0;min-height:125px;border:2px solid #d7dfcb;border-radius:16px;background:#e7eedb;color:#145340;display:grid;place-items:center;font-size:42px;font-weight:700;transition:background .15s,transform .15s}.memory-cell.revealed{background:var(--paper);border-color:#b18b38}.memory-cell.matched{border-color:#347558;background:#edf6ec;opacity:1}.memory-cell .game-ar{font-size:54px}.game-target{max-width:100%;display:grid;place-items:center;min-height:170px;margin:16px auto;border-radius:20px;background:var(--soft);padding:16px}.game-target .game-ar{font-size:clamp(60px,10vw,100px)}.game-target small{font-size:14px;color:var(--muted)}.game-word{font-family:var(--learner-font,Quran),serif;text-align:center;font-size:clamp(48px,8vw,88px);line-height:2.4;margin:20px 0;background:var(--soft);border-radius:18px;padding:20px 12px;overflow-wrap:anywhere}.game-word mark{background:#f1d78b;color:#503909;border-radius:6px;box-shadow:0 3px 0 #ad832e}.text-options{direction:ltr;grid-template-columns:repeat(3,minmax(0,1fr))}.text-options .game-option{font-size:16px;min-height:86px;line-height:1.6}.basket-mark{font-family:Quran,serif;font-size:50px;line-height:1.6}.game-bridge{display:grid;grid-template-columns:1fr 40px 1fr;gap:10px;align-items:center;direction:rtl}.game-bridge .game-target{width:100%}.game-bridge>span{text-align:center;font-size:30px;color:var(--gold)}.game-bridge-end{padding:26px 10px;text-align:center;border:2px dashed var(--gold);border-radius:16px;color:var(--muted)}.game-mark-key{display:flex;gap:20px;align-items:center;justify-content:center;max-width:240px;margin:18px auto;background:var(--soft);border-radius:16px}.game-mark-key .game-ar{font-size:52px}.game-feedback{font-size:15px;line-height:1.8;margin-top:20px;border-radius:12px}.game-feedback.success{background:#eaf4e9;border:1px solid #8bb88c;color:#174c2d;padding:16px}.game-feedback.danger{background:#fff0ed;border:1px solid #cc8173;color:#8d241d;padding:16px}.game-feedback strong{display:block}.game-feedback p{margin:8px 0 0}#gameNext:not(:empty){margin-top:20px}.game-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:22px}.game-model{text-align:center;background:var(--soft);border-radius:16px;padding:10px 16px;margin:18px 0}.game-model .game-ar{font-size:clamp(38px,7vw,64px);overflow-wrap:anywhere}.game-input{font-family:var(--learner-font,Quran),serif;font-size:clamp(32px,6vw,52px);line-height:2.3;text-align:center;min-height:105px;border:2px dashed var(--gold);border-radius:16px;padding:8px 12px;overflow-wrap:anywhere}.game-placeholder{font-family:Atolye,sans-serif;color:var(--muted);font-size:14px}.game-keyboard{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;margin-top:22px}.game-key{border:1px solid var(--line);border-bottom:3px solid #bacab8;border-radius:10px;background:var(--bg);min-height:64px;padding:4px;min-width:0}.game-key .game-ar{font-size:29px;line-height:1.9}.game-parts{grid-template-columns:repeat(6,minmax(0,1fr))}.game-parts .game-option{min-height:90px}.game-train{display:flex;gap:10px;justify-content:center;margin:24px 0}.game-wagon{width:100%;min-width:0;max-width:130px;min-height:100px;border:2px dashed var(--gold);border-bottom-width:6px;display:grid;place-items:center;border-radius:14px;color:var(--muted)}.game-wagon.filled{background:var(--soft);border-style:solid;border-color:#2c6e47}.game-wagon .game-ar{font-size:44px}.result-seal{display:grid;place-items:center;font-size:55px;width:100px;height:100px;background:#e8f1d9;border:3px solid #a4ba67;border-radius:50%;color:#236241;margin:20px auto}.game-results h1{font-size:30px}.game-results-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0}.game-results-grid>div{background:var(--soft);border-radius:14px;padding:18px 8px}.game-results-grid strong{font-size:28px;display:block;color:var(--green)}.game-results-grid span{font-size:12px}.game-picture-question{margin:18px auto;max-width:360px;border-radius:20px;background:#f1f5e7;padding:12px;text-align:center}.game-picture-question img{max-width:100%;height:auto;max-height:240px;object-fit:contain}.game-picture-question figcaption{font-size:15px;color:#314e34;font-weight:700}.games-home-link{margin:20px 0;padding:22px;background:var(--paper);border:1px solid var(--line);border-radius:16px;display:flex;align-items:center;gap:20px}.games-home-link img{width:95px;height:95px;object-fit:contain}.games-home-link h2{margin:0;font-size:23px}.games-home-link p{margin:6px 0 12px;color:var(--muted);font-size:14px}
@media(max-width:1050px){.game-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.game-options{grid-template-columns:repeat(3,minmax(0,1fr))}.game-keyboard{grid-template-columns:repeat(7,minmax(0,1fr))}.game-parts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.games-intro{padding:12px 0 20px}.games-intro p{font-size:16px}.game-catalog{gap:12px}.game-card{padding:14px;border-radius:16px}.game-card h2{font-size:19px}.game-card p{font-size:14px}.game-card-picture{height:105px}.game-card-picture img{height:100px;max-width:100%}.game-card-top{gap:6px;flex-wrap:wrap}.game-card-top small{display:none}.game-card-top svg{width:22px;height:22px}.game-card-foot{align-items:flex-start;flex-direction:column;font-size:12px}.game-top{flex-wrap:wrap;margin:8px 0 18px}.game-top>strong{font-size:19px;order:-1;width:100%}.game-top .btn{font-size:14px;min-height:44px}.game-settings{gap:12px}.game-setup,.game-board,.game-results{padding:20px 14px;border-radius:17px}.game-setup h1{font-size:28px}.game-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.game-option{min-height:110px;padding:12px 6px}.game-option .game-ar{font-size:clamp(28px,7.5vw,42px);line-height:2.25}.game-board h2{font-size:21px}.game-board>p{font-size:15px}.game-progress{gap:10px;flex-wrap:wrap;font-size:12px}.game-progress progress{order:3;flex-basis:100%}.game-progress>span:last-child{margin-left:auto}.game-memory{gap:8px}.memory-cell{min-height:90px;font-size:32px;border-radius:12px}.memory-cell .game-ar{font-size:40px}.game-target{min-height:145px}.game-target .game-ar{font-size:72px}.game-word{font-size:clamp(40px,10vw,66px)}.game-keyboard{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.game-key{min-height:52px}.game-key .game-ar{font-size:26px}.game-parts{grid-template-columns:repeat(3,minmax(0,1fr))}.game-parts .game-option{min-height:80px}.game-train{gap:6px}.game-wagon{min-height:80px;font-size:14px}.game-wagon .game-ar{font-size:32px}.game-results-grid{gap:8px}.game-results-grid strong{font-size:24px}.game-results-grid span{font-size:12px}.game-picture-question{max-width:280px}.games-home-link{gap:12px;padding:16px}.games-home-link img{width:70px;height:85px}.games-home-link h2{font-size:21px}.games-home-link .btn{font-size:14px}.text-options .game-option{font-size:14px;min-height:90px}.game-feedback{font-size:15px}}
@media(max-width:370px){.game-catalog{grid-template-columns:minmax(0,1fr)}.game-card-picture{height:135px}.game-card-picture img{height:128px}.game-card-foot{flex-direction:row}.game-card h2{font-size:22px}.game-keyboard{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.game-card,.memory-cell{transition:none}.game-card:hover{transform:none}}

.game-board[data-game-type=pictures] .game-option .game-ar,.game-board[data-game-type=sound] .game-option .game-ar,.game-board[data-game-type=similar] .game-option .game-ar{font-size:64px;line-height:1.9}@media(max-width:760px){.game-memory .memory-cell .game-ar{font-size:52px}.game-board[data-game-type=vowel] .game-option .game-ar,.game-board[data-game-type=length] .game-option .game-ar,.game-board[data-game-type=marks] .game-option .game-ar{font-size:46px;line-height:2.1}}

.game-ar,.game-word,.game-input{font-palette:var(--school-palette)}
