/* =========================================================
   الصفحة الرئيسية لأثَر للألعاب
   الهوية المشتركة في assets/athar.css
   ========================================================= */
*{box-sizing:border-box; margin:0; padding:0;}
body{
  min-height:100vh; min-height:100dvh;
  background:var(--bg-paint); background-attachment:fixed;
  color:var(--text);
  font-family:"Thmanyah Sans","IBM Plex Sans Arabic",system-ui,sans-serif;
  font-weight:500; line-height:1.7;
  display:flex; flex-direction:column;
}
h1,h2{font-weight:700;}
button{font:inherit; cursor:pointer;}
:focus-visible{outline:3px solid var(--hl); outline-offset:3px;}

/* الشريط العلوي */
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px clamp(14px,3vw,28px); border-bottom:1px solid var(--line);
}
.brand{display:flex; align-items:center; gap:10px;}
.brand .logo{height:52px; width:auto;}
.brand-name{font-weight:700; font-size:1.3rem;}

main{flex:1; width:min(100%,1040px); margin:0 auto; padding:clamp(16px,4vw,40px);}

/* ---------- خلفية كرتونية ---------- */
:root,[data-theme="light"]{--fb-op:.22; --blob-1:#FFE3A3; --blob-2:#CDEBFF; --blob-3:#FFD3D0; --hill-1:#D6EBFF; --hill-2:#E8F3FF;}
[data-theme="navy"]{--fb-op:.18; --blob-1:rgba(245,184,32,.22); --blob-2:rgba(92,194,245,.24); --blob-3:rgba(232,85,78,.2); --hill-1:#123581; --hill-2:#0F2C6E;}
[data-theme="blue"]{--fb-op:.2; --blob-1:rgba(255,227,163,.4); --blob-2:rgba(255,255,255,.28); --blob-3:rgba(255,211,208,.35); --hill-1:#2A62D6; --hill-2:#3474DD;}
html,body{overflow-x:clip;}
.fun-bg{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;}
.topbar, main, footer{position:relative; z-index:1;}
.fun-bg .blob{position:absolute; border-radius:50%; filter:blur(10px); opacity:.2;}
.fun-bg .b1{width:44vmax; height:44vmax; left:-14vmax; top:-14vmax; background:var(--blob-1);}
.fun-bg .b2{width:50vmax; height:50vmax; right:-18vmax; top:18vh; background:var(--blob-2);}
.fun-bg .b3{width:36vmax; height:36vmax; left:22vw; bottom:-20vmax; background:var(--blob-3);}
.fun-bg .fd{position:absolute; width:var(--s); height:var(--s); border-radius:50%; background:var(--c); opacity:.2; border:2px solid rgba(10,36,99,.35);}
.fun-bg .fb{--z:calc(var(--s) * 1.7); position:absolute; width:var(--z); height:var(--z); margin:calc(var(--z) / -2) 0 0 calc(var(--z) / -2); opacity:var(--fb-op);
  transform:rotate(var(--r)); animation:fbFloat 6s ease-in-out infinite; animation-delay:calc(var(--k) * -.7s);}
.fun-bg .fb svg{width:100%; height:100%; display:block; filter:drop-shadow(0 4px 0 rgba(10,36,99,.18));}
@keyframes fbFloat{50%{transform:translateY(-12px) rotate(calc(var(--r) + 6deg));}}
.fun-bg .hills{opacity:.35; position:absolute; left:0; right:0; bottom:0; width:100%; height:clamp(70px,14vh,150px);}
.fun-bg .h1{fill:var(--hill-1);} .fun-bg .h2{fill:var(--hill-2);}
/* على الجوال: رموز أصغر وأبهت حتى لا تزاحم البطاقات */
@media (max-width:640px){
  .fun-bg .fb{--fb-op:.14; width:calc(var(--s) * .7); height:calc(var(--s) * .7); margin:calc(var(--s) * -.35) 0 0 calc(var(--s) * -.35);}
}
@media (prefers-reduced-motion:reduce){.fun-bg .fb{animation:none;}}

/* الواجهة */
.hero{text-align:center; margin-bottom:clamp(24px,5vw,44px); animation:rise .5s ease both;}
.hero-logo{width:clamp(140px,22vw,190px); height:auto; margin:0 auto; animation:floaty 5s ease-in-out infinite;}
.hero h1{font-size:clamp(2.2rem,7vw,3.6rem); line-height:1.3;}
.lead{color:var(--text-2); font-size:clamp(1rem,2.4vw,1.2rem); max-width:40ch; margin:6px auto 0;}
@keyframes floaty{50%{transform:translateY(-8px);}}
@keyframes rise{from{opacity:0; transform:translateY(14px);}}

/* بطاقات الألعاب */
.games{display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:18px;}
.game-card{
  display:flex; flex-direction:column; overflow:hidden;
  background:var(--surface); border:1px solid var(--line); border-radius:24px;
  color:inherit; text-decoration:none; box-shadow:var(--shadow);
  transition:transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .25s ease;
  animation:rise .5s .1s ease both;
}
a.game-card:hover{transform:translateY(-6px); box-shadow:0 18px 40px rgba(10,36,99,.18);}
a.game-card:active{transform:translateY(-2px) scale(.99);}

.game-art{aspect-ratio:16/9; background:var(--surface-2); display:grid; place-items:center;}
.art-tarabee{
  grid-template-columns:repeat(5,1fr); gap:6px; padding:18px 22%;
  place-items:stretch; align-content:center;
}
.art-tarabee i{display:block; aspect-ratio:1; border-radius:22%; background:var(--cell);}
.art-tarabee i.a{background:#E8554E;}
.art-tarabee i.b{background:#E59A1C;}
.art-tarabee i.c{background:#1FA971;}
a.game-card:hover .art-tarabee i{animation:pop .5s cubic-bezier(.3,1.6,.5,1) both;}
a.game-card:hover .art-tarabee i:nth-child(3n){animation-delay:.06s;}
a.game-card:hover .art-tarabee i:nth-child(3n+1){animation-delay:.12s;}
a.game-card:hover .art-tarabee .cube.drop{animation:trDrop .6s cubic-bezier(.3,1.5,.5,1) both; animation-delay:var(--d);}
a.game-card:hover .art-tarabee .cube.still{transform-box:fill-box; transform-origin:center; animation:trFlip .6s ease-in-out .5s both;}
@keyframes trDrop{from{transform:translateY(-46px); opacity:0;}}
@keyframes trFlip{50%{transform:scaleX(0);}}
@keyframes pop{0%{transform:scale(.6);} 100%{transform:none;}}

@keyframes grow{0%{transform:scaleY(.3);}}

/* ديوان: علامة الكتاب المفتوح بألوان هويته */
.art-diwan{background:#0D5C46;}
.art-diwan svg{width:46%; height:auto;}
.art-diwan .f{fill:#E0BD6A;}
.art-diwan .l{fill:none; stroke:#E0BD6A;}
.art-diwan .c{fill:none; stroke:#0D5C46;}
a.game-card:hover .art-diwan svg{animation:pop .5s cubic-bezier(.3,1.6,.5,1) both;}

/* سهمك الصاعد: مؤشر ينزل ثم يصعد */
/* سهمك الصاعد: رسم كرتوني بأعمدة وسهم سمين صاعد وعملات */
.art-sahm{--ink:#0A2463;}
[data-theme="navy"] .art-sahm,[data-theme="blue"] .art-sahm{--ink:#061230;}
.art-sahm svg{width:86%; height:84%; overflow:visible;}
.art-sahm .grid{fill:none; stroke:var(--line); stroke-width:1.5; stroke-dasharray:4 4;}
.art-sahm .bars rect{stroke:var(--ink); stroke-width:2.5;}
.art-sahm .b-red{fill:#EF4444;} .art-sahm .b-gold{fill:#F5B820;} .art-sahm .b-green{fill:#22C55E;}
.art-sahm .shine{fill:none; stroke:#fff; stroke-width:2.5; stroke-linecap:round; opacity:.55;}
.art-sahm .a-out{fill:none; stroke:var(--ink); stroke-width:11; stroke-linecap:round; stroke-linejoin:round;}
.art-sahm .a-in{fill:none; stroke:#22C55E; stroke-width:6; stroke-linecap:round; stroke-linejoin:round;}
.art-sahm .a-head{fill:#22C55E; stroke:var(--ink); stroke-width:2.5; stroke-linejoin:round;}
.art-sahm .coins ellipse{fill:#F5B820; stroke:var(--ink); stroke-width:2;}
.art-sahm .spark path{fill:#F5B820; stroke:var(--ink); stroke-width:1; transform-box:fill-box; transform-origin:center;}
.art-sahm .bars g{transform-box:fill-box; transform-origin:50% 100%;}
a.game-card:hover .art-sahm .bars g{animation:sahmBar .5s cubic-bezier(.3,1.7,.5,1) both; animation-delay:calc(var(--i) * 80ms);}
a.game-card:hover .art-sahm .arrow{animation:sahmArrow .6s cubic-bezier(.3,1.7,.5,1) .25s both;}
a.game-card:hover .art-sahm .spark path{animation:sahmTwinkle .8s ease-in-out .4s both;}
@keyframes sahmBar{from{transform:scaleY(.2);}}
@keyframes sahmArrow{from{transform:translate(-8px,8px); opacity:.3;}}
@keyframes sahmTwinkle{0%{transform:scale(0);} 60%{transform:scale(1.4);} 100%{transform:scale(1);}}

/* من سيربح التيلفون: هاتف أبو قرص على أرضية استوديو بنفسجية */
.art-phone{
  background:
    repeating-radial-gradient(circle at 50% 120%, transparent 0 22px, rgba(255,255,255,.08) 22px 24px),
    radial-gradient(80% 70% at 50% 0%, #8B5CF6, transparent 70%),
    linear-gradient(160deg,#2E1065,#4C1D95);
}
.art-phone .phone{width:54%; height:auto; overflow:visible; margin-top:5%;}
.art-phone .ph-shadow{fill:#000; opacity:.3;}
.art-phone .ph-body{fill:#7C3AED;}
.art-phone .ph-dark{fill:#4C1D95;}
.art-phone .ph-shine{fill:#fff; opacity:.2;}
.art-phone .ph-dial{fill:#F5B820; stroke:#B7791F; stroke-width:2;}
.art-phone .ph-hole{fill:#FFF7DB; stroke:#C98A12; stroke-width:1.2;}
.art-phone .ph-center{fill:#fff;}
.art-phone .ph-stop{stroke:#fff; stroke-width:3.5; stroke-linecap:round;}
.art-phone .ph-cord circle{fill:none; stroke:#C4B5FD; stroke-width:3;}
.art-phone .ph-waves path{fill:none; stroke:#F5B820; stroke-width:5; stroke-linecap:round; opacity:0;}
.art-phone .ph-handset{transform-origin:110px 64px;}
a.game-card:hover .art-phone .ph-handset{animation:phRing .9s ease-in-out;}
a.game-card:hover .art-phone .ph-waves path{animation:phWaves .9s ease-out;}
@keyframes phRing{0%,100%{transform:none;} 10%,30%,50%,70%{transform:translateY(-7px) rotate(-5deg);} 20%,40%,60%,80%{transform:translateY(-7px) rotate(5deg);}}
@keyframes phWaves{0%,100%{opacity:0;} 15%,75%{opacity:1;}}

.art-snakes svg{width:100%; height:100%; display:block;}
/* لوحة كلاسيكية خلف صورة البطل */
.art-snakes .tr{fill:#E5484D;} .art-snakes .ty{fill:#F2C230;} .art-snakes .tg{fill:#2FA862;}
.art-snakes .tb{fill:#3B82F6;} .art-snakes .tw{fill:#FFFFFF;}
.art-snakes .veil{fill:#F3F9FF; opacity:.66;}
.art-snakes .shadow{fill:#0A2463; opacity:.16;}
.art-snakes .rail{fill:none; stroke:#8A5226; stroke-width:9; stroke-linecap:round;}
.art-snakes .rail-hi{fill:none; stroke:#E3AE73; stroke-width:3; stroke-linecap:round; opacity:.9;}
.art-snakes .rung{fill:none; stroke:#B7773D; stroke-width:7; stroke-linecap:round;}
.art-snakes .body{fill:none; stroke:#2FA862; stroke-width:16; stroke-linecap:round;}
.art-snakes .spots{fill:none; stroke:#1E6B2D; stroke-width:5; stroke-linecap:round; stroke-dasharray:.1 15; opacity:.75;}
.art-snakes .head{transform-origin:146px 44px; animation:snkSway 3s ease-in-out infinite;}
.art-snakes .strip text{font-family:inherit;}
.art-snakes .stars path{fill:#F59E0B;}
a.game-card:hover .art-snakes .strip{animation:snkReel 1s cubic-bezier(.2,.7,.25,1) both;}
@keyframes snkSway{0%,100%{transform:rotate(-6deg);} 50%{transform:rotate(7deg);}}
@keyframes snkReel{to{transform:translateY(-120px);}}
@media (prefers-reduced-motion:reduce){.art-snakes .head,.art-snakes .strip{animation:none !important;}}
@keyframes wiggle{30%{transform:translateX(-3px);} 60%{transform:translateX(3px);}}

.art-crime{background:#0C0E12;}
.art-crime svg{width:100%; height:100%;}
.art-crime .body{fill:none; stroke:#F4F1EA; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; opacity:.9;}
.art-crime .blood{fill:#C8102E;}
.art-crime .mk path{fill:#F2C230;}
.art-crime .tape path{fill:#F2C230;}
.art-crime .tape .ink{fill:none; stroke:#141414; stroke-width:4;}
a.game-card:hover .art-crime .tape{animation:tapeShake .5s ease both;}
@keyframes tapeShake{30%{transform:translateY(2px) rotate(.6deg);} 60%{transform:translateY(-1px) rotate(-.4deg);}}

/* جرس أثَر */
.art-buzzer{background:linear-gradient(160deg,#0A2463,#1547A8);}
.art-buzzer svg{width:100%; height:100%;}
.art-buzzer .base{fill:#06183F;}
.art-buzzer .cap{fill:#5CC2F5; transform-origin:80px 66px; transition:transform .15s ease;}
.art-buzzer .shine{fill:none; stroke:#fff; stroke-width:4; stroke-linecap:round; opacity:.55;}
.art-buzzer .waves path{fill:none; stroke:#BFE3FC; stroke-width:4; stroke-linecap:round; opacity:.7;}
a.game-card:hover .art-buzzer .cap{transform:scaleY(.82);}
a.game-card:hover .art-buzzer .waves{animation:buzzWave .6s ease infinite alternate;}
@keyframes buzzWave{to{opacity:.25;}}
.art-fleet{background:linear-gradient(160deg,#062B4F,#0E7490);}
.art-fleet svg{width:100%; height:100%;}
.art-fleet .grid rect{fill:rgba(191,227,252,.22);}
.art-fleet .grid .hit{fill:#F97316;}
.art-fleet .grid .trap{fill:#EF4444;}
.art-fleet .grid .miss{fill:rgba(34,211,238,.55);}
.art-fleet .scope{fill:#061A4A; stroke:#5CC2F5; stroke-width:3;}
.art-fleet .rings{fill:none; stroke:#5CC2F5; stroke-width:1; opacity:.4;}
.art-fleet .sweep{fill:#8FD0FA; opacity:.45; transform-origin:42px 46px;}
.art-fleet .ship{fill:#fff;}
.art-fleet .blip{fill:#F97316;}
a.game-card:hover .art-fleet .sweep{animation:fleetSweep 1.6s linear infinite;}
a.game-card:hover .art-fleet .grid .hit{animation:pop .5s cubic-bezier(.3,1.6,.5,1) both; transform-box:fill-box; transform-origin:center;}
@keyframes fleetSweep{to{transform:rotate(360deg);}}
.art-huroof{background:linear-gradient(160deg,#1547A8,#3B98EA);}
.art-huroof svg{width:100%; height:100%;}
.art-huroof .sheet{transform:rotate(-3deg); transform-origin:80px 46px;}
.art-huroof .sheet rect{fill:#fff;}
.art-huroof .rl,.art-huroof .cl{stroke:rgba(30,111,224,.22); stroke-width:1.4;}
.art-huroof .mg{stroke:rgba(229,72,77,.6); stroke-width:1.6;}
.art-huroof .ink{fill:none; stroke:#1E6FE0; stroke-width:2.4; stroke-linecap:round; stroke-dasharray:90; stroke-dashoffset:0;}
.art-huroof .pb{fill:#F5B700;} .art-huroof .pt{fill:#F4D9A8;} .art-huroof .pe{fill:#F08A9B;}
.art-huroof .pen{transition:transform .4s ease;}
.art-huroof .lc{fill:#fff; stroke:#E5484D; stroke-width:2.5;}
.art-huroof .lt{fill:#E5484D; font-size:17px; font-weight:700; font-family:inherit;}
a.game-card:hover .art-huroof .pen{animation:huroofPen 1s ease-in-out infinite alternate;}
a.game-card:hover .art-huroof .ink{animation:huroofInk 1.2s ease both;}
@keyframes huroofPen{to{transform:translate(-14px,-4px) rotate(-3deg);}}
@keyframes huroofInk{from{stroke-dashoffset:90;}}

/* معارك: خريطة حملة على رَقّ وراية تنغرس فوق الحصن */
.art-maarek{background:#E9DBBB;}
.art-maarek svg{width:100%; height:100%;}
.art-maarek .sea{fill:#CFE5F6;}
.art-maarek .land{fill:#F4EAD3;}
.art-maarek .rg{opacity:.62;}
.art-maarek .r1{fill:#E8554E;} .art-maarek .r2{fill:#E59A1C;} .art-maarek .r3{fill:#1FA971;}
.art-maarek .bd{fill:none; stroke:rgba(90,66,36,.5); stroke-width:1; stroke-dasharray:3 2;}
.art-maarek .coast{fill:none; stroke:#5A4224; stroke-width:1.6;}
.art-maarek .fort path{fill:#FFFFFF; stroke:#0A2463; stroke-width:1.4; stroke-linejoin:round;}
.art-maarek .fort .door{fill:#0A2463;}
.art-maarek .pole{stroke:#0A2463; stroke-width:1.6; stroke-linecap:round;}
.art-maarek .cloth{fill:#C8252C;}
.art-maarek .flag{transform-origin:80px 41px;}
a.game-card:hover .art-maarek .flag{animation:maarekPlant .6s cubic-bezier(.5,0,.6,1.4) both;}
a.game-card:hover .art-maarek .cloth{transform-box:fill-box; transform-origin:0 50%; animation:maarekWave .8s ease-in-out .5s infinite alternate;}
@keyframes maarekPlant{from{transform:translateY(-24px); opacity:0;} to{transform:none; opacity:1;}}
@keyframes maarekWave{to{transform:skewY(-8deg) scaleX(.92);}}

/* سِجَال: ساحة ليلية، حبل إنارة وجوالات ترتفع نحو نجمة */
.art-fazaa{background:radial-gradient(80% 70% at 50% 0%,#3A2470,#170F33 70%);}
.art-fazaa svg{width:100%; height:100%;}
.art-fazaa .wire{fill:none; stroke:rgba(255,233,200,.45); stroke-width:1.2;}
.art-fazaa .bulbs circle{fill:#FFD877; filter:drop-shadow(0 0 3px rgba(255,201,74,.8));}
.art-fazaa .bulbs circle:nth-child(3n+1){fill:#FF8A5B;} .art-fazaa .bulbs circle:nth-child(3n+2){fill:#5CC2F5;}
.art-fazaa .wave{fill:none; stroke:#FFC94A; stroke-width:1.6; stroke-dasharray:3 4; stroke-linecap:round; opacity:.85;}
.art-fazaa .star{fill:#FFC94A;}
.art-fazaa .ph rect:first-child{stroke:rgba(0,0,0,.3);}
.art-fazaa .p1 rect:first-child{fill:#E8554E;} .art-fazaa .p2 rect:first-child{fill:#E59A1C;} .art-fazaa .p3 rect:first-child{fill:#1FA971;} .art-fazaa .p4 rect:first-child{fill:#8257E5;}
.art-fazaa .sc{fill:#fff; opacity:.9;}
a.game-card:hover .art-fazaa .ph{animation:fazaaBob .7s ease-in-out infinite alternate;}
a.game-card:hover .art-fazaa .p2,a.game-card:hover .art-fazaa .p4{animation-delay:-.35s;}
a.game-card:hover .art-fazaa .bulbs circle{animation:fazaaChase 1s ease-in-out infinite;}
a.game-card:hover .art-fazaa .wave{animation:fazaaFlow .8s linear infinite;}
@keyframes fazaaBob{to{transform:translateY(-6px);}}
@keyframes fazaaChase{50%{opacity:.35;}}
@keyframes fazaaFlow{to{stroke-dashoffset:-14;}}

.art-soon span{font-size:4rem; font-weight:700; color:var(--text-2); opacity:.5;}

.game-body{padding:18px 20px 20px; display:flex; flex-direction:column; flex:1;}
.game-body h2{font-size:1.6rem; line-height:1.4;}
.game-body p{color:var(--text-2); margin-bottom:12px;}
.tags{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px;}
.tags span{font-size:.8rem; padding:2px 10px; border-radius:999px; background:var(--surface-2); color:var(--text-2);}
.play{
  margin-top:auto; align-self:flex-start;
  padding:10px 22px; border-radius:14px; font-weight:700;
  background:var(--accent); color:var(--on-accent);
}
.soon{opacity:.7;}
.soon .play{background:var(--surface-2); color:var(--text-2);}

.foot{text-align:center; padding:20px; color:var(--text-2); font-size:.85rem; border-top:1px solid var(--line);}
.foot .credits{font-size:.72rem; opacity:.8; margin-top:4px;}
.foot a{color:inherit;}

@media (max-width:600px){
  .brand .logo{height:44px;}
  .brand-name{font-size:1.1rem;}
  .theme-dot{width:26px; height:26px;}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important; transition:none !important;}
}

/* على السَّوم: حرّاج سيارات بالليل */
.art-haraj{background:linear-gradient(180deg,#1A1F27,#14171C);}
.art-haraj svg{width:100%; height:100%;}
.art-haraj .rope{fill:none; stroke:#C9C2B0; stroke-width:1; opacity:.7;}
.art-haraj .f1{fill:#E8554E;} .art-haraj .f2{fill:#FFC21A;} .art-haraj .f3{fill:#1E6FE0;} .art-haraj .f4{fill:#1FA971;}
.art-haraj .floor{fill:#2A2F37;}
.art-haraj .pline{stroke:#FFC21A; stroke-width:2;}
.art-haraj .body{fill:#F4F6F8; stroke:#07090C; stroke-width:4; stroke-linejoin:round;}
.art-haraj .glass{fill:#9CC9E8; stroke:#07090C; stroke-width:3.5; stroke-linejoin:round;}
.art-haraj .wheel{fill:#1B1E24; stroke:#07090C; stroke-width:3;}
.art-haraj .rim{fill:#C9CED6;}
.art-haraj .sold rect{fill:#F04A4F; stroke:#fff; stroke-width:1.6;}
.art-haraj .sold text{fill:#fff; font-size:9px; font-weight:700; font-family:inherit;}
.art-haraj .sold{transform-box:fill-box; transform-origin:center; transform:rotate(-8deg);}
.art-haraj .stick{stroke:#B7773D; stroke-width:4; stroke-linecap:round;}
.art-haraj .head{fill:#8A5226; stroke:#07090C; stroke-width:1.2;}
.art-haraj .block{fill:#8A5226;}
.art-haraj .gavel{transform-origin:150px 30px;}
.art-haraj .flags path{transform-box:fill-box; transform-origin:50% 0;}
a.game-card:hover .art-haraj .gavel{animation:harajGavel .9s cubic-bezier(.6,0,.4,1) infinite;}
a.game-card:hover .art-haraj .sold{animation:harajSold .5s cubic-bezier(.2,1.4,.4,1) both;}
a.game-card:hover .art-haraj .flags path{animation:harajFlag 1.6s ease-in-out infinite alternate;}
@keyframes harajGavel{0%,100%{transform:rotate(-18deg);} 45%{transform:rotate(6deg);}}
@keyframes harajSold{from{opacity:0; transform:translateY(-14px) rotate(-26deg) scale(1.5);} to{opacity:1; transform:rotate(-8deg);}}
@keyframes harajFlag{from{transform:rotate(-8deg);} to{transform:rotate(8deg);}}

/* حقل الألغام */
.art-mines{background:radial-gradient(120% 90% at 50% 0%,#2B2218,#120F0C);}
.art-mines svg{width:100%; height:100%;}
.art-mines .dune{fill:#7A5E34;}
.art-mines .tiles rect{fill:#E2C48C; stroke:#7A5E34; stroke-width:1.5;}
.art-mines .tiles .g{fill:#2BD46B;} .art-mines .tiles .r{fill:#F04A4F;}
.art-mines .body{fill:#2A2622; stroke:#0A0806; stroke-width:2;}
.art-mines .spk{stroke:#3A342E; stroke-width:3.5; stroke-linecap:round;}
.art-mines .fuse{fill:none; stroke:#B88A4E; stroke-width:2; stroke-dasharray:3 2;}
.art-mines .spark{fill:#FFD34D;}
.art-mines .sand{fill:#C9A66B;}
.art-mines .shaft{stroke:#9AA3AD; stroke-width:3; stroke-linecap:round;}
.art-mines .coil{fill:none; stroke:#F5A524; stroke-width:3;}
.art-mines .pole{stroke:#8A6A3A; stroke-width:3;}
.art-mines .tri{fill:#F5C542; stroke:#1A1206; stroke-width:2; stroke-linejoin:round;}
.art-mines .det{transform-origin:150px 6px;}
.art-mines .spark{transform-box:fill-box; transform-origin:center;}
a.game-card:hover .art-mines .det{animation:minesSweep 1.4s ease-in-out infinite;}
a.game-card:hover .art-mines .spark{animation:minesSpark .3s steps(2) infinite;}
@keyframes minesSweep{0%,100%{transform:rotate(0);} 50%{transform:rotate(-14deg);}}
@keyframes minesSpark{50%{transform:scale(.5); opacity:.6;}}

/* من أعمالنا: شريط أفقي بهوية المشروع نفسه (أخضر الأنِيس الداكن وذهبه) داخل إطار أثَر */
.works{margin-top:clamp(28px,6vw,52px);}
.works h2{font-size:1.4rem; margin-bottom:12px;}
.work-band{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:18px;
  padding:14px 18px 14px 22px; border-radius:24px; text-decoration:none; color:inherit;
  background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow);
  transition:transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .25s ease;
}
.work-band:hover{transform:translateY(-4px); box-shadow:0 18px 40px rgba(10,36,99,.18);}
.work-band:active{transform:translateY(-1px) scale(.99);}
.work-art{width:132px; aspect-ratio:4/3; border-radius:16px; background:#0c2a29; display:grid; place-items:center;}
.work-art svg{width:86%; height:auto;}
.work-body h3{font-size:1.5rem; line-height:1.3;}
.work-body p{color:var(--text-2); font-size:.95rem; margin:2px 0 8px;}
.work-go{background:#0c2a29; color:#f0cf85; white-space:nowrap;}
@media (max-width:640px){
  .work-band{grid-template-columns:1fr; padding:14px;}
  .work-art{width:100%; aspect-ratio:16/7;}
  .work-art svg{width:auto; height:88%;}
  .work-go{justify-self:start;}
}

/* ---------- أقسام الصفحة: البنوك، ألعاب المقدّم، ألعاب المقدّم والمشاركين ---------- */
.top-tools{display:flex; align-items:center; gap:10px;}
.games-group + .games-group{margin-top:clamp(26px,5vw,44px);}
.group-head{display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 14px; margin-bottom:14px; padding-inline-start:14px; border-inline-start:6px solid var(--accent); animation:rise .5s ease both;}
.group-head h2{font-size:clamp(1.3rem,3.6vw,1.7rem); line-height:1.4;}
.group-head p{color:var(--text-2); font-size:.95rem;}
.g-banks .group-head{border-inline-start-color:#5CC2F5;}
.g-host .group-head{border-inline-start-color:#F5B820;}
.g-phones .group-head{border-inline-start-color:#2FA862;}

/* بنك أثر: بطاقات أسئلة متراكبة وأثر نقاط يصعد */
.art-bank{background:linear-gradient(150deg,#0A2463 0%,#1547A8 55%,#1E6FE0 100%);}
.art-bank svg{width:58%; height:auto; overflow:visible;}
.art-bank .f2{fill:#5CC2F5; opacity:.45;}
.art-bank .f1{fill:#8FD0FA; opacity:.7;}
.art-bank .card{fill:#FFFFFF; stroke:#BFE3FC; stroke-width:2;}
.art-bank .q{fill:none; stroke:#1E6FE0; stroke-width:3.4; stroke-linecap:round;}
.art-bank .dot{fill:#1E6FE0;}
.art-bank .tr{fill:#BFE3FC;}
a.game-card:hover .art-bank svg{animation:pop .5s cubic-bezier(.3,1.6,.5,1) both;}
@media (max-width:560px){ .top-tools .acc-n{display:none;} .top-tools .acc-btn{padding:4px;} }

/* حروف: أخضر وبرتقالي زاهيان وخلايا بيضاء بإطار يتبع الثيم (بنفسجي في الفاتح، نيلي في الكحلي، أزرق في أزرق أثَر) */
.art-hex{--hx-ink:#5B2E9E; --hx-g:#2FB51D; --hx-o:#FF7A1F; background:var(--hx-ink);}
[data-theme="navy"] .art-hex{--hx-ink:#3B1F8F; --hx-g:#35C421; --hx-o:#FF8A2B;}
[data-theme="blue"] .art-hex{--hx-ink:#1547A8; --hx-g:#2FB51D; --hx-o:#FF7A1F;}
.art-hex svg{width:100%; height:100%;}
.art-hex .ed.g{fill:var(--hx-g);} .art-hex .ed.o{fill:var(--hx-o);}
.art-hex .hc polygon{fill:#fff; stroke:var(--hx-ink); stroke-width:1.5; stroke-linejoin:round; transition:stroke .3s;}
.art-hex .hc text{fill:var(--hx-ink); font-size:9px; font-weight:700; font-family:"Baloo Bhaijaan 2","Thmanyah Sans","IBM Plex Sans Arabic",sans-serif; transition:fill .3s;}
.art-hex .hc.g polygon{fill:var(--hx-g);} .art-hex .hc.o polygon{fill:var(--hx-o);}
.art-hex .hc.g text,.art-hex .hc.o text{fill:#fff;}
.art-hex .hc{transform-box:fill-box; transform-origin:center;}
a.game-card:hover .art-hex .hc{animation:hexFlip .6s cubic-bezier(.16,1,.3,1) both; animation-delay:calc(var(--k) * 22ms);}
@keyframes hexFlip{0%{transform:none;} 45%{transform:scaleX(.05);} 80%{transform:scaleX(1.1);} 100%{transform:none;}}
@media (prefers-reduced-motion: reduce){a.game-card:hover .art-hex .hc{animation:none;}}

/* الأخوان بربروسا: نقش السفينتين من ملف الهوية وعنوان الفرشاة */
.art-barbarossa{display:grid; place-items:end center; background:linear-gradient(180deg, rgba(20,32,28,0) 35%, rgba(20,32,28,.75)), url("barbarossa/img/ship.jpg") 50% 40%/cover;}
.art-barbarossa img{width:62%; height:auto; margin-bottom:6%; filter:drop-shadow(0 1px 0 rgba(243,235,221,.7)) drop-shadow(0 -1px 0 rgba(243,235,221,.7)) drop-shadow(0 4px 8px rgba(0,0,0,.5)); transition:transform .5s cubic-bezier(.16,1,.3,1);}
a.game-card:hover .art-barbarossa img{transform:scale(1.07) rotate(-1.5deg);}
