:root{--ink:#244d3c;--green:#244d3c;--dark:#173d2d;--muted:#667267;--cream:#fbfaf5;--gold:#a58b50;--line:#dfdfd2;--card:#fffef9;--radius:14px}body{background:var(--cream)}h1,h2,h3{letter-spacing:0;line-height:1.5}button,input,select{font:inherit}.top{background:var(--cream);border-bottom:1px solid var(--line);position:relative}.top-inner{max-width:1240px;padding:12px 28px;gap:24px;min-height:84px}.brand{flex-shrink:0;gap:0}.brand img{width:102px;height:72px;object-fit:contain}.brand span{display:none}.academy-links{display:flex;align-items:center;gap:26px;font-size:14px;flex:1;justify-content:center}.academy-links a{color:var(--ink);padding:6px 0;white-space:nowrap}.academy-links a[aria-current]{border-bottom:2px solid var(--gold);font-weight:bold}.tools{flex-shrink:0;gap:8px;display:flex;align-items:center}.tools .language{background:transparent;border:1px solid var(--line);border-radius:30px;font-size:12px;padding:6px 12px}.menu-toggle{display:none;background:transparent;border:1px solid var(--line);border-radius:8px;color:var(--ink);padding:7px 11px;font-size:20px}.academy-home{font-size:12px}#nav{max-width:1240px;justify-content:center;padding:0 28px 10px;font-size:12px;gap:9px}#nav a,#nav button{border-radius:8px;padding:5px 11px;white-space:nowrap}main{max-width:1240px;padding:24px 28px 45px}.home-page .btn{border-radius:8px;min-height:44px;padding:9px 18px;font-weight:600}.home-page .btn.secondary{border:1px solid #b89b58;background:#faf4e6;color:var(--ink)}.home-hero{position:relative;isolation:isolate;min-height:275px;display:flex;align-items:center;overflow:hidden;background:#eee6d7 url('/games/assets/academy-hero.jpg') center 41%/cover;border:1px solid var(--line);border-radius:16px;padding:36px 45px}.home-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#faf3e833,#faf3e8e8 58%,#faf3e8e8)}[dir=ltr] .home-hero:before{background:linear-gradient(90deg,#faf3e8e8 42%,#faf3e833)}.home-hero-copy{width:68%;position:relative;z-index:2}.home-eyebrow{font-size:12px;letter-spacing:1px;color:#886d31;margin-bottom:4px}.home-hero h1{font-size:clamp(30px,4vw,52px);margin:0 0 9px;color:#173d2d;line-height:1.4}.home-hero-copy>p:not(.home-eyebrow){font-size:19px;color:#354b3e;margin:0 0 20px}.home-hero .actions{justify-content:flex-start;gap:12px;margin:0;flex-wrap:wrap}.home-mascot{position:absolute;inset-inline-end:6%;bottom:-3px;width:200px;height:250px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 7px 7px #23452c18)}.home-progress{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#f8f5ec;border:1px solid #e2d8be;border-radius:14px;margin:18px 0;padding:15px 22px}.home-progress strong{font-size:17px}.home-progress p{margin:1px 0 0;font-size:12px}.home-stars{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.home-stars>span{font-size:25px;color:#ae9152;letter-spacing:5px;line-height:1}.home-stars>b{font-size:21px}.home-stars small{width:100%;text-align:center;color:var(--muted);font-size:11px}.home-progress .btn{font-size:12px}.category-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:1px solid var(--line);padding:5px;border-radius:13px;background:#f7f5ed}.category-tabs button{background:transparent;border:0;color:var(--ink);border-radius:9px;padding:14px 18px;display:flex;flex-direction:column;gap:2px;align-items:center}.category-tabs strong{font-size:18px}.category-tabs small{font-size:12px;color:var(--muted)}.category-tabs button[aria-pressed=true]{background:#244d3c;color:#fffbed}.category-tabs button[aria-pressed=true] small{color:#e5d8ac}.catalog-tools{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;margin:14px 0 6px}.game-search,.game-topic{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;background:#fffef9;min-height:45px;padding:0 13px;min-width:0}.game-search>span:not(.sr-only){font-size:28px;line-height:1;color:var(--muted)}.game-search input{border:0;background:transparent;color:var(--ink);width:100%;padding:10px;min-width:0;outline-offset:-2px}.game-topic select{border:0;background:transparent;color:var(--ink);width:100%;padding:9px 2px;min-width:0}.catalog-status{font-size:11px;color:var(--muted);margin:8px 0 14px}.family-heading{display:flex;gap:14px;align-items:center;justify-content:flex-start;border-bottom:1px solid #d8c8a1;margin-bottom:15px;padding-bottom:8px}.family-heading h2{font-size:23px;margin:0}.family-heading>span{font-size:25px;color:var(--gold)}.game-family{margin:24px 0 30px}.home-page .game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.home-page .game-grid.five-cards{grid-template-columns:repeat(5,minmax(0,1fr))}.home-page .home-card{padding:8px;gap:0;border-radius:13px;background:#fffef9;box-shadow:0 3px 9px #244d3c05;min-width:0;overflow:hidden;text-align:center}.card-art{height:100px;width:100%;border-radius:9px;background:#e9eddd;display:flex;justify-content:center;align-items:center;margin-bottom:8px;overflow:hidden}.approved-art{display:block;max-width:160px;width:80%;background-image:url('/games/assets/game-card-art.png');background-repeat:no-repeat;flex-shrink:0}.home-page .home-card h3{font-size:16px;line-height:1.6;margin:0 0 3px;color:var(--ink)}.home-page .card-description{font-size:11px;line-height:1.7;margin:0 4px 7px;min-height:38px;color:#647064}.card-meta{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:9px;font-size:10px;color:#796330}.card-meta span{background:#f2e6c9;border-radius:12px;padding:1px 10px}.home-page .home-card .btn{width:100%;font-size:12px;min-height:39px;padding:7px 8px;margin-top:auto;line-height:1.7;background:#244d3c;color:#fffbed}.home-card .btn:hover{background:#173d2d}.home-page .five-cards .home-card h3{font-size:14px}.arabic-art img{width:90px;height:78px;object-fit:contain}.letter-art{font-size:35px;font-weight:bold;letter-spacing:6px;color:#244d3c;background:linear-gradient(145deg,#e2ecda,#f3ead2)}.home-teacher{display:flex;align-items:center;gap:18px;background:linear-gradient(110deg,#edf0de,#f7f4e8);border:1px solid #d8dabe;border-radius:13px;padding:20px 24px;margin:22px 0 0}.home-teacher>div:nth-child(2){flex:1}.home-teacher h2{font-size:20px;margin:0 0 4px}.home-teacher p{font-size:12px;margin:0}.teacher-symbol{font-size:38px;color:#a58b50}.home-teacher .btn{font-size:12px;white-space:nowrap}.catalog-empty{text-align:center;padding:40px 15px;border:1px dashed var(--line);border-radius:14px}.catalog-empty h2{font-size:22px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}footer{background:#203e30;color:#f9f6e9;padding:20px 28px;display:flex;justify-content:center;align-items:center;gap:24px;flex-wrap:wrap;border-top:1px solid #506b4d;font-size:12px}footer a{color:#f9f6e9}footer .footer-logo{height:44px;width:64px;object-fit:contain}body .level-grid{gap:18px}.level-grid .level{border-radius:14px}.game-panel,.panel{border-radius:15px}.round-top h2{font-size:22px}.round-top .quiet{min-height:44px}.loading{padding:50px;text-align:center}@media(max-width:1000px){.academy-links{gap:15px;font-size:12px}.top-inner{gap:15px}.home-page .game-grid.five-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.home-hero{padding:30px}.home-mascot{inset-inline-end:3%}.home-hero-copy{width:70%}.home-page .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.top-inner{padding:8px 16px;min-height:75px;flex-wrap:nowrap}.brand img{width:83px;height:58px}.academy-links{display:none;position:absolute;top:73px;inset-inline:12px;padding:18px;background:#fffef9;border:1px solid var(--line);border-radius:12px;z-index:30;box-shadow:0 8px 25px #244d3c1a;flex-direction:column;align-items:stretch}.academy-links.is-open{display:flex}.menu-toggle{display:block}.academy-home{display:none}.tools .language{font-size:12px;padding:6px 10px}#nav{padding:0 12px 9px;justify-content:flex-start;font-size:11px;gap:4px}#nav a,#nav button{padding:5px 9px}main{padding:14px 14px 30px}.home-hero{min-height:220px;padding:22px 18px;align-items:flex-start;border-radius:12px}.home-hero-copy{width:70%}.home-eyebrow{font-size:10px;letter-spacing:.3px}.home-hero h1{font-size:30px;line-height:1.5;margin-bottom:8px}.home-hero-copy>p:not(.home-eyebrow){font-size:13px;line-height:1.8;margin-bottom:15px}.home-hero .actions{gap:8px;display:flex;flex-direction:column;align-items:flex-start}.home-hero .btn{font-size:12px;padding:8px 12px;min-height:42px}.home-mascot{width:122px;height:185px;inset-inline-end:-1%;bottom:-1px}.home-progress{display:grid;grid-template-columns:1fr auto;gap:12px;padding:13px 15px;margin:14px 0}.home-progress .home-stars{gap:5px}.home-stars>span{font-size:20px;letter-spacing:1px}.home-stars small{font-size:10px}.home-progress .btn{grid-column:1/-1;text-align:center;width:100%;min-height:42px}.home-progress strong{font-size:15px}.home-progress p{font-size:10px}.category-tabs button{padding:10px 5px;min-height:70px}.category-tabs strong{font-size:16px}.catalog-tools{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px;margin-top:12px}.game-search,.game-topic{padding:0 8px;min-height:44px}.game-search input,.game-topic select{font-size:11px;padding-inline:4px}.game-search>span:not(.sr-only){font-size:22px}.catalog-status{font-size:10px}.home-page .game-grid,.home-page .game-grid.five-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.family-heading{margin-bottom:12px}.family-heading h2{font-size:21px}.game-family{margin:22px 0 26px}.home-page .home-card{padding:7px}.card-art{height:87px;margin-bottom:7px}.approved-art{max-width:125px;width:90%}.home-page .home-card h3,.home-page .five-cards .home-card h3{font-size:13px;line-height:1.7;margin-bottom:4px}.home-page .card-description{font-size:10px;line-height:1.8;min-height:36px;margin-inline:1px}.home-page .home-card .btn{min-height:42px;font-size:11px;padding:8px 4px}.card-meta{font-size:9px;gap:4px;margin-bottom:7px}.card-meta span{padding:1px 7px}.arabic-art img{width:75px;height:65px}.letter-art{font-size:29px;letter-spacing:4px}.home-teacher{padding:18px;flex-wrap:wrap;gap:12px}.home-teacher h2{font-size:17px}.home-teacher p{font-size:11px}.teacher-symbol{font-size:28px}.home-teacher .btn{width:100%;text-align:center}.round-top h2{font-size:18px}footer{gap:14px;padding:20px 15px;font-size:11px}}@media(max-width:350px){.home-hero h1{font-size:25px}.home-mascot{width:102px}.home-hero-copy{width:73%}.home-progress{grid-template-columns:1fr}.home-page .home-card h3{font-size:12px}.catalog-tools{grid-template-columns:1fr}.home-stars{justify-content:flex-start}.home-stars small{text-align:start}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.home-card,.home-page .btn{transition:none}}
