/* Zetawe Games – شاشة البداية والقائمة الرئيسية والإعدادات */
html.zs-open, html.zs-open body { overflow: hidden; }
#zs {
  --ink: #12303B; --sun: #FFC93C; --org: #FF8A1F; --pink: #E8456B; --mint: #2FB67C; --teal: #12B5B0; --cream: #FFF6E3;
  position: fixed; inset: 0; z-index: 90; overflow: hidden auto; color: #fff; isolation: isolate;
  background: radial-gradient(120% 80% at 50% -10%, #1AA6A6 0%, #0B6B78 45%, #073F49 100%);
  font-family: "Baloo Bhaijaan 2", Tahoma, sans-serif; -webkit-user-select: none; user-select: none;
  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);
}
#zs[dir="ltr"] .zs-flip { transform: scaleX(-1); }
.zs-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.zs-bg::before { content: ""; position: absolute; inset: -20%; background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,.14) 0 3px, transparent 4px), radial-gradient(circle at 75% 75%, rgba(255,255,255,.1) 0 2px, transparent 3px); background-size: 64px 64px; animation: zs-drift 40s linear infinite; }
.zs-bg::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -18%; height: 46%; border-radius: 50% 50% 0 0; background: radial-gradient(60% 40% at 50% 0%, rgba(255,201,60,.28), transparent 70%), linear-gradient(#0A5A66, #063943); }
.zs-bg i { position: absolute; width: 54px; height: 54px; border-radius: 16px; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); opacity: .9; animation: zs-float 9s ease-in-out infinite; }
.zs-bg i:nth-child(1) { left: 6%; top: 12%; background: #2CC6BE; transform: rotate(-12deg); }
.zs-bg i:nth-child(2) { right: 8%; top: 18%; background: #FFB04D; width: 40px; height: 40px; animation-delay: -3s; }
.zs-bg i:nth-child(3) { left: 10%; bottom: 14%; background: #F58BA7; width: 44px; height: 44px; animation-delay: -5s; }
.zs-bg i:nth-child(4) { right: 12%; bottom: 10%; background: #8DB5F8; animation-delay: -1s; }
.zs-bg i:nth-child(5) { left: 46%; top: 6%; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); animation-delay: -6s; }
.zs-bg i:nth-child(6) { right: 40%; bottom: 4%; width: 30px; height: 30px; border-radius: 50%; background: #fff; animation-delay: -2s; }
@keyframes zs-drift { to { transform: translate(-64px, -64px); } }
@keyframes zs-float { 50% { translate: 0 -14px; rotate: 8deg; } }
html.lite #zs .zs-bg::before, html.lite #zs .zs-bg i, html.zg-rm #zs * { animation: none !important; }

/* الشعار */
.zs-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.zs-logo img { width: 104px; height: 104px; border-radius: 28px; border: 5px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 20px 40px rgba(0,0,0,.35); display: block; }
.zs-logo.big img { width: 148px; height: 148px; border-radius: 38px; }
.zs-word { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.zs-word b { font: 400 64px/1 Lalezar, sans-serif; color: var(--sun); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 #FF8A1F, 0 9px 0 var(--ink); letter-spacing: 0; }
.zs-logo.big .zs-word b { font-size: 92px; }
.zs-word span { margin-top: 10px; padding: 3px 22px 1px; border-radius: 999px; background: var(--pink); border: 4px solid var(--ink); font: 800 18px/1.4 "Baloo Bhaijaan 2", sans-serif; letter-spacing: .5em; color: #fff; transform: rotate(-2deg); box-shadow: 0 4px 0 var(--ink); }

/* شاشة البداية */
.zs-title { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 20px 90px; text-align: center; }
.zs-tag { max-width: 420px; margin: 0; font-size: 18px; font-weight: 700; opacity: .9; }
.zs-tap { margin-top: 18px; border: 0; background: none; color: #fff; font: 400 26px/1 Lalezar, sans-serif; cursor: pointer; padding: 18px 34px; border-radius: 999px; position: relative; }
.zs-tap span { animation: zs-pulse 1.6s ease-in-out infinite; display: inline-block; }
.zs-tap::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 3px solid rgba(255,255,255,.55); animation: zs-ring 1.6s ease-out infinite; }
@keyframes zs-pulse { 50% { opacity: .55; transform: scale(.97); } }
@keyframes zs-ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.zs-ver { position: fixed; bottom: calc(10px + env(safe-area-inset-bottom, 0)); left: 0; right: 0; text-align: center; font-size: 13px; opacity: .55; font-weight: 700; }
.zs-ver.in { position: static; margin: 10px 0 0; }

/* القائمة الرئيسية */
.zs-menu { min-height: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 36px 20px 70px; }
.zs-nav { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.zs-row { display: flex; gap: 12px; }
.zs-row > * { flex: 1; }
.zs-btn { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 18px; border-radius: 22px; border: 4px solid var(--ink);
  background: linear-gradient(180deg, #FFFDF6, #FFE9B8); color: var(--ink); box-shadow: inset 0 3px 0 rgba(255,255,255,.7), inset 0 -6px 0 rgba(18,48,59,.12), 0 7px 0 var(--ink); cursor: pointer; text-align: start;
  font-family: inherit; transition: transform .12s, box-shadow .12s; touch-action: manipulation; }
.zs-btn:active { transform: translateY(5px); box-shadow: inset 0 3px 8px rgba(18,48,59,.2), 0 2px 0 var(--ink); }
.zs-btn b { font: 400 24px/1.1 Lalezar, sans-serif; }
.zs-btn small { display: block; font-size: 14px; font-weight: 700; opacity: .75; }
.zs-bi { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: #fff; }
.zs-bi svg { width: 26px; height: 26px; }
.zs-btn.main { min-height: 92px; background: linear-gradient(180deg, #FFD567, #FF9F2E); }
.zs-btn.main b { font-size: 34px; }
.zs-btn.main .zs-bi { width: 60px; height: 60px; border-radius: 18px; }
.zs-btn.main .zs-bi svg { width: 34px; height: 34px; }
.zs-btn.online { min-height: 82px; background: linear-gradient(180deg, #5BE0D8, #12B5B0); }
.zs-btn.online b { font-size: 28px; }
.zs-btn.sm { min-height: 60px; padding: 10px 14px; gap: 10px; justify-content: center; }
.zs-btn.sm b { font-size: 20px; }
.zs-btn.sm .zs-bi { width: 36px; height: 36px; border-radius: 11px; }
.zs-btn.sm .zs-bi svg { width: 21px; height: 21px; }
.zs-btn.danger { background: linear-gradient(180deg, #FF8FA3, #E8456B); color: #fff; }
.zs-live { position: absolute; top: -12px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--pink); color: #fff; border: 3px solid var(--ink); font: 800 12px/1.6 "Baloo Bhaijaan 2", sans-serif; letter-spacing: .08em; }
.zs-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: zs-pulse 1.2s infinite; }
.zs-link { align-self: center; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: #fff; opacity: .85; font: 800 16px/1 "Baloo Bhaijaan 2", sans-serif; cursor: pointer; padding: 12px; }
.zs-link svg { width: 20px; height: 20px; }

/* اللوحات (الإعدادات، طريقة اللعب، عن اللعبة) */
.zs-panel { max-width: 560px; margin: 0 auto; min-height: 100%; padding: 0 16px 40px; }
.zs-ph { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 14px 0 10px; background: linear-gradient(#0B6B78 60%, rgba(11,107,120,0)); }
.zs-ph h2 { margin: 0; text-align: center; font: 400 30px/1.2 Lalezar, sans-serif; text-shadow: 0 3px 0 var(--ink); }
.zs-ib { width: 48px; height: 48px; border-radius: 15px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.zs-ib svg { width: 24px; height: 24px; }
.zs-card { background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 24px; padding: 16px 16px 12px; margin: 14px 0; box-shadow: 0 7px 0 var(--ink); }
.zs-card h3 { margin: 0 0 10px; font: 400 22px/1.2 Lalezar, sans-serif; }
.zs-card h4 { margin: 14px 0 8px; font-size: 15px; font-weight: 800; opacity: .75; }
.zs-note { margin: 8px 2px 4px; font-size: 13.5px; font-weight: 700; opacity: .7; }
.zs-tg { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border: 0; border-top: 2px dashed rgba(18,48,59,.12); background: none; color: inherit; font: 800 17px/1.3 "Baloo Bhaijaan 2", sans-serif; cursor: pointer; min-height: 52px; }
.zs-card h3 + .zs-tg { border-top: 0; }
.zs-tg i { flex: 0 0 auto; position: relative; width: 58px; height: 34px; border-radius: 999px; background: #C9D3D6; border: 3px solid var(--ink); transition: background .2s; }
.zs-tg i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.zs-tg i.on { background: var(--mint); }
.zs-tg i.on::after { transform: translateX(-24px); }
#zs[dir="ltr"] .zs-tg i.on::after { transform: translateX(24px); }
.zs-seg { display: flex; padding: 4px; gap: 4px; border-radius: 16px; background: rgba(18,48,59,.08); border: 3px solid var(--ink); }
.zs-seg button { flex: 1; min-height: 44px; border: 0; border-radius: 11px; background: none; color: var(--ink); font: 800 15px/1.2 "Baloo Bhaijaan 2", sans-serif; cursor: pointer; padding: 6px 4px; }
.zs-seg button.on { background: var(--sun); box-shadow: 0 3px 0 var(--ink); }
.zs-line { display: block; width: 100%; text-align: start; padding: 14px 4px; border: 0; border-top: 2px dashed rgba(18,48,59,.12); background: none; color: var(--ink); font: 800 16px/1.3 "Baloo Bhaijaan 2", sans-serif; cursor: pointer; }
.zs-card h3 + .zs-line { border-top: 0; }
.zs-line.danger { color: #C2263F; }
.zs-steps ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 12px; font-weight: 700; font-size: 17px; line-height: 1.6; }
.zs-about { text-align: center; }
.zs-about p { font-weight: 700; font-size: 17px; line-height: 1.7; }
.zs-about .zs-word b { color: var(--org); }
.zs-confirm { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(4,24,29,.6); }
.zs-dialog { max-width: 380px; width: 100%; background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 24px; padding: 20px; box-shadow: 0 8px 0 var(--ink); text-align: center; }
.zs-dialog p { font-weight: 800; font-size: 18px; margin: 0 0 16px; }

/* زر القائمة الرئيسية داخل قائمة الألعاب */
.zs-home { display: flex; align-items: center; gap: 8px; margin: 10px auto 4px; padding: 8px 18px 8px 16px; border-radius: 999px; border: 3px solid var(--ink, #12303B); background: rgba(255,246,227,.95); color: #12303B; font: 800 15px/1 "Baloo Bhaijaan 2", Tahoma, sans-serif; cursor: pointer; box-shadow: 0 4px 0 #12303B; min-height: 44px; }
.zs-home svg { width: 20px; height: 20px; }
.zs-home:active { transform: translateY(3px); box-shadow: 0 1px 0 #12303B; }
html.lang-en .zo-entry-t, html.lang-en .zs-home { direction: ltr; }

/* تقليل الحركة */
html.zg-rm *, html.zg-rm *::before, html.zg-rm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

@media (max-width: 360px) { .zs-word b { font-size: 52px; } .zs-logo.big .zs-word b { font-size: 72px; } .zs-btn.main b { font-size: 28px; } }
@media (max-height: 640px) { .zs-logo.big img { width: 110px; height: 110px; } .zs-menu { gap: 18px; padding-top: 20px; } .zs-logo img { width: 80px; height: 80px; } .zs-word b { font-size: 50px; } }


/* حقوق المطوّر */
.zs-dev { margin: 14px auto 6px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 22px; border-radius: 18px; background: #12303B; border: 3px solid #FFC93C; box-shadow: 0 5px 0 #FFC93C33; }
.zs-dev small { font-size: 13px; font-weight: 700; color: #BFEFEA; }
.zs-dev b { font: 800 22px/1.2 "Baloo Bhaijaan 2", sans-serif; color: #FFC93C; letter-spacing: .5px; }

/* ===== 1.3.0: زر «بلّغ عن سؤال» ===== */
#app .q, #fdq, #zo .zo-q > p { position: relative; }
.zg-flag { position: absolute; top: -10px; inset-inline-end: -10px; width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 2px solid #12303B; background: #fff; color: #E8456B; cursor: pointer; opacity: .8; box-shadow: 0 2px 0 #12303B; z-index: 2; line-height: 0; }
.zg-flag svg { width: 100%; height: 100%; }
.zg-flag:hover, .zg-flag:focus-visible { opacity: 1; }
.zg-flag:active { transform: scale(.9); }
#zg-rp { position: fixed; inset: 0; z-index: 2147483100; display: flex; align-items: flex-end; justify-content: center; font-family: "Baloo Bhaijaan 2", Tahoma, sans-serif; }
.zg-rp-bg { position: absolute; inset: 0; background: rgba(4,24,30,.6); }
.zg-rp-box { position: relative; width: min(520px, 100%); background: #FFF6E3; color: #12303B; border: 4px solid #12303B; border-bottom: 0; border-radius: 26px 26px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); animation: zg-rp-up .25s ease-out; }
@keyframes zg-rp-up { from { transform: translateY(40%); opacity: 0; } }
.zg-rp-h { display: flex; align-items: center; gap: 10px; font: 400 24px/1.2 Lalezar, sans-serif; }
.zg-rp-i { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: #E8456B; color: #fff; line-height: 0; }
.zg-rp-q { margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 2px dashed #12303B55; font-weight: 700; font-size: 15px; max-height: 6em; overflow: auto; }
.zg-rp-s { margin: 10px 2px 6px; font-weight: 800; color: #12303B; }
.zg-rp-list { display: grid; gap: 8px; }
.zg-rp-list button, .zg-rp-x { font: 800 17px/1.3 "Baloo Bhaijaan 2", Tahoma, sans-serif; padding: 12px 14px; border-radius: 14px; border: 3px solid #12303B; background: #fff; color: #12303B; text-align: start; cursor: pointer; box-shadow: 0 3px 0 #12303B; }
.zg-rp-list button:active, .zg-rp-x:active { transform: translateY(2px); box-shadow: 0 1px 0 #12303B; }
.zg-rp-x { width: 100%; margin-top: 12px; text-align: center; background: #12303B; color: #fff; }
