@font-face{font-family:Itqan;src:url('/assets/arabic.ttf')}*{box-sizing:border-box}body{margin:0;height:100dvh;overflow:hidden;background:linear-gradient(145deg,#e5f5ff,#f4edff);color:#122b47;font-family:Itqan,Tahoma,Arial,sans-serif}button{font:700 16px Itqan,Tahoma,Arial;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.55}header{height:52px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 10px;background:linear-gradient(130deg,#183a62,#11213c);color:#ffe49a;border-bottom:3px solid #d8af4f}header img{width:37px;height:37px;object-fit:contain;background:#fff;border-radius:8px}header strong{font-size:14px}header button,.gold{background:linear-gradient(#fff1af,#ffdc70);border:2px solid #d3a834;border-radius:13px;padding:8px 12px;color:#173653;box-shadow:0 3px 0 #ac8735}main{height:calc(100dvh - 120px);padding:8px;max-width:800px;margin:auto;display:flex;flex-direction:column;gap:6px}.topline{display:flex;justify-content:space-between;align-items:center;min-height:28px;gap:6px}h1{font-size:19px;margin:0}#round{font:bold 13px Arial;white-space:nowrap}#instruction{text-align:center;font-size:16px;margin:0;min-height:27px}#stage{flex:1;min-height:0;border:2px solid #c9d6e8;border-radius:22px;background:#ffffff8c;padding:8px;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;overflow:hidden}#status{height:30px;text-align:center;font-weight:700;font-size:16px;color:#126c52;margin:0;flex:none}footer{height:68px;position:fixed;bottom:0;inset-inline:0;display:flex;gap:8px;align-items:center;justify-content:center;background:#132e51;border-top:3px solid #d8af4f;padding:7px}footer a,footer button{flex:1;max-width:210px;text-decoration:none;text-align:center;background:linear-gradient(#ffe89c,#f6cf64);border:2px solid #d1a23a;border-radius:12px;padding:10px 6px;font:700 14px Itqan,Tahoma;color:#173653;box-shadow:0 3px 0 #9b7932}button:focus-visible,a:focus-visible{outline:3px solid #13b7bc;outline-offset:2px}.prompt-word{font:700 clamp(23px,5vw,34px) Arial;direction:ltr;margin:1px 0 3px;text-align:center}.options{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:0;flex:1}.picture{min-height:0;overflow:hidden;padding:7px;background:#fff;border:3px solid #dab85a;border-radius:18px;box-shadow:0 4px 0 #b9923f;display:flex;align-items:center;justify-content:center}.picture img{width:100%;height:100%;min-height:0;object-fit:contain;pointer-events:none}.picture.correct{border-color:#138e62;background:#dcf9e9}.picture.wrong{border-color:#d65067;animation:wiggle .25s}.hero{width:100%;flex:1;min-height:70px;max-height:48%;object-fit:contain;border-radius:14px;background:white}.listen{font-size:20px;padding:10px 25px}.memory{display:grid;width:100%;height:100%;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:9px}.memory button{min-height:0;border:2px solid #d9b34e;border-radius:15px;background:linear-gradient(135deg,#284c77,#122b48);color:#ffe28c;font-size:36px;padding:5px;overflow:hidden;box-shadow:0 4px 0 #a47e2d}.memory img{width:100%;height:100%;object-fit:contain;background:#fff;border-radius:9px}.memory .matched{border-color:#18aa78;opacity:.7}.letters{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;direction:ltr}.letters button{min-width:39px;min-height:42px;font:700 22px Arial;background:#ffe69a;color:#15314e;border:2px solid #caa344;border-radius:10px}.built{width:100%;min-height:42px;direction:ltr;text-align:center;border:2px dashed #95a8c2;border-radius:12px;padding:5px;font:700 25px Arial;letter-spacing:3px}.bubbles{width:100%;height:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;align-items:center;justify-items:center}.bubble{border-radius:50%;border:4px solid #ddb441;width:100%;height:100%;max-width:190px;max-height:190px;background:radial-gradient(circle at 30% 20%,white,#f8de91 70%);padding:15px;box-shadow:0 6px 0 #b18c30;animation:float 3s ease-in-out infinite}.bubble:nth-child(even){animation-delay:-1.5s}.bubble img{height:100%;width:100%;object-fit:contain;pointer-events:none}.bubble.correct{background:#cef8e0;border-color:#12a575;transform:scale(.93)}.mystery{position:relative;width:100%;flex:1;min-height:80px;max-height:60%;background:#fff;border-radius:16px;overflow:hidden}.mystery>img{width:100%;height:100%;object-fit:contain}.covers{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:3px}.covers button{border:1px solid #ffdf83;background:linear-gradient(135deg,#173554,#315883);color:#ffe598;font-size:25px}.text-options{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.text-options button{padding:9px 5px;border:2px solid #d4ad43;border-radius:11px;background:#ffe99e;color:#183653;font:700 16px Arial}.text-options .correct{background:#bdf0d3}.text-options .wrong{background:#ffd3d8}dialog{width:min(94vw,640px);max-height:90dvh;overflow:auto;border:3px solid #d4ac46;border-radius:22px;padding:16px;background:#edf4ff;color:#183653}dialog::backdrop{background:#0b203acc}dialog h2{font-size:21px;margin:4px 0 14px}.game-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.game-menu button{background:linear-gradient(140deg,#244972,#102842);color:#ffe79c;border:2px solid #d7af47;border-radius:18px;min-height:94px;padding:10px;box-shadow:0 5px 0 #ab8636}.game-menu b{display:block;font-size:28px}#details p{font-size:15px;line-height:1.8}.source-list{font-size:14px;line-height:1.8}#score{font-size:13px}@keyframes wiggle{50%{transform:translateX(4px)}}@keyframes float{50%{transform:translateY(-5px)}}@media(min-width:700px){.options{grid-template-columns:repeat(4,minmax(0,1fr));align-items:center}.picture{height:min(35vh,250px)}.memory{grid-template-columns:repeat(3,minmax(0,1fr));max-width:650px}.hero{max-height:50%}.bubbles{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:1fr}.text-options{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-height:650px){header{height:45px}main{height:calc(100dvh - 107px);gap:3px;padding:4px}footer{height:62px}#stage{gap:5px;padding:5px}#instruction{font-size:14px}#status{height:24px;font-size:14px}.topline{min-height:24px}h1{font-size:16px}.hero{max-height:40%}.letters button{min-height:35px;min-width:34px;font-size:20px}.built{min-height:34px;font-size:21px}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}
