/* Zetawe Games 1.4.0 – الواجهة الرئيسية السينمائية */
#zs { background: radial-gradient(130% 90% at 50% -10%, #0F5560 0%, #072E36 45%, #031417 100%); perspective: 900px; }
#zs .zs-view { position: relative; min-height: 100%; will-change: opacity, transform; }

/* الخلفية: أشعة ضوء + وهج + غبار + تعتيم أطراف */
.zc-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.zc-bg::before, .zc-bg::after { content: none !important; }
.zc-dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.zc-beam { position: absolute; top: -30%; width: 34vmax; height: 140%; transform-origin: 50% 0; will-change: transform; border-radius: 50%;
  /* أشعة ناعمة بالتدرّج نفسه بدل blur + mix-blend (كانوا ينعادوا رسمهم كل إطار) */
  background: radial-gradient(50% 60% at 50% 0%, rgba(255,226,140,.20), rgba(255,226,140,.07) 55%, transparent 100%); transform: rotate(var(--r, 0deg)); }
.zc-beam.b1 { left: -8%; --r: -24deg; animation: zc-sway 11s ease-in-out infinite; }
.zc-beam.b2 { right: -10%; --r: 22deg; animation: zc-sway 13s ease-in-out infinite reverse; background: radial-gradient(50% 60% at 50% 0%, rgba(120,240,230,.18), rgba(120,240,230,.06) 55%, transparent 100%); }
.zc-beam.b3 { left: 33%; width: 26vmax; --r: 4deg; opacity: .6; animation: zc-sway 16s ease-in-out infinite; }
@keyframes zc-sway { 50% { transform: rotate(calc(var(--r, 0deg) + 7deg)); } }
.zc-glow { position: absolute; left: 50%; top: 22%; width: 90vmin; height: 60vmin; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,190,70,.22), transparent); animation: zc-breathe 6s ease-in-out infinite; will-change: transform, opacity; }
@keyframes zc-breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.08); } }
.zc-vig { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%); }
html.lite .zc-beam, html.lite .zc-glow, html.zg-rm .zc-beam, html.zg-rm .zc-glow { animation: none !important; }
html.lite .zc-dust { display: none; }

/* العنوان */
.zc-title { position: relative; display: flex; justify-content: center; cursor: pointer; perspective: 700px; -webkit-tap-highlight-color: transparent; padding: 6px 10px; }
.zc-tilt { display: flex; flex-direction: column; align-items: center; transform-style: preserve-3d; will-change: transform; }
.zc-word { position: relative; line-height: 1; transform: translateZ(30px); }
.zc-word span { display: block; font: 400 clamp(76px, 25vw, 124px)/1.05 Lalezar, sans-serif; letter-spacing: 0; white-space: nowrap; }
.zc-title:not(.big) .zc-word span { font-size: 64px; }
.zc-base { color: #FFC93C; background: linear-gradient(180deg, #FFF1B8 0%, #FFC93C 45%, #FF8A1F 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #7A3A00) drop-shadow(0 8px 0 rgba(3,20,23,.85)) drop-shadow(0 0 28px rgba(255,170,40,.45)); }
.zc-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%) no-repeat; background-size: 250% 100%; background-position: 150% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.zc-title.big .zc-shine { animation: zc-sweep 6.5s ease-in-out 3s infinite; }
@keyframes zc-sweep { 0%, 70% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.zc-games { display: flex; gap: .55em; margin-top: 14px; transform: translateZ(18px); }
.zc-games i { font: 800 clamp(15px, 4.4vw, 20px)/1 "Baloo Bhaijaan 2", sans-serif; font-style: normal; color: #BFF4EE; letter-spacing: 0; text-shadow: 0 0 14px rgba(120,240,230,.7); }
.zc-flash { position: absolute; left: 50%; top: 45%; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; background: radial-gradient(circle, rgba(255,230,150,.85), rgba(255,180,60,0) 70%); pointer-events: none; }
html.lite .zc-title.big .zc-shine, html.zg-rm .zc-title.big .zc-shine { animation: none; }

/* القائمة */
#zs .zs-menu { justify-content: flex-start; gap: 24px; padding: calc(42px + env(safe-area-inset-top, 0px)) 20px 28px; min-height: 100vh; }
#zs .zs-nav { gap: 12px; }
#zs .zs-btn { border: 1.5px solid rgba(255,255,255,.16); border-radius: 22px; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, rgba(32,92,100,.78), rgba(10,44,52,.82)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 34px -14px rgba(0,0,0,.7);
  transition: transform .18s cubic-bezier(.3,1.5,.6,1), box-shadow .2s, border-color .2s; }
#zs .zs-btn:hover { border-color: rgba(255,201,60,.55); }
#zs .zs-btn:active { transform: scale(.97); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -10px rgba(0,0,0,.7); }
#zs .zs-btn small { opacity: .78; }
#zs .zs-bi { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #FFC93C; }
#zs .zs-btn.main { min-height: 96px; border: 0; color: #2A1500; background: linear-gradient(135deg, #FFE38A 0%, #FFC93C 40%, #FF8A1F 100%); box-shadow: 0 0 0 1.5px rgba(255,236,170,.7) inset, 0 18px 40px -12px rgba(255,140,30,.65); }
#zs .zs-btn.main small { opacity: .8; }
#zs .zs-btn.main .zs-bi { background: #2A1500; color: #FFC93C; border: 0; }
.zc-sheen { position: absolute; inset: 0; will-change: transform; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: zc-sheen 4.5s ease-in-out 2s infinite; pointer-events: none; }
@keyframes zc-sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
html.lite .zc-sheen, html.zg-rm .zc-sheen { animation: none; display: none; }
#zs .zs-btn.online { background: linear-gradient(135deg, rgba(44,198,190,.38), rgba(18,120,130,.22)); border-color: rgba(120,240,230,.45); }
#zs .zs-btn.online .zs-bi { color: #9FF5EE; }
#zs .zs-live { border: 0; background: #E8456B; top: 10px; inset-inline-end: 12px; }
#zs .zs-btn.sm { min-height: 58px; }
#zs .zs-btn.danger { background: linear-gradient(180deg, #FF8FA3, #E8456B); }

/* أسفل القائمة */
.zs-foot2 { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; }
.zs-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
#zs .zs-link { opacity: .8; font-size: 15px; padding: 8px 10px; }
.zs-ver2 { font-size: 12.5px; font-weight: 700; color: rgba(220,245,242,.6); }

/* اللوحات على الخلفية الجديدة */
#zs .zs-ph { background: linear-gradient(#072E36 60%, rgba(7,46,54,0)); }
#zs .zs-ib { border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
#zs .zs-card { border: 1.5px solid rgba(255,255,255,.14); background: rgba(255,250,238,.97); box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); }
.zs-about .zc-title { margin: 6px 0 4px; cursor: default; }
.zs-about .zc-games i { color: #0B6B78; text-shadow: none; }
.zs-ig { display: inline-flex; align-items: center; gap: 8px; margin: 10px auto 0; padding: 9px 18px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 800;
  background: linear-gradient(45deg, #F9CE34, #EE2A7B 50%, #6228D7); box-shadow: 0 8px 20px -10px rgba(238,42,123,.8); }
.zs-ig svg { width: 20px; height: 20px; }
.zs-priv h3 { margin: 0 0 8px; }
.zs-priv ul { margin: 0; padding-inline-start: 20px; line-height: 1.8; font-weight: 700; }
.zs-priv p { font-weight: 700; margin: 0 0 4px; }
.zs-priv { text-align: start; }
.zs-about .zs-ig, .zs-priv .zs-ig { display: flex; width: max-content; }

/* ===== بطاقة «تحدّي اليوم» بالقائمة ===== */
#zs .zs-daily { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 22px; cursor: pointer; text-align: start; color: #fff; font-family: inherit; overflow: hidden;
  border: 1.5px solid rgba(255,138,31,.55); background: linear-gradient(135deg, rgba(255,107,61,.32), rgba(232,69,107,.22)); box-shadow: 0 14px 34px -16px rgba(255,90,60,.7); transition: transform .18s; }
#zs .zs-daily:active { transform: scale(.97); }
#zs .zs-daily::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%); transform: translateX(-120%); animation: zc-sheen 5s ease-in-out 3s infinite; pointer-events: none; }
html.lite #zs .zs-daily::after { animation: none; }
.zd-fire { font-size: 34px; line-height: 1; filter: drop-shadow(0 0 12px rgba(255,120,40,.8)); animation: zd-flick 1.8s ease-in-out infinite; }
@keyframes zd-flick { 50% { transform: scale(1.12) rotate(-4deg); } }
html.lite .zd-fire, html.zg-rm .zd-fire { animation: none; }
.zd-ct { flex: 1; min-width: 0; }
.zd-ct b { display: block; font: 400 24px/1.1 Lalezar, sans-serif; }
.zd-ct small { display: block; font-size: 13.5px; font-weight: 700; color: #FFE1D2; }
.zd-ct i { font-style: normal; font-variant-numeric: tabular-nums; color: #FFC93C; }
.zd-go { padding: 6px 14px; border-radius: 999px; background: #FFC93C; color: #2A1500; font-weight: 900; font-size: 14px; }
#zs .zs-daily.done { border-color: rgba(255,255,255,.2); background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); }
#zs .zs-daily.done .zd-go { background: rgba(255,255,255,.14); color: #fff; }

/* ===== زر التنزيل بأسفل القائمة ===== */
.zs-a2hs { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid rgba(120,240,230,.5); background: rgba(44,198,190,.16); color: #DFFBF8; font: 800 15px/1.2 "Baloo Bhaijaan 2", sans-serif; cursor: pointer; }
.a2-ph { font-size: 18px; }

/* ===== شاشة «تحدّي اليوم» ===== */
html.zd-open, html.zd-open body { overflow: hidden; }
#zd { position: fixed; inset: 0; z-index: 95; overflow: hidden auto; color: #fff; font-family: "Baloo Bhaijaan 2", Tahoma, sans-serif; background: radial-gradient(120% 80% at 50% -10%, #6B2A1E 0%, #2B1028 45%, #0C0A1F 100%);
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0); -webkit-user-select: none; user-select: none; }
.zd-bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 40% at 50% 15%, rgba(255,140,50,.25), transparent 70%), radial-gradient(40% 30% at 85% 90%, rgba(232,69,107,.2), transparent); }
.zd-wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 28px; min-height: 100%; }
.zd-top { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; background: linear-gradient(#2B1028 65%, rgba(43,16,40,0)); }
.zd-top b { font: 400 22px/1.2 Lalezar, sans-serif; text-align: center; }
.zd-top span { font-size: 13px; font-weight: 800; color: #FFD3B8; }
.zd-x { width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.zd-x svg { width: 22px; height: 22px; }
html:not(.lang-en) .zd-x svg { transform: none; }
.zd-hero { text-align: center; padding-top: 10px; }
.zd-big { font-size: 84px; line-height: 1; filter: drop-shadow(0 0 30px rgba(255,120,40,.8)); }
.zd-hero h1 { margin: 6px 0 4px; font: 400 48px/1.1 Lalezar, sans-serif; background: linear-gradient(180deg, #FFF1B8, #FFC93C 50%, #FF8A1F); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.zd-hero p { font-weight: 700; color: #FFE6D8; line-height: 1.7; margin: 0 0 14px; }
.zd-rules { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zd-rules li { padding: 12px 6px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.zd-rules b { display: block; font: 400 34px/1 Lalezar, sans-serif; color: #FFC93C; }
.zd-rules span { font-size: 12.5px; font-weight: 700; color: #FFE6D8; }
.zd-streak { color: #FFE08A !important; }
.zd-btn { display: block; width: 100%; margin-top: 10px; padding: 15px 18px; border: 0; border-radius: 20px; cursor: pointer; text-align: center; text-decoration: none; font: 400 26px/1.1 Lalezar, sans-serif; color: #2A1500;
  background: linear-gradient(135deg, #FFE38A, #FFC93C 45%, #FF8A1F); box-shadow: 0 16px 34px -14px rgba(255,140,30,.8); }
.zd-btn:active { transform: scale(.97); }
.zd-btn.ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.2); box-shadow: none; font-size: 20px; }
.zd-btn.ig { color: #fff; background: linear-gradient(45deg, #F9CE34, #EE2A7B 50%, #6228D7); box-shadow: 0 16px 34px -14px rgba(238,42,123,.8); }
.zd-row { display: flex; gap: 10px; }
.zd-row > * { flex: 1; }
.zd-prog { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 4px 0 12px; }
.zd-prog i { height: 7px; border-radius: 9px; background: rgba(255,255,255,.15); }
.zd-prog i.ok { background: #2FB67C; } .zd-prog i.no { background: #E8456B; } .zd-prog i.cur { background: #FFC93C; box-shadow: 0 0 10px #FFC93C; }
.zd-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zd-cat { padding: 4px 12px; border-radius: 99px; background: #FFF6E3; color: #12303B; font-weight: 800; font-size: 14px; }
.zd-lv { padding: 4px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; color: #12303B; }
.zd-lv.l1 { background: #7BE0A8; } .zd-lv.l2 { background: #FFD25E; } .zd-lv.l3 { background: #FF9F5A; } .zd-lv.l4 { background: #FF7A93; }
.zd-pts { margin-inline-start: auto; font: 400 20px Lalezar, sans-serif; color: #FFC93C; }
.zd-tm { height: 10px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; margin: 12px 0; }
.zd-tm i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FF8A1F, #FFC93C); transform-origin: right center; }
.zd-tm.crit i { background: #FF5A5A; }
.zd-q { padding: 20px 18px; border-radius: 24px; background: rgba(255,250,238,.97); color: #12303B; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); margin-bottom: 12px; }
.zd-qt { position: relative; margin: 0; padding-inline-end: 22px; font: 400 clamp(22px, 6vw, 28px)/1.45 Lalezar, sans-serif; text-align: center; }
.zd-opts { display: grid; gap: 10px; }
.zd-o { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; cursor: pointer; text-align: start; color: #fff; font: 800 18px/1.35 "Baloo Bhaijaan 2", sans-serif;
  background: rgba(255,255,255,.09); border: 1.5px solid rgba(255,255,255,.2); transition: transform .12s, background .2s; }
.zd-o i { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 400 18px Lalezar, sans-serif; font-style: normal; background: #FFC93C; color: #2A1500; }
.zd-o:active { transform: scale(.97); }
.zd-o.ok { background: #2FB67C; border-color: #fff; } .zd-o.no { background: #E8456B; border-color: #fff; }
.zd-o:disabled { cursor: default; }
.zd-fb { min-height: 40px; text-align: center; margin-top: 10px; font: 400 26px Lalezar, sans-serif; }
.zd-fb .ok { color: #7CFFB2; } .zd-fb .no { color: #FF9AAE; }
.zd-res { text-align: center; padding-top: 6px; }
.zd-rank b { display: block; font: 400 40px/1.1 Lalezar, sans-serif; color: #FFC93C; }
.zd-rank small { font-weight: 700; color: #FFE6D8; }
.zd-score { margin: 8px 0; }
.zd-num { display: block; font: 400 96px/1 Lalezar, sans-serif; color: #fff; text-shadow: 0 0 40px rgba(255,170,60,.6); font-variant-numeric: tabular-nums; }
.zd-score small { font-weight: 800; color: #FFD3B8; }
.zd-sq { display: flex; justify-content: center; gap: 6px; margin: 12px 0 16px; }
.zd-sq i { width: 26px; height: 26px; border-radius: 8px; } .zd-sq i.ok { background: #2FB67C; } .zd-sq i.no { background: #E8456B; }
.zd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.zd-stats div { padding: 12px 4px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.zd-stats b { display: block; font: 400 24px/1.1 Lalezar, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.zd-stats small { font-size: 12px; font-weight: 700; color: #FFD3B8; }
.zd-note { margin-top: 14px; font-weight: 700; color: #FFE6D8; }
.zd-img { position: fixed; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.75); }
.zd-imgbox { width: min(360px, 100%); text-align: center; }
.zd-imgbox img { width: 100%; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.6); -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.zd-imgbox p { font-weight: 800; margin: 10px 0 0; }

/* ===== دليل التنزيل ===== */
#a2hs { position: fixed; inset: 0; z-index: 2147483200; display: flex; align-items: flex-end; justify-content: center; font-family: "Baloo Bhaijaan 2", Tahoma, sans-serif; }
.a2-bg { position: absolute; inset: 0; background: rgba(2,12,15,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.a2-sheet { position: relative; width: min(520px, 100%); padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #0F4A54, #072E36); color: #fff; border-top: 1.5px solid rgba(255,201,60,.5); box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.a2-grab { width: 44px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.3); margin: 0 auto 12px; }
.a2-sheet h3 { margin: 0 0 6px; font: 400 28px/1.2 Lalezar, sans-serif; color: #FFC93C; text-align: center; }
.a2-sheet > p { margin: 0 0 12px; font-weight: 700; color: #D9F4F1; text-align: center; line-height: 1.6; }
.a2-steps { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.a2-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-weight: 800; line-height: 1.5; }
.a2-steps li > b { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #FFC93C; color: #2A1500; font: 400 18px Lalezar, sans-serif; }
.a2-ic { width: 22px; height: 22px; vertical-align: -5px; color: #6CC6FF; }
.a2-k { display: inline-block; padding: 0 7px; border-radius: 7px; background: rgba(255,255,255,.18); }
.a2-btn { display: block; width: 100%; margin-top: 10px; padding: 14px; border: 0; border-radius: 18px; cursor: pointer; font: 400 22px/1.1 Lalezar, sans-serif; color: #2A1500; background: linear-gradient(135deg, #FFE38A, #FFC93C 45%, #FF8A1F); }
.a2-btn.ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.2); font-size: 18px; }
.a2-arrow { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); font-size: 26px; color: #FFC93C; animation: a2b 1s ease-in-out infinite; }
@keyframes a2b { 50% { transform: translate(-50%, 8px); } }

/* ===== لابتوب وتلفزيون: نفس الترتيب العمودي بس أكبر ومتوسّط ===== */
@media (min-width: 700px) {
  #zs .zs-menu { max-width: 560px; justify-content: center; gap: 30px; padding-top: 48px; }
  .zc-title.big .zc-word span { font-size: clamp(110px, 13vh, 170px); }
  .zc-games i { font-size: 22px; }
  .zs-foot2 { margin-top: 10px; }
}
@media (min-width: 700px) and (max-height: 760px) {
  #zs .zs-menu { gap: 18px; padding-top: 24px; }
  .zc-title.big .zc-word span { font-size: 96px; }
  #zs .zs-btn.main { min-height: 80px; }
}
@media (min-width: 1600px) and (min-height: 1000px) {
  #zs .zs-menu { max-width: 680px; }
  #zs .zs-btn b { font-size: 30px; } #zs .zs-btn.main b { font-size: 42px; } #zs .zs-btn small { font-size: 17px; }
  #zs .zs-btn.main { min-height: 120px; } #zs .zs-btn.online, #zs .zs-daily { min-height: 96px; }
}
