@font-face{font-family:Tajawal;font-style:normal;font-display:swap;font-weight:400;src:url(./tajawal-arabic-400-normal-CyCXRvzh.woff2)format("woff2"),url(./tajawal-arabic-400-normal-DCQxawbB.woff)format("woff")}@font-face{font-family:Tajawal;font-style:normal;font-display:swap;font-weight:500;src:url(./tajawal-arabic-500-normal-BZ8ojJNu.woff2)format("woff2"),url(./tajawal-arabic-500-normal-CbVEaYEW.woff)format("woff")}@font-face{font-family:Tajawal;font-style:normal;font-display:swap;font-weight:700;src:url(./tajawal-arabic-700-normal-D2-eand5.woff2)format("woff2"),url(./tajawal-arabic-700-normal-9L7Zusdl.woff)format("woff")}@font-face{font-family:Tajawal;font-style:normal;font-display:swap;font-weight:800;src:url(./tajawal-arabic-800-normal-TQp-UTiE.woff2)format("woff2"),url(./tajawal-arabic-800-normal-Bp_4IW2m.woff)format("woff")}@font-face{font-family:Tajawal;font-style:normal;font-display:swap;font-weight:500;src:url(./tajawal-latin-500-normal-CoYeBiSI.woff2)format("woff2"),url(./tajawal-latin-500-normal-DU9v6xgj.woff)format("woff")}@font-face{font-family:Tajawal;font-style:normal;font-display:swap;font-weight:700;src:url(./tajawal-latin-700-normal-BypgxfGb.woff2)format("woff2"),url(./tajawal-latin-700-normal-CV3bxpHe.woff)format("woff")}:root{color:#293e4a;font-synthesis:none;--ink:#293e4a;--muted:#5e6c67;--blue:#2c5878;--blue-dark:#193f5c;--coral:#de7965;--gold:#efc461;--line:#dedfd7;--paper:#fffdf7;background:#f5f3ee;font-family:Tajawal,sans-serif}*{box-sizing:border-box}body{background-image:radial-gradient(#5b72751b .7px,#0000 .7px);background-size:20px 20px;min-width:280px;margin:0}body:before,body:after{content:"";pointer-events:none;z-index:-1;border:1px solid #d6dcd655;border-radius:50%;width:490px;height:490px;position:fixed}body:before{top:15%;left:-400px;box-shadow:0 0 0 75px #dce2dc35,0 0 0 150px #dce2dc25}body:after{bottom:-410px;right:-110px;box-shadow:0 0 0 80px #e8cfb520,0 0 0 160px #e8cfb515}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;border:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline-offset:5px;outline:3px solid #95611d}[hidden]{display:none!important}svg{fill:currentColor;flex:none;width:1em;height:1em;display:block}[data-icon]{justify-content:center;align-items:center;display:inline-flex}.app-shell{max-width:1120px;padding:max(25px, env(safe-area-inset-top)) 44px max(20px, env(safe-area-inset-bottom));flex-direction:column;min-height:100dvh;margin:auto;display:flex}.site-header{justify-content:space-between;align-items:center;gap:16px;display:flex}.brand{align-items:center;gap:11px;display:flex}.brand-mark{background:var(--blue);color:#f4dd9e;border-radius:13px;width:44px;height:44px;font-size:29px;transform:rotate(-7deg);box-shadow:0 3px #1a3c54}.brand-name{font-size:29px;font-weight:800;line-height:1.2;display:block}.brand-name>span{color:#566e7c;font-size:19px;font-weight:700}.brand-byline{color:var(--muted);margin-top:3px;font-size:12px;display:block}.header-actions{gap:8px;display:flex}.icon-button{background:#fffdf7;border:1px solid #d9ded7;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;font-size:23px;transition:background .18s,transform .18s;display:inline-flex}.icon-button[aria-pressed=true]{color:#fffdf7;background:var(--blue);border-color:var(--blue)}main{outline:none;width:100%;max-width:460px;margin:26px auto 0}.game-heading{text-align:center;margin-bottom:25px}.eyebrow{color:var(--muted);justify-content:center;align-items:center;gap:6px;margin:0 0 9px;font-size:12px;font-weight:700;display:flex}.eyebrow [data-icon]{color:#9b7643;font-size:17px}h1{margin:0;font-size:34px;font-weight:800;line-height:1.4}h1>span{color:#68879a}.intro{color:var(--muted);margin:6px 0 0;font-size:14px;line-height:1.6}.scoreboard{grid-template-columns:1fr 48px 1fr;align-items:center;gap:10px;margin-bottom:21px;display:grid}.player-score{background:#fbfaf5;border:1px solid #dfe1d9;border-radius:16px;align-items:center;gap:10px;padding:13px 14px 11px;transition:border-color .2s,background .2s,box-shadow .2s;display:flex}.player-score.active.you{background:#fcf1e9;border-color:#e7b9a8;box-shadow:0 3px #edd7c9}.player-score.active.computer{background:#fbf4df;border-color:#e6d09a;box-shadow:0 3px #eaddb7}.player-name{flex:1;font-size:15px;font-weight:800}.player-name>span{color:var(--muted);white-space:nowrap;margin-top:3px;font-size:12px;font-weight:500;display:block}.player-score>strong{font-size:27px;font-weight:800;line-height:1}.mini-disc{border-radius:50%;flex-shrink:0;place-items:center;width:31px;height:31px;display:grid}.mini-disc.coral{background:#e48a76;box-shadow:inset 0 2px 1px #ffc8b2,0 3px #b95848}.mini-disc.gold{background:#edc562;box-shadow:inset 0 2px 1px #fff1b1,0 3px #bc903d}.mini-disc i{border:1px solid #a4453445;border-radius:50%;width:18px;height:18px}.mini-disc.gold i{border-color:#996c2445;border-radius:3px;width:13px;height:13px;transform:rotate(45deg)}.draw-score{color:var(--muted);flex-direction:column;align-items:center;gap:3px;font-size:12px;display:flex}.draw-score>span:first-child{color:#697b7d;font-size:19px;font-weight:700}.arena{width:100%}.turn-banner{align-items:center;gap:11px;min-height:67px;padding:4px 6px 7px;display:flex}.turn-icon{color:#a65141;background:#f3e2d8;border-radius:13px;flex-shrink:0;width:40px;height:40px;font-size:23px}.turn-banner.computer-turn .turn-icon{color:#88682e;background:#f3e9c8}.turn-banner h2{margin:0;font-size:20px;font-weight:800;line-height:1.4}.turn-banner p{color:var(--muted);margin:2px 0 0;font-size:12px;line-height:1.6}.turn-count{white-space:nowrap;color:var(--muted);background:#faf8f0;border:1px solid #dfdfd4;border-radius:8px;margin-right:auto;padding:6px 8px 5px;font-size:12px}.thinking-dots{gap:3px;margin-right:2px;display:flex}.thinking-dots i{background:#b28c3d;border-radius:50%;width:4px;height:4px;animation:.9s ease-in-out infinite think}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}.board-wrap{-webkit-user-select:none;user-select:none;margin-top:1px;position:relative}.drop-guides{direction:ltr;grid-template-columns:repeat(7,minmax(0,1fr));height:44px;padding:0 12px;display:grid}.drop-guide{color:var(--muted);justify-content:center;align-items:center;font-size:12px;font-weight:700;display:flex;position:relative}.drop-guide>i{opacity:0;background:#e48a76;border:1px solid #da7560;border-radius:50%;width:28px;height:28px;transition:transform .15s,opacity .15s;position:absolute;transform:translateY(-4px)scale(.85);box-shadow:inset 0 2px #ffd8bd,0 3px #ba5c49}.drop-guide>i:after{content:"";border:1px solid #b4534150;border-radius:50%;position:absolute;inset:5px}.drop-guide.selected:not(.full)>i{opacity:1;transform:translateY(-2px)scale(1)}.drop-guide.selected:not(.full)>span{opacity:0}.waiting .drop-guide>i{opacity:0!important}.waiting .drop-guide>span{opacity:1!important}.finished .drop-guides{visibility:hidden}.board{background:linear-gradient(155deg,#386989,#285474 60%,#244d6d);border:1px solid #2e5871;border-radius:22px;padding:12px;position:relative;box-shadow:inset 0 2px #6890a7,inset 0 -3px #1a425e,0 9px #193f5c,0 13px #c5cfc9,0 22px 32px #2a486420}.board-columns{direction:ltr;grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.board-column{outline-offset:-1px;background:0 0;border-radius:12px;grid-template-rows:repeat(6,minmax(0,1fr));gap:7px;min-width:0;padding:4px;display:grid}.board-column:focus-visible{outline-offset:-1px;background:#b8d4dd20;outline:2px solid #f9eac0}.cell{aspect-ratio:1;pointer-events:none;background:#f1f0e8;border-radius:50%;width:100%;display:block;position:relative;box-shadow:inset 0 4px 5px #132e4a75,0 1px #6890a7}.disc{z-index:1;border-radius:50%;place-items:center;width:100%;height:100%;display:grid;position:relative}.disc.player-1{background:radial-gradient(circle at 35% 25%,#eea18a,#df7b67 58%,#ce6655);border:1px solid #b65345;box-shadow:inset 0 2px #ffd0b3,inset 0 -3px 1px #b95645,0 2px 2px #17374b55}.disc.player-2{background:radial-gradient(circle at 35% 25%,#ffe49a,#ecc35e 58%,#dbaf4b);border:1px solid #c39637;box-shadow:inset 0 2px #fff1bd,inset 0 -3px 1px #c59a3e,0 2px 2px #17374b55}.disc>i{border:1px solid #9e413347;border-radius:50%;width:65%;height:65%;box-shadow:inset 0 1px 2px #ad524022,0 1px #ffd1b34d}.disc.player-2>i{width:44%;height:44%;box-shadow:none;border-color:#a97a2355;border-radius:5px;transform:rotate(45deg)}.cell.last-move .disc:after{content:"";opacity:.6;background:#79392c;border-radius:50%;width:5px;height:5px;position:absolute}.cell.last-move .disc.player-2:after{background:#8d671e}.disc.falling{z-index:4;animation:.4s cubic-bezier(.35,.05,.65,.85) both disc-drop}.cell.winning .disc{outline-offset:2px;outline:3px solid #fffdf7;animation:.45s ease-out both win-pop}.cell.winning{z-index:2}.win-line{transform-origin:0;z-index:3;pointer-events:none;background:#fff3cc;border-radius:4px;height:4px;animation:.3s ease-out line-in;position:absolute;box-shadow:0 0 9px #ffedb18a}.board-feet{z-index:-1;justify-content:space-between;height:28px;padding:5px 29px 0;display:flex;position:relative}.board-feet>span{background:#234c68;border-radius:0 0 7px 7px;width:42px;height:22px;box-shadow:inset 0 -3px #183a53,0 3px #d4d9d0}.board-caption{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding:9px 8px 6px;font-size:12px;display:flex}.your-key,.computer-key,.how-to-win{align-items:center;gap:5px;display:inline-flex}.your-key>i,.computer-key>i{background:#cb6753;border-radius:50%;width:8px;height:8px}.computer-key>i{background:#b08a30;border-radius:2px;transform:rotate(45deg)}.how-to-win [data-icon]{font-size:15px}.game-actions{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;margin-top:19px;padding-top:16px;display:flex}.new-game{background:#fdfcf6;border:1px solid #d3dcd8;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:47px;padding:11px 16px 9px;font-size:14px;font-weight:700;transition:transform .15s,box-shadow .15s;display:flex;box-shadow:0 3px #dbe0d8}.new-game [data-icon]{font-size:18px}.new-game.confirm{color:#a65141;background:#fcf1e9;border-color:#e7b9a8;box-shadow:0 3px #edd7c9}.level{background:#fdfcf6;border:1px solid #d3dcd8;border-radius:12px;align-items:center;gap:2px;padding:2px;display:flex}.level-label{color:var(--muted);padding:0 8px 0 6px;font-size:12px}.level button{min-width:52px;min-height:44px;color:var(--muted);background:0 0;border-radius:10px;padding:8px 12px 6px;font-size:14px;font-weight:700}.level button[aria-pressed=true]{background:var(--blue);color:#fffdf7}.result-panel{text-align:center;padding-top:5px;animation:.25s ease-out panel-in}.result-panel>p{color:#5d7275;margin:6px 0 15px;font-size:14px;line-height:1.7}.primary-button{background:var(--blue);color:#fffdf5;width:100%;min-height:53px;box-shadow:0 4px 0 var(--blue-dark);border-radius:13px;justify-content:center;align-items:center;gap:12px;padding:12px 18px 10px;font-size:17px;font-weight:700;transition:transform .15s,box-shadow .15s,background .15s;display:flex}.primary-button [data-icon]{font-size:21px}.turn-banner.result .turn-icon{color:#906b20;background:#f2e6bb}.turn-banner.result h2{color:#2c5878}.site-footer{color:var(--muted);justify-content:space-between;align-items:center;gap:16px;margin-top:auto;padding-top:37px;font-size:12px;display:flex}.site-footer>span:last-child{font-weight:800}.storage-notice{color:#a05b38;text-align:center;font-size:12px;line-height:1.8}.modal{background:var(--paper);width:min(430px,100% - 32px);max-height:calc(100dvh - 32px);color:var(--ink);text-align:center;border:1px solid #dddcd0;border-radius:25px;padding:33px 27px 28px;overflow-y:auto;box-shadow:0 24px 80px #16394b40}.modal::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#263e4d70}.modal[open]{animation:.2s ease-out panel-in}.modal>.icon-button{background:0 0;border-color:#0000;font-size:20px;position:absolute;top:12px;left:12px}.modal-emblem{width:62px;height:62px;color:var(--blue);background:#e5edf0;border-radius:18px;margin:5px auto 14px;font-size:36px;transform:rotate(-5deg)}.modal h2{margin:8px 0;font-size:28px;font-weight:800}.modal p{color:#63716c;font-size:14px;line-height:1.8}.modal ol{text-align:right;color:#53646b;padding-right:22px;font-size:14px;line-height:1.8}.modal li{margin-bottom:10px;padding-right:3px}.modal .keyboard-note{font-size:12px}.example-line{justify-content:center;gap:7px;padding:13px 0;display:flex}.example-line>i{background:#e48a76;border:1px solid #d47760;border-radius:50%;width:31px;height:31px;box-shadow:inset 0 2px #ffd3ba,0 3px #be624d}.skip-link{z-index:10;color:#fff;background:var(--blue);border-radius:9px;padding:12px;position:fixed;top:10px;right:10px;transform:translateY(-180%)}.skip-link:focus{transform:none}.confetti{pointer-events:none;z-index:5;position:fixed;inset:0;overflow:hidden}.confetti>i{top:-20px;left:var(--x);background:var(--color);width:8px;height:11px;animation:confetti-fall 2s ease-in var(--delay) both;border-radius:2px;position:absolute}.paused *,.paused :before,.paused :after{animation-play-state:paused!important}@media (hover:hover){.board-column:not(:disabled):hover{background:#c4dfeb18}.icon-button:hover{background:#e7ece8}.new-game:hover{background:#eef2ed}.primary-button:hover{background:#386b8c}}.icon-button:active{transform:scale(.95)}.new-game:active{transform:translateY(2px);box-shadow:0 1px #dbe0d8}.primary-button:active{box-shadow:0 1px 0 var(--blue-dark);transform:translateY(3px)}@keyframes disc-drop{0%{transform:translateY(var(--drop-from))}76%{transform:translateY(0)}87%{transform:translateY(-9px)}to{transform:translateY(0)}}@keyframes win-pop{0%,to{transform:scale(1)}45%{transform:scale(1.09)}}@keyframes line-in{0%{opacity:0}to{opacity:1}}@keyframes panel-in{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes think{0%,70%,to{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}@keyframes confetti-fall{0%{opacity:1;transform:translate(0,0)rotate(0)}to{transform:translate3d(var(--drift), 110dvh, 0) rotate(640deg);opacity:0}}@media (width<=600px){:root{scrollbar-width:none}body::-webkit-scrollbar{width:0}.app-shell{padding:max(20px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom))}.brand-name{font-size:26px}.brand-name>span{font-size:17px}.brand-mark{border-radius:12px;width:39px;height:39px;font-size:26px}.header-actions{gap:6px}main{margin-top:26px}.game-heading{margin-bottom:22px}.eyebrow{display:none}h1{font-size:27px}.intro{font-size:13px}.scoreboard{grid-template-columns:1fr 34px 1fr;gap:7px;margin-bottom:17px}.player-score{border-radius:13px;gap:7px;padding:12px 10px 10px}.player-name{font-size:14px}.player-name>span{display:none}.mini-disc{width:27px;height:27px}.mini-disc i{width:16px;height:16px}.mini-disc.gold i{width:11px;height:11px}.player-score>strong{font-size:24px}.turn-banner{gap:9px;min-height:65px;padding-left:0;padding-right:0}.turn-banner h2{font-size:18px}.turn-icon{border-radius:11px;width:35px;height:37px;font-size:22px}.turn-count{padding:5px 7px}.thinking-dots{display:none}.board{border-radius:18px;padding:9px}.board-column{gap:6px;padding:3px}.drop-guides{height:40px;padding:0 10px}.drop-guide>i{width:25px;height:25px}.board-feet{height:26px;padding-left:23px;padding-right:23px}.board-feet>span{width:34px}.board-caption{padding:8px 4px 5px}.game-actions{gap:12px;margin-top:18px;padding-top:17px}.new-game{padding:10px 13px;font-size:13px}.site-footer{padding-top:30px}}@media (width>=360px) and (width<=389px){.board-wrap{margin-left:-7px;margin-right:-7px}.board{padding:2px}.drop-guides{padding:0 3px}}@media (width<=359px){.app-shell{padding-left:12px;padding-right:12px}.header-actions{gap:3px}.brand{gap:8px}.brand-name{font-size:24px}.brand-name>span{font-size:15px}h1{font-size:24px}.scoreboard{grid-template-columns:1fr 28px 1fr;gap:5px}.player-score{gap:6px;padding:10px 8px}.mini-disc{width:24px;height:24px}.board-wrap{margin-left:-7px;margin-right:-7px}.board{border-radius:13px;padding:0}.board-column{padding:3px}.drop-guides{padding:0}.turn-count{display:none}.board-caption{padding-left:0;padding-right:0}.level-label{display:none}.how-to-win{gap:3px}}@media (height<=760px){main{margin-top:19px}.game-heading{display:none}.scoreboard{margin-bottom:10px}.turn-banner{min-height:59px}.drop-guides{height:35px}.game-actions{margin-top:13px;padding-top:13px}}@media (height<=950px) and (width>=601px){.game-heading{display:none}main{margin-top:21px}}@media (width>=600px) and (height<=800px){.site-header{width:100%;max-width:850px;margin-inline:auto}main{direction:ltr;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:0 24px;max-width:800px;margin-top:0;display:grid;position:relative}main>*{direction:rtl}.game-heading,.site-footer{display:none}.scoreboard{grid-area:1/1;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.player-score{grid-column:1/-1;min-height:59px}.draw-score{flex-direction:row;grid-column:1/-1;justify-content:center}.arena{grid-area:1/2/4;justify-self:center;width:min(100%,460px,117dvh - 315.9px)}.game-actions{flex-direction:column;grid-area:2/1;margin-top:6px;padding-top:12px}.new-game,.level{width:100%}.level button{flex:1}.result-panel{width:220px;position:absolute;top:196px;left:0}.storage-notice{grid-column:1}}@media (height<=500px) and (width>=600px){.app-shell{padding:max(8px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left))}.brand-name{font-size:25px}.brand-mark{width:37px;height:37px}.arena{width:min(100%,317px,117dvh - 175.5px)}.player-score{min-height:0;padding:9px 12px 7px}.scoreboard{gap:6px;margin-top:8px}.result-panel{top:166px}.turn-banner{min-height:35px;padding-bottom:0}.turn-banner h2{font-size:15px}.turn-icon{border-radius:9px;width:29px;height:29px;font-size:18px}.turn-count{display:none}.drop-guides{height:20px;padding:0 3px}.drop-guide>i{width:20px;height:20px}.board{border-radius:13px;padding:2px}.board-column{gap:6px;padding:3px}.board-feet,.board-caption{display:none}.result-panel>p{font-size:12px}.result-panel .primary-button{font-size:15px}}@media (height<=800px) and (width>=600px) and (width<=700px){main{grid-template-columns:180px minmax(0,1fr);gap:0 20px}.result-panel{width:180px}.result-panel .primary-button{font-size:14px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.confetti{display:none}}
