/* ============================================================
   Lujain Arena
   لوحة ألوان: ليل بنفسجي + بنفسجي كهربائي + سماوي + ذهب الفوز
   الخطوط: Lalezar للعناوين · Cairo للنص
   ============================================================ */

:root{
  /* خلفيات: بنفسجي وردي غامق بدل الأزرق الغامق */
  --bg:        #15091A;
  --bg-2:      #200F2B;
  --surface:   #291438;
  --surface-2: #371A49;
  --raise:     #45205C;
  --line:      #4A2460;
  --line-soft: #381A4A;

  --text:      #FFF0FA;
  --muted:     #D2A8CE;
  --faint:     #9C72A0;

  /* اللون الأساسي: وردي · والثانوي: بنفسجي فاتح */
  --violet:    #FF5FA8;
  --violet-lo: #D63D86;
  --cyan:      #C77DFF;
  --gold:      #FFD166;
  --red:       #FF4D6D;
  --green:     #5FE0B5;
  --orange:    #FF9ECF;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  --shadow: 0 18px 40px -18px rgba(0,0,0,.9);
  --glow-v: 0 0 0 1px rgba(255,95,168,.38), 0 10px 30px -10px rgba(255,95,168,.6);
  --glow-c: 0 0 0 1px rgba(199,125,255,.38), 0 10px 30px -10px rgba(199,125,255,.55);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  color-scheme: dark;
}

*,*::before,*::after{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,95,168,.18), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(199,125,255,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust:100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
button{ font-family:inherit; color:inherit; }
input,select,textarea{ font-family:inherit; }
[hidden]{ display:none !important; }

h1,h2,h3,h4{ margin:0; text-wrap:balance; }

.display{ font-family:"Lalezar","Cairo",sans-serif; font-weight:400; letter-spacing:.2px; }

::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-thumb{ background:var(--raise); border-radius:99px; }

:focus-visible{ outline:2px solid var(--cyan); outline-offset:2px; border-radius:6px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* ============================================================
   شاشة الدخول
   ============================================================ */
.gate{
  min-height:100%;
  display:grid;
  grid-template-columns:minmax(0, 1fr);   /* البطاقة ما تكبر أكثر من الشاشة */
  place-items:center;
  padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b));
  position:relative;
}
.gate-glow{
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(520px 320px at 50% 8%, rgba(255,95,168,.35), transparent 70%),
    radial-gradient(420px 260px at 20% 90%, rgba(199,125,255,.16), transparent 70%);
}
.gate-card{
  position:relative; z-index:1;
  width:100%; max-width:420px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border:1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 20px 20px;
  box-shadow: var(--shadow);
}

.brand{ text-align:center; margin-bottom:22px; }
.brand-mark{
  width:66px; height:66px; margin:0 auto 12px;
  display:flex; align-items:center; justify-content:center; gap:1px;
  direction:ltr;          /* AH مو HA */
  border-radius:18px;
  background: linear-gradient(145deg, var(--violet), #3E1FA8);
  box-shadow: var(--glow-v);
  font-family:"Lalezar",sans-serif; font-size:30px; line-height:1;
  transform: rotate(-4deg);
}
.brand-mark .bm-a{ color:#fff; }
.brand-mark .bm-h{ color: var(--gold); }
.brand-name{
  font-family:"Lalezar",sans-serif;
  font-size: clamp(26px, 8vw, 34px);
  line-height:1.1; color:var(--text);
}
.brand-name em{ font-style:normal; color:var(--cyan); }
.brand-sub{
  margin:8px 0 0; color:var(--muted); font-size:13px;
  letter-spacing:.3px;
}

.join-banner{
  margin:-6px 0 16px; padding:12px 14px; border-radius:14px;
  background:rgba(255,95,168,.14); border:1px solid rgba(255,95,168,.45);
  font-size:13.5px; font-weight:700; line-height:1.65; text-align:center;
}
.join-banner span{ display:block; font-size:12px; font-weight:600; color:var(--muted); margin-top:3px; }
.join-banner b{ color:var(--cyan); letter-spacing:1px; }
.join-banner.ok{ background:rgba(95,224,181,.12); border-color:rgba(95,224,181,.5); }
.join-banner.err{ background:rgba(255,77,109,.12); border-color:rgba(255,77,109,.5); }
.inp-ok{ border-color:var(--green) !important; color:var(--green); }

.seg{
  display:grid; grid-template-columns:1fr 1fr; gap:4px;
  background: var(--bg-2); border:1px solid var(--line-soft);
  padding:4px; border-radius:999px; margin-bottom:18px;
}
.seg-btn{
  border:0; background:transparent; color:var(--muted);
  padding:9px 8px; border-radius:999px; font-size:13px; font-weight:600;
  cursor:pointer; transition: background .18s, color .18s;
}
.seg-btn.is-on{ background:var(--violet); color:#fff; }

.gate-form{ display:flex; flex-direction:column; gap:15px; }

.fld{ display:flex; flex-direction:column; gap:7px; border:0; padding:0; margin:0; min-width:0; }
.fld-label{ font-size:12.5px; font-weight:700; color:var(--muted); letter-spacing:.4px; padding:0; }
.fld-hint{ font-size:11.5px; color:var(--faint); line-height:1.5; }

.inp{
  width:100%;
  background: var(--bg-2);
  border:1px solid var(--line);
  border-radius: var(--r-sm);
  padding:12px 13px;
  color:var(--text); font-size:15px;
  transition: border-color .18s, box-shadow .18s;
}
.inp::placeholder{ color:var(--faint); }
.inp:focus{ outline:none; border-color:var(--violet); box-shadow:0 0 0 3px rgba(255,95,168,.2); }
.inp-code{
  font-family:"Cairo",monospace; letter-spacing:2px; text-transform:uppercase;
  text-align:center; direction:ltr; font-weight:800;
}
.inp-pin{
  text-align:center; letter-spacing:12px; direction:ltr;
  font-size:22px; font-weight:800; padding-inline-start:25px;
}

.avatar-fld .fld-label{ margin-bottom:2px; }
.avatar-grid{
  display:grid; grid-template-columns:repeat(8, minmax(0, 1fr)); gap:6px;
}
@media (max-width:440px){
  .avatar-grid{ grid-template-columns:repeat(6, minmax(0, 1fr)); }
}
.av-opt{
  aspect-ratio:1; border:1px solid var(--line); background:var(--bg-2);
  border-radius:10px; font-size:19px; cursor:pointer; padding:0;
  display:grid; place-items:center;
  transition: transform .14s, border-color .14s, background .14s;
}
.av-opt:hover{ transform:translateY(-2px); }
.av-opt.is-on{
  border-color:var(--violet); background:rgba(255,95,168,.2);
  box-shadow:0 0 0 2px rgba(255,95,168,.3);
}

.form-msg{ margin:0; font-size:13px; min-height:18px; color:var(--muted); }
.form-msg.err{ color:var(--red); }
.form-msg.ok{ color:var(--green); }

.gate-foot{
  margin:18px 0 0; text-align:center; font-size:12.5px; color:var(--faint);
  border-top:1px solid var(--line-soft); padding-top:14px;
}
.gate-foot strong{ color:var(--gold); }

/* ============================================================
   أزرار
   ============================================================ */
.btn{
  border:1px solid var(--line); background:var(--surface-2); color:var(--text);
  border-radius: var(--r-sm); padding:10px 16px;
  font-size:14px; font-weight:700; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  transition: transform .12s, filter .18s, background .18s;
}
.btn:hover{ filter:brightness(1.12); }
.btn:active{ transform:translateY(1px) scale(.99); }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none; }

.btn-primary{
  background: linear-gradient(145deg, var(--violet), var(--violet-lo));
  border-color: transparent; color:#fff;
  box-shadow: var(--glow-v);
}
.btn-cyan{ background:linear-gradient(145deg, var(--cyan), #7A2FAF); border-color:transparent; color:#04212A; }
.btn-gold{ background:linear-gradient(145deg, var(--gold), #D89A0B); border-color:transparent; color:#2A1D00; }
.btn-danger{ background:rgba(255,77,109,.14); border-color:rgba(255,77,109,.4); color:var(--red); }
.btn-ghost{ background:transparent; }
.btn-lg{ padding:14px 18px; font-size:15.5px; border-radius:12px; }
.btn-sm{ padding:7px 11px; font-size:12.5px; border-radius:9px; }
.btn-block{ width:100%; }

.icon-btn{
  width:38px; height:38px; display:grid; place-items:center;
  border:1px solid var(--line); background:var(--surface-2);
  border-radius:11px; cursor:pointer; padding:0; flex:none;
}
.icon-btn svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }

/* ============================================================
   شريط اللاعب
   ============================================================ */
.app{ min-height:100%; display:flex; flex-direction:column; }

.hud{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; gap:11px;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  background: rgba(11,9,24,.86);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line-soft);
}
.hud-me{
  display:flex; align-items:center; gap:9px;
  background:transparent; border:0; padding:0; cursor:pointer; min-width:0;
}
.hud-av{
  width:42px; height:42px; flex:none; display:grid; place-items:center;
  font-size:22px; border-radius:13px;
  background: linear-gradient(145deg, var(--raise), var(--surface));
  border:1px solid var(--line);
}
.hud-txt{ display:flex; flex-direction:column; align-items:flex-start; min-width:0; line-height:1.25; }
.hud-nick{ font-size:14px; font-weight:800; max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hud-title{ font-style:normal; font-size:11px; color:var(--gold); font-weight:700; }

.hud-prog{ flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.hud-prog-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.lvl-chip{
  font-family:"Lalezar",sans-serif; font-size:12px; direction:ltr;
  background:var(--violet); color:#fff; padding:1px 8px; border-radius:999px;
}
.hud-xp{ font-size:11px; color:var(--faint); font-variant-numeric:tabular-nums; direction:ltr; }
.bar{ height:6px; background:var(--bg-2); border-radius:99px; overflow:hidden; border:1px solid var(--line-soft); }
.bar>i{ display:block; height:100%; background:linear-gradient(90deg,var(--violet),var(--cyan)); border-radius:99px; transition:width .5s cubic-bezier(.2,.8,.2,1); }

.hud-coins{
  flex:none; display:flex; align-items:center; gap:4px;
  background:rgba(255,209,102,.12); border:1px solid rgba(255,209,102,.32);
  color:var(--gold); padding:5px 10px; border-radius:999px;
  font-size:13px; font-weight:800; font-variant-numeric:tabular-nums;
}
.coin-i{ font-size:11px; }

/* ============================================================
   المحتوى
   ============================================================ */
.view{
  flex:1;
  padding: 18px 16px calc(96px + var(--safe-b));
  max-width: 760px; width:100%; margin-inline:auto;
  animation: fadeUp .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadeUp{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }

.sec{ margin-bottom:28px; }
.sec-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  margin-bottom:12px;
}
.sec-title{ font-family:"Lalezar",sans-serif; font-size:20px; }
.sec-more{ background:none; border:0; color:var(--cyan); font-size:12.5px; font-weight:700; cursor:pointer; padding:0; }

.eyebrow{
  font-size:11px; font-weight:800; letter-spacing:1.4px;
  color:var(--faint); text-transform:uppercase; margin-bottom:6px;
}

/* بطاقات */
.card{
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: var(--r);
  padding:16px;
}
.card-quiet{ background:var(--bg-2); border-color:var(--line-soft); }

/* إعلان لجين */
.ann{
  display:flex; gap:11px; align-items:flex-start;
  background: linear-gradient(135deg, rgba(255,209,102,.14), rgba(255,138,61,.06));
  border:1px solid rgba(255,209,102,.32);
  border-radius: var(--r); padding:14px; margin-bottom:20px;
}
.ann-i{ font-size:20px; flex:none; line-height:1.3; }
.ann-b{ min-width:0; }
.ann-t{ font-size:11px; font-weight:800; color:var(--gold); letter-spacing:1px; margin-bottom:2px; }
.ann-x{ font-size:14px; line-height:1.55; overflow-wrap:anywhere; }

/* تحدي اليوم */
.daily{
  position:relative; overflow:hidden;
  background: linear-gradient(150deg, #3F1C55, var(--surface));
  border:1px solid var(--violet-lo);
  border-radius: var(--r-lg); padding:18px;
}
.daily::after{
  content:""; position:absolute; inset-inline-end:-40px; top:-40px;
  width:150px; height:150px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,95,168,.5), transparent 70%);
  pointer-events:none;
}
.daily-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; position:relative; }
.daily-tag{
  font-size:11px; font-weight:800; letter-spacing:1px;
  background:var(--violet); color:#fff; padding:3px 10px; border-radius:999px;
}
.daily-timer{ font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.daily-q{ font-size:17px; font-weight:700; line-height:1.55; margin-bottom:14px; position:relative; }

.opts{ display:flex; flex-direction:column; gap:8px; position:relative; }
.opt{
  text-align:start; width:100%;
  background: rgba(255,255,255,.04);
  border:1px solid var(--line); border-radius:12px;
  padding:12px 14px; font-size:14.5px; font-weight:600; cursor:pointer;
  transition: background .16s, border-color .16s, transform .12s;
}
.opt:hover:not(:disabled){ background:rgba(255,255,255,.09); transform:translateX(-3px); }
.opt:disabled{ cursor:default; }
.opt.is-right{ border-color:var(--green); background:rgba(95,224,181,.16); color:var(--green); }
.opt.is-wrong{ border-color:var(--red); background:rgba(255,77,109,.14); color:var(--red); }

.done-box{ text-align:center; padding:8px 0 2px; position:relative; }
.done-em{ font-size:34px; line-height:1; margin-bottom:8px; }
.done-tx{ font-size:14px; color:var(--muted); }

/* شبكة الألعاب */
.grid{ display:grid; gap:11px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:420px){ .grid-3{ grid-template-columns:repeat(2,1fr); } }

.gcard{
  position:relative; overflow:hidden;
  border:1px solid var(--line); border-radius:var(--r);
  padding:14px 13px; text-align:start; cursor:pointer;
  background: var(--surface);
  transition: transform .16s, border-color .16s;
  display:flex; flex-direction:column; gap:3px; min-height:112px;
}
.gcard:hover{ transform:translateY(-3px); border-color:var(--violet); }
.gcard-i{ font-size:26px; line-height:1; margin-bottom:5px; }
.gcard-n{ font-family:"Lalezar",sans-serif; font-size:16px; }
.gcard-d{ font-size:11.5px; color:var(--muted); line-height:1.45; }
.gcard-best{
  margin-top:auto; padding-top:8px;
  font-size:11px; color:var(--gold); font-weight:800;
  font-variant-numeric:tabular-nums;
}
.gcard-best.none{ color:var(--faint); font-weight:600; }
.gcard::before{
  content:""; position:absolute; inset-block:0; inset-inline-start:0; width:3px;
  background: var(--accent, var(--violet));
}

/* أزرار سريعة */
.quick{ display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.qbtn{
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:13px 8px; cursor:pointer; display:flex; flex-direction:column;
  align-items:center; gap:6px; transition:transform .14s, border-color .14s;
}
.qbtn:hover{ transform:translateY(-2px); border-color:var(--cyan); }
.qbtn-i{ font-size:21px; line-height:1; }
.qbtn-t{ font-size:11.5px; font-weight:700; }

/* الصدارة */
.lb-tabs{ display:flex; gap:6px; overflow-x:auto; padding-bottom:6px; margin-bottom:14px; scrollbar-width:none; }
.lb-tabs::-webkit-scrollbar{ display:none; }
.chip{
  flex:none; background:var(--surface); border:1px solid var(--line);
  color:var(--muted); border-radius:999px; padding:7px 13px;
  font-size:12.5px; font-weight:700; cursor:pointer; white-space:nowrap;
  transition: background .16s, color .16s, border-color .16s;
}
.chip.is-on{ background:var(--violet); border-color:transparent; color:#fff; }

.rank{ display:flex; flex-direction:column; gap:7px; }
.row{
  display:flex; align-items:center; gap:11px;
  background:var(--surface); border:1px solid var(--line);
  border-radius:13px; padding:10px 13px;
}
.row.me{ border-color:var(--cyan); background:rgba(199,125,255,.07); }
.row-n{
  width:26px; flex:none; text-align:center;
  font-family:"Lalezar",sans-serif; font-size:15px; color:var(--faint);
  font-variant-numeric:tabular-nums;
}
.row.r1 .row-n{ color:var(--gold); }
.row.r2 .row-n{ color:#C9D2E3; }
.row.r3 .row-n{ color:#E08B4C; }
.row-av{ font-size:21px; flex:none; }
.row-b{ flex:1; min-width:0; }
.row-nm{ font-size:14px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row-sub{ font-size:11px; color:var(--faint); }
.row-v{ font-family:"Lalezar",sans-serif; font-size:17px; color:var(--cyan); font-variant-numeric:tabular-nums; direction:ltr; }

/* الملف الشخصي */
.prof{
  text-align:center; padding:22px 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border:1px solid var(--line); border-radius:var(--r-lg);
  position:relative; overflow:hidden;
}
.prof::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(300px 140px at 50% 0%, rgba(255,95,168,.3), transparent 70%);
}
.prof-av{
  width:84px; height:84px; margin:0 auto 12px; position:relative;
  display:grid; place-items:center; font-size:42px;
  border-radius:26px;
  background:linear-gradient(145deg, var(--raise), var(--surface-2));
  border:2px solid var(--violet);
  box-shadow: var(--glow-v);
}
.prof-nm{ font-family:"Lalezar",sans-serif; font-size:25px; position:relative; }
.prof-ttl{
  display:inline-block; margin-top:6px; position:relative;
  background:rgba(255,209,102,.14); border:1px solid rgba(255,209,102,.35);
  color:var(--gold); padding:3px 14px; border-radius:999px;
  font-size:12.5px; font-weight:800;
}
.prof-ttl.is-gift{
  background:rgba(199,125,255,.14); border-color:rgba(199,125,255,.4); color:var(--cyan);
}
.prof-showcase{
  position:relative; display:flex; gap:6px; justify-content:center; margin-top:11px; flex-wrap:wrap;
}
.prof-showcase .sb{
  width:34px; height:34px; display:grid; place-items:center; font-size:17px;
  border-radius:11px; background:rgba(255,209,102,.12);
  border:1px solid rgba(255,209,102,.38);
}
.row-ics{ font-size:12px; letter-spacing:1px; }
.row-sub.gift{ color:var(--cyan); font-weight:700; }

.prof-stats{
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
  margin-top:18px; position:relative;
}
.stat{ background:rgba(0,0,0,.28); border:1px solid var(--line-soft); border-radius:13px; padding:11px 6px; }
.stat-v{ font-family:"Lalezar",sans-serif; font-size:21px; color:var(--cyan); font-variant-numeric:tabular-nums; }
.stat-l{ font-size:10.5px; color:var(--muted); font-weight:700; }

/* الشارات */
.badges{ display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:10px; }
.badge{
  position:relative; text-align:center; padding:13px 6px 10px;
  border:1px solid var(--line); border-radius:15px; background:var(--surface);
}
.badge.locked{ opacity:.34; filter:grayscale(1); }
.badge.gift{ border-color:rgba(255,209,102,.5); background:linear-gradient(160deg, rgba(255,209,102,.12), var(--surface)); }
.badge-i{ font-size:26px; line-height:1; margin-bottom:6px; }
.badge-n{ font-size:11px; font-weight:800; line-height:1.35; }
.badge-d{ font-size:9.5px; color:var(--faint); margin-top:3px; line-height:1.4; }
.badge-lock{
  position:absolute; top:6px; inset-inline-end:7px; font-size:10px; color:var(--faint);
}
.badge-price{
  margin-top:7px; font-size:10.5px; font-weight:800; color:var(--gold);
  display:flex; align-items:center; justify-content:center; gap:3px;
}

/* اللوحة الإدارية */
.adm-sec{ margin-bottom:22px; }
.adm-h{
  font-family:"Lalezar",sans-serif; font-size:17px; margin-bottom:10px;
  display:flex; align-items:center; gap:7px;
}
.adm-h .dot{ width:7px; height:7px; border-radius:50%; background:var(--gold); flex:none; }

.code-row{
  display:flex; align-items:center; gap:9px;
  background:var(--bg-2); border:1px solid var(--line);
  border-radius:11px; padding:10px 12px; margin-bottom:7px;
}
.code-v{
  flex:1; font-family:"Cairo",monospace; font-weight:800; letter-spacing:1.5px;
  direction:ltr; text-align:start; font-size:14px;
}
.code-row.used .code-v{ text-decoration:line-through; color:var(--faint); letter-spacing:1px; }
.code-tag{ font-size:10.5px; padding:2px 8px; border-radius:999px; font-weight:800; flex:none; }
.tag-free{ background:rgba(95,224,181,.16); color:var(--green); }
.tag-used{ background:rgba(155,146,196,.14); color:var(--muted); }

.mini-tabs{ display:flex; gap:5px; margin-bottom:14px; flex-wrap:wrap; }

/* قائمة اختيار اللاعب */
select.sel{
  appearance:none; -webkit-appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),
                   linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(0% + 16px) calc(50% + 1px), calc(0% + 21px) calc(50% + 1px);
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
  padding-inline-start:36px;
  font-weight:700; cursor:pointer;
}

.sel-card{
  margin-top:12px; padding:14px;
  background:linear-gradient(150deg,var(--surface-2),var(--surface));
  border:1px solid var(--line); border-radius:var(--r);
}
.sel-top{ display:flex; align-items:center; gap:12px; margin-bottom:13px; }
.sel-av{
  width:48px; height:48px; flex:none; display:grid; place-items:center;
  font-size:26px; border-radius:14px;
  background:linear-gradient(145deg,var(--raise),var(--surface));
  border:1px solid var(--line);
}
.sel-id{ min-width:0; }
.sel-nm{ font-family:"Lalezar",sans-serif; font-size:19px; line-height:1.25; }
.sel-ttl{ font-size:12px; font-weight:800; color:var(--gold); }
.sel-ttl.gift{ color:var(--cyan); }
.sel-badges{
  display:flex; gap:6px; flex-wrap:wrap; margin-top:11px;
  padding-top:11px; border-top:1px solid var(--line-soft);
}
.sel-badges .sb{
  width:30px; height:30px; display:grid; place-items:center; font-size:15px;
  border-radius:9px; background:rgba(255,209,102,.12);
  border:1px solid rgba(255,209,102,.35);
}

/* شبكة الشارات باللوحة */
.badge.dim{ opacity:.42; filter:grayscale(.7); }
.badge.owned{
  border-color:var(--gold);
  background:linear-gradient(160deg,rgba(255,209,102,.2),var(--surface));
}
.badge-tick{
  position:absolute; top:5px; inset-inline-end:6px;
  width:17px; height:17px; border-radius:50%;
  background:var(--gold); color:#2A1D00;
  font-size:10px; font-weight:900; display:grid; place-items:center;
}

.stat-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-bottom:14px;
}
.stat-strip .ss{
  background:var(--bg-2); border:1px solid var(--line-soft);
  border-radius:11px; padding:9px 4px; text-align:center; min-width:0;
}
.ss-v{
  font-family:"Lalezar",sans-serif; font-size:17px; color:var(--cyan);
  font-variant-numeric:tabular-nums; line-height:1.25;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.ss-l{ font-size:9.5px; color:var(--muted); font-weight:700; }

.chat-log{ display:flex; flex-direction:column; gap:7px; max-height:420px; overflow-y:auto; }
.log-row{
  display:flex; align-items:flex-start; gap:9px;
  background:var(--surface); border:1px solid var(--line-soft);
  border-radius:11px; padding:9px 11px;
}
.log-av{ font-size:18px; flex:none; line-height:1.3; }
.log-b{ flex:1; min-width:0; }
.log-top{ display:flex; gap:7px; align-items:baseline; flex-wrap:wrap; font-size:11px; }
.log-top b{ color:var(--cyan); font-weight:800; }
.log-top span{ color:var(--faint); }
.log-t{ font-size:13.5px; line-height:1.55; overflow-wrap:anywhere; margin-top:2px; }

.price-row{
  display:flex; align-items:center; gap:10px;
  padding:7px 0; border-bottom:1px solid var(--line-soft);
}
.price-row:last-child{ border-bottom:0; }
.price-l{ flex:1; min-width:0; font-size:13px; font-weight:600; }
.price-i{
  width:92px; flex:none; text-align:center; padding:8px 6px;
  font-weight:800; font-variant-numeric:tabular-nums; direction:ltr;
}

.title-grid{ display:flex; flex-wrap:wrap; gap:7px; }
.title-opt{
  background:var(--surface); border:1px solid var(--line); color:var(--muted);
  border-radius:999px; padding:8px 13px; font-size:12.5px; font-weight:700;
  cursor:pointer; transition: background .16s, color .16s, border-color .16s;
}
.title-opt:hover{ border-color:var(--cyan); }
.title-opt.is-on{
  background:rgba(199,125,255,.16); border-color:var(--cyan); color:var(--cyan);
}

/* الطبقة (الألعاب) */
.stage{
  position:fixed; inset:0; z-index:80;
  background: var(--bg);
  display:flex; flex-direction:column;
}
.stage-bar{
  display:flex; align-items:center; gap:11px;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  border-bottom:1px solid var(--line-soft);
  background: var(--bg-2);
}
.stage-bar .icon-btn svg{ transform: scaleX(-1); }
.stage-title{ flex:1; font-family:"Lalezar",sans-serif; font-size:18px; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stage-score{ font-size:12px; color:var(--muted); flex:none; }
.stage-score b{ font-family:"Lalezar",sans-serif; font-size:18px; color:var(--cyan);
  font-variant-numeric:tabular-nums; margin-inline-start:4px; }
.stage-body{ flex:1; overflow:auto; display:flex; flex-direction:column;
  padding: 14px 16px calc(18px + var(--safe-b)); }

.play-wrap{ flex:1; display:flex; flex-direction:column; gap:12px; align-items:center; justify-content:center; }
canvas.game{
  width:100%; max-width:440px; aspect-ratio:3/4; max-height:100%;
  background:var(--bg-2); border:1px solid var(--line);
  border-radius:var(--r); touch-action:none; display:block;
}
.hint{ font-size:12.5px; color:var(--faint); text-align:center; max-width:340px; line-height:1.6; }

.over{
  text-align:center; padding:26px 18px; max-width:340px; margin:auto;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
}
.over-em{ font-size:44px; line-height:1; margin-bottom:10px; }
.over-t{ font-family:"Lalezar",sans-serif; font-size:24px; margin-bottom:4px; }
.over-s{ font-size:13.5px; color:var(--muted); margin-bottom:8px; }
.over-v{ font-family:"Lalezar",sans-serif; font-size:46px; color:var(--cyan);
  font-variant-numeric:tabular-nums; line-height:1.1; direction:ltr; }
.over-rw{
  display:inline-flex; gap:12px; margin:12px 0 18px; padding:7px 14px;
  background:var(--bg-2); border:1px solid var(--line); border-radius:999px;
  font-size:12.5px; font-weight:800;
}
.over-rw .xp{ color:var(--violet); }
.over-rw .co{ color:var(--gold); }
.over-btns{ display:flex; gap:9px; }
.over-btns .btn{ flex:1; }

/* الشريط السفلي */
.tabs{
  position:fixed; inset-inline:0; bottom:0; z-index:50;
  display:flex; justify-content:space-around; gap:2px;
  background: rgba(18,14,36,.95);
  backdrop-filter: blur(16px);
  border-top:1px solid var(--line);
  padding: 7px 6px calc(7px + var(--safe-b));
}
.tab{
  flex:1; min-width:0; background:none; border:0; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:5px 2px; color:var(--faint); border-radius:11px;
  transition: color .16s, background .16s;
}
.tab svg{ width:21px; height:21px; fill:currentColor; }
.tab span{ font-size:9.5px; font-weight:700; }
.tab.is-on{ color:var(--violet); background:rgba(255,95,168,.13); }
.tab-owner.is-on{ color:var(--gold); background:rgba(255,209,102,.13); }

/* تنبيه */
.toast{
  position:fixed; inset-inline:16px; bottom: calc(86px + var(--safe-b)); z-index:200;
  margin-inline:auto; max-width:330px;
  background:var(--raise); border:1px solid var(--violet);
  border-radius:13px; padding:12px 15px; text-align:center;
  font-size:13.5px; font-weight:700; box-shadow:var(--shadow);
  animation: toastIn .3s cubic-bezier(.2,.9,.2,1);
}
.toast.gold{ border-color:var(--gold); background:linear-gradient(145deg,#4A3510,var(--raise)); }
@keyframes toastIn{ from{ opacity:0; transform:translateY(14px) scale(.96);} to{ opacity:1; transform:none; } }

/* نافذة */
.modal{
  position:fixed; inset:0; z-index:150;
  background: rgba(5,4,12,.78); backdrop-filter: blur(5px);
  display:grid; place-items:center; padding:20px;
}
.modal-card{
  width:100%; max-width:380px;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:20px; box-shadow:var(--shadow);
  max-height:80vh; overflow:auto;
  animation: fadeUp .25s cubic-bezier(.2,.8,.2,1);
}
.modal-title{ font-family:"Lalezar",sans-serif; font-size:20px; margin-bottom:10px; }
.modal-body{ font-size:14px; color:var(--muted); line-height:1.65; margin-bottom:16px; }
.modal-foot{ display:flex; gap:9px; }
.modal-foot .btn{ flex:1; }

/* عناصر مشتركة */
.empty{ text-align:center; padding:34px 18px; color:var(--faint); }
.empty-em{ font-size:32px; margin-bottom:8px; }
.empty-t{ font-size:13.5px; line-height:1.6; }

.pill{
  display:inline-block; padding:2px 9px; border-radius:999px;
  font-size:10.5px; font-weight:800;
  background:var(--raise); color:var(--muted);
}
.pill-v{ background:rgba(255,95,168,.2); color:#FFA8D8; }
.pill-c{ background:rgba(199,125,255,.16); color:var(--cyan); }
.pill-g{ background:rgba(255,209,102,.16); color:var(--gold); }
.pill-r{ background:rgba(255,77,109,.16); color:var(--red); }

.stack{ display:flex; flex-direction:column; gap:10px; }
.split{ display:flex; gap:9px; align-items:center; }
.split>*{ flex:1; min-width:0; }
.split>.flex-none{ flex:none; }

.big-code{
  font-family:"Lalezar",sans-serif; font-size:40px; letter-spacing:8px;
  direction:ltr; text-align:center; color:var(--cyan);
  background:var(--bg-2); border:1px dashed var(--line);
  border-radius:var(--r); padding:16px 10px; margin-block:12px;
  padding-inline-start:18px;
}

.word-reveal{
  text-align:center; padding:28px 18px; border-radius:var(--r-lg);
  border:1px solid var(--line); background:var(--surface);
}
.word-role{ font-size:12px; font-weight:800; letter-spacing:2px; color:var(--muted); margin-bottom:8px; }
.word-main{ font-family:"Lalezar",sans-serif; font-size:34px; line-height:1.2; }
.word-main.imp{ color:var(--red); }
.word-main.crew{ color:var(--green); }
.word-cat{ margin-top:10px; font-size:13px; color:var(--muted); }
.word-cat b{ color:var(--cyan); }
.mission{
  margin-top:16px; padding:12px 14px; border-radius:12px;
  background:rgba(255,95,168,.12); border:1px solid rgba(255,95,168,.35);
  font-size:13px; line-height:1.6;
}
.mission b{ color:#FFA8D8; display:block; font-size:11px; letter-spacing:1px; margin-bottom:3px; }

.plist{ display:flex; flex-direction:column; gap:7px; }
.pl{
  display:flex; align-items:center; gap:10px; padding:9px 12px;
  background:var(--surface); border:1px solid var(--line); border-radius:12px;
}
.pl-av{ font-size:19px; flex:none; }
.pl-n{ flex:1; font-size:13.5px; font-weight:700; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pl.host{ border-color:rgba(255,209,102,.4); }
.pl.voted{ border-color:rgba(199,125,255,.4); }
.pl.out{ opacity:.45; }
.pl.out .pl-n{ text-decoration:line-through; }

.timer-ring{
  font-family:"Lalezar",sans-serif; font-size:28px; color:var(--cyan);
  font-variant-numeric:tabular-nums; text-align:center; direction:ltr;
}
.timer-ring.warn{ color:var(--red); }

.qz-prog{ display:flex; gap:4px; margin-bottom:14px; }
.qz-prog i{ flex:1; height:4px; border-radius:99px; background:var(--line); }
.qz-prog i.ok{ background:var(--green); }
.qz-prog i.no{ background:var(--red); }
.qz-prog i.now{ background:var(--cyan); }

/* ============================================================
   المتجر
   ============================================================ */
.shop-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.shop-bal{
  flex:none; text-align:center; padding:8px 14px; border-radius:14px;
  background:rgba(255,209,102,.12); border:1px solid rgba(255,209,102,.4);
}
.shop-bal span{ display:block; font-size:10.5px; color:var(--muted); font-weight:700; }
.shop-bal b{ font-family:"Lalezar",sans-serif; font-size:20px; color:var(--gold); font-variant-numeric:tabular-nums; }

.shop-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:9px; }
@media (max-width:380px){ .shop-grid{ grid-template-columns:repeat(2, 1fr); } }

.shop-card{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:13px 8px 9px; text-align:center;
  background:var(--surface); border:1px solid var(--line); border-radius:16px;
}
.shop-card.own{ border-color:rgba(199,125,255,.4); }
.shop-card.on{ border-color:var(--cyan); background:linear-gradient(160deg, rgba(199,125,255,.14), var(--surface)); }
.sc-prev{ height:62px; display:grid; place-items:center; }
.sc-name{ font-size:12.5px; font-weight:800; line-height:1.35; }
.sc-sub{ font-size:10.5px; color:var(--faint); line-height:1.35; }
.sc-btn{ margin-top:auto; padding:7px 6px !important; font-size:12px !important; }

.shop-banner{
  width:100%; margin-top:14px; cursor:pointer;
  display:flex; align-items:center; gap:12px; text-align:start;
  padding:14px 16px; border-radius:var(--r);
  background:linear-gradient(135deg, rgba(255,209,102,.18), rgba(255,95,168,.16));
  border:1px solid rgba(255,209,102,.45);
  transition:transform .15s;
}
.shop-banner:hover{ transform:translateY(-2px); }
.sbn-i{ font-size:30px; flex:none; }
.sbn-t{ flex:1; min-width:0; display:flex; flex-direction:column; }
.sbn-t b{ font-family:"Lalezar",sans-serif; font-size:19px; font-weight:400; }
.sbn-t small{ font-size:11px; color:var(--muted); }
.sbn-c{ flex:none; font-weight:800; color:var(--gold); font-variant-numeric:tabular-nums; }

/* معاينة شخصية الدخيل بالحركة */
.shp{
  position:relative; display:inline-grid; place-items:center;
  width:46px; height:46px; border-radius:50%;
  border:3.5px solid #C77DFF; background:#1F1940;
  font-size:22px; line-height:1;
}
.shp.big{ width:66px; height:66px; font-size:32px; border-width:4.5px; }
.shp-hat{
  position:absolute; top:-16px; left:50%; transform:translateX(-45%);
  font-style:normal; font-size:18px; line-height:1;
}
.shp.big .shp-hat{ top:-24px; font-size:26px; }
.shp-pet{
  position:absolute; bottom:-6px; right:-20px;
  font-style:normal; font-size:17px; line-height:1;
}
.shp.big .shp-pet{ right:-30px; bottom:-8px; font-size:24px; }
.shp-rb{ border-color:transparent !important; background:#2A2150; }

/* ============================================================
   ألوان الأسماء
   ============================================================ */
.nm-cyan{ color:#C77DFF !important; }
.nm-red{ color:#FF4D6D !important; }
.nm-green{ color:#5FE0B5 !important; }
.nm-pink{ color:#F472B6 !important; }
.nm-gold{ color:#FFD166 !important; text-shadow:0 0 10px rgba(255,209,102,.45); }
.nm-rainbow{
  background:linear-gradient(90deg,#FF4D6D,#FFD166,#5FE0B5,#C77DFF,#FFA8D8,#FF4D6D);
  background-size:200% 100%;
  -webkit-background-clip:text; background-clip:text;
  color:transparent !important; -webkit-text-fill-color:transparent;
  animation:rainbowText 3s linear infinite;
}
@keyframes rainbowText{ to{ background-position:200% 0; } }

/* ============================================================
   الإطارات حول الصورة
   ============================================================ */
.avw{
  display:inline-grid; place-items:center; line-height:1;
  width:1.55em; height:1.55em; border-radius:50%;
}
.fr-gold   { box-shadow:0 0 0 2.5px #FFD166, 0 0 10px rgba(255,209,102,.55) !important; }
.fr-fire   { box-shadow:0 0 0 2.5px #FF9ECF, 0 0 12px #FF4D6D, 0 0 20px rgba(255,138,61,.5) !important; }
.fr-ice    { box-shadow:0 0 0 2.5px #9BE7FF, 0 0 12px #C77DFF !important; }
.fr-neon   { box-shadow:0 0 0 2.5px #FFA8D8, 0 0 14px #FF5FA8, 0 0 24px rgba(255,95,168,.5) !important; }
.fr-rainbow{ position:relative; box-shadow:0 0 14px rgba(199,125,255,.45) !important; }
@property --rb{ syntax:'<angle>'; inherits:false; initial-value:0deg; }
.fr-rainbow::after{
  content:""; position:absolute; inset:-3px; border-radius:inherit; padding:3px;
  background:conic-gradient(from var(--rb), #FF4D6D,#FFD166,#5FE0B5,#C77DFF,#FFA8D8,#FF4D6D);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  animation:ringSpin 3s linear infinite; pointer-events:none;
}
@keyframes ringSpin{ to{ --rb:360deg; } }

/* ============================================================
   الدخيل بالحركة — شاشة كاملة
   ============================================================ */
body.sh-play{ overflow:hidden; overscroll-behavior:none; }
body.sh-play .chat-fab,
body.sh-play .chat-sheet{ display:none !important; }

.sh-wrap{
  position:fixed; inset:0; z-index:60;
  background:#07060F; touch-action:none;
  -webkit-user-select:none; user-select:none;
}
.sh-wrap canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }

.sh-top{
  position:absolute; inset-inline:0; top:0;
  padding: calc(10px + var(--safe-t)) 12px 8px;
  background:linear-gradient(180deg, rgba(7,6,15,.92), rgba(7,6,15,0));
  display:flex; flex-direction:column; gap:7px;
  pointer-events:none;
}
.sh-top > *{ pointer-events:auto; }
.sh-row{ display:flex; align-items:center; gap:9px; }
.sh-role{
  flex:none; font-size:12px; font-weight:800; padding:5px 11px; border-radius:99px;
  border:1px solid var(--line); background:var(--surface);
}
.sh-role.crew{ color:var(--cyan); border-color:rgba(199,125,255,.45); }
.sh-role.imp{ color:var(--red); border-color:rgba(255,77,109,.5); background:rgba(255,77,109,.12); }
.sh-role.ghost{ color:var(--muted); }
.sh-prog{ flex:1; min-width:0; }
.sh-prog-l{ display:flex; justify-content:space-between; font-size:10.5px; color:var(--muted); margin-bottom:3px; }
.sh-prog-l b{ color:var(--green); font-variant-numeric:tabular-nums; }
.sh-prog .bar > i{ background:linear-gradient(90deg,var(--green),#7CF5C4); }
.sh-exit{ width:32px; height:32px; border-radius:10px; }
.sh-exit svg{ width:15px; height:15px; }

.sh-tasks{ display:flex; gap:5px; flex-wrap:wrap; }
.sh-tk{
  font-size:11px; font-weight:700; padding:3px 9px; border-radius:99px;
  background:rgba(23,19,43,.85); border:1px solid rgba(255,209,102,.35); color:var(--gold);
}
.sh-tk.ok{ border-color:rgba(95,224,181,.4); color:var(--green); text-decoration:line-through; opacity:.8; }
.sh-tk.fake{ border-color:rgba(255,77,109,.4); color:var(--red); }

.sh-joy{
  position:absolute; left:22px; bottom: calc(26px + var(--safe-b));
  width:124px; height:124px; border-radius:50%;
  background:rgba(31,25,64,.55); border:2px solid rgba(155,146,196,.35);
  touch-action:none;
}
.sh-knob{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:52px; height:52px; border-radius:50%;
  background:linear-gradient(145deg,var(--violet),var(--violet-lo));
  box-shadow:var(--glow-v); pointer-events:none;
}

.sh-acts{
  position:absolute; right:18px; bottom: calc(24px + var(--safe-b));
  display:flex; flex-direction:column-reverse; gap:12px; align-items:center;
}
.sh-btn{
  --p:0;
  position:relative; width:74px; height:74px; border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  font-size:26px; line-height:1; cursor:pointer;
  background:rgba(31,25,64,.9); border:2px solid var(--line); color:var(--text);
  touch-action:none;
}
.sh-btn span{ font-size:10.5px; font-weight:800; font-family:"Cairo",sans-serif; }
.sh-btn.gold{ border-color:var(--gold); }
.sh-btn.red{ border-color:var(--red); background:rgba(80,18,36,.92); }
.sh-btn:disabled{ opacity:.45; }
.sh-btn.holding::after{
  content:""; position:absolute; inset:-5px; border-radius:50%;
  background:conic-gradient(var(--gold) calc(var(--p) * 360deg), transparent 0);
  -webkit-mask:radial-gradient(circle, transparent 38px, #000 39px);
          mask:radial-gradient(circle, transparent 38px, #000 39px);
}

.sh-banner{
  position:absolute; left:50%; top:42%; transform:translate(-50%,-50%);
  width:min(88%, 340px); text-align:center; padding:22px 18px;
  background:rgba(23,19,43,.96); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--shadow);
  animation:fadeUp .3s cubic-bezier(.2,.8,.2,1);
  pointer-events:none;
}
.sb-em{ font-size:46px; line-height:1; margin-bottom:8px; }
.sb-t{ font-family:"Lalezar",sans-serif; font-size:25px; }
.sb-s{ font-size:13px; color:var(--muted); margin-top:6px; line-height:1.6; }

/* ============================================================
   حرب الدبابات
   ============================================================ */
.tk-wrap{
  position:fixed; inset:0; z-index:60; background:#0B0F09;
  display:flex; flex-direction:column;
  padding-top:var(--safe-t); padding-bottom:var(--safe-b);
  touch-action:none; -webkit-user-select:none; user-select:none;
}
.tk-top{ padding:10px 12px 8px; display:flex; flex-direction:column; gap:7px; }
.tk-row{ display:flex; align-items:center; gap:10px; }
.tk-hp{ flex:1; min-width:0; }
.tk-hp-l{ display:flex; justify-content:space-between; font-size:11px; color:var(--muted); margin-bottom:3px; }
.tk-hp-l b{ color:var(--text); font-variant-numeric:tabular-nums; }
.tk-hp .bar{ height:8px; }
.tk-hp .bar > i{ transition:width .2s, background .2s; }
.tk-clock{
  flex:none; font-family:"Lalezar",sans-serif; font-size:22px; color:var(--gold);
  font-variant-numeric:tabular-nums; direction:ltr; min-width:52px; text-align:center;
}
.tk-clock.warn{ color:var(--red); }
.tk-scores{ display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; }
.tk-scores::-webkit-scrollbar{ display:none; }
.tk-sc{
  flex:none; display:flex; align-items:center; gap:5px;
  padding:3px 10px; border-radius:99px; font-size:14px;
  background:var(--surface); border:2px solid var(--line);
}
.tk-sc b{ font-size:13px; font-variant-numeric:tabular-nums; }
.tk-sc.me{ background:rgba(199,125,255,.14); }

.tk-arena{
  flex:1; min-height:0; position:relative;
  display:grid; place-items:center; padding:0 8px;
}
.tk-arena canvas{ border-radius:10px; box-shadow:0 0 0 2px #3A3226, 0 20px 40px -20px #000; }

.tk-ctrl{
  direction:ltr;          /* العصا يسار والضرب يمين — مثل كل ألعاب الجوال */
  flex:none; height:168px; position:relative;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 22px;
}
.tk-joy{ position:relative !important; left:auto !important; bottom:auto !important; }
.tk-fire{
  width:104px; height:104px; border-radius:50%; flex:none;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  font-size:34px; line-height:1; cursor:pointer; color:#fff;
  background:radial-gradient(circle at 35% 30%, #FF9ECF, #D8434F 70%);
  border:3px solid rgba(255,255,255,.18);
  box-shadow:0 10px 24px -8px rgba(216,67,79,.8);
  touch-action:none;
}
.tk-fire span{ font-size:12px; font-weight:800; font-family:"Cairo",sans-serif; }
.tk-fire.on{ transform:scale(.94); filter:brightness(1.15); }

/* ============================================================
   الديوانية
   ============================================================ */
.tab{ position:relative; }
.tab-dot{
  position:absolute; top:5px; inset-inline-end:calc(50% - 16px);
  width:8px; height:8px; border-radius:50%; background:var(--red);
  border:2px solid var(--bg-2);
}
.tab-count{
  position:absolute; top:2px; inset-inline-start:calc(50% - 20px);
  min-width:16px; height:16px; padding:0 4px; border-radius:99px;
  background:var(--green); color:#04221A; font-size:9.5px; font-weight:900;
  display:grid; place-items:center; font-style:normal;
}

.online-strip{
  display:flex; gap:8px; overflow-x:auto; padding-bottom:4px;
  scrollbar-width:none;
}
.online-strip::-webkit-scrollbar{ display:none; }
.on-chip{
  flex:none; display:flex; flex-direction:column; align-items:center; gap:2px;
  width:74px; padding:9px 4px 7px; cursor:pointer;
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
}
.on-chip.me{ border-color:var(--cyan); cursor:default; }
.on-av{ position:relative; font-size:24px; line-height:1; }
.on-dot{
  position:absolute; bottom:-1px; inset-inline-end:-3px;
  width:10px; height:10px; border-radius:50%;
  background:var(--green); border:2px solid var(--surface);
}
.on-n{ font-size:11.5px; font-weight:800; max-width:66px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.on-w{ font-size:9px; color:var(--faint); max-width:66px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.lounge-list{ display:flex; flex-direction:column; gap:9px; }

.lounge-bar{
  position:fixed; z-index:45; inset-inline:0;
  bottom: calc(64px + var(--safe-b));
  display:flex; gap:8px; padding:9px 14px;
  background:rgba(18,14,36,.97); backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  max-width:760px; margin-inline:auto;
}
.lounge-bar .inp{ padding:11px 12px; }

.ban-screen{
  position:fixed; inset:0; z-index:500; background:var(--bg);
  display:grid; place-items:center; padding:24px;
}
.ban-card{
  text-align:center; max-width:360px; padding:28px 22px;
  background:var(--surface); border:1px solid rgba(255,77,109,.4);
  border-radius:var(--r-lg);
}

/* ============================================================
   الرصيد يومض لمّا ينخصم
   ============================================================ */
.hud-coins.drop{ animation:coinDrop 1.1s ease; }
@keyframes coinDrop{
  0%  { background:rgba(255,77,109,.45); border-color:var(--red); color:#fff; transform:scale(1.12); }
  60% { background:rgba(255,77,109,.2);  border-color:var(--red); transform:scale(1); }
  100%{ background:rgba(255,209,102,.12); border-color:rgba(255,209,102,.32); }
}

.pay-box{ background:var(--bg-2); border:1px solid var(--line); border-radius:13px; padding:4px 13px; }
.pay-row{
  display:flex; justify-content:space-between; align-items:center;
  padding:9px 0; font-size:13.5px; border-bottom:1px solid var(--line-soft);
  color:var(--muted);
}
.pay-row:last-child{ border-bottom:0; }
.pay-row b{ font-variant-numeric:tabular-nums; color:var(--text); direction:ltr; }
.pay-row.cost b{ color:var(--red); }
.pay-row.total b{ color:var(--gold); font-size:16px; }

/* ============================================================
   شات الغرفة
   ============================================================ */
.chat-fab{
  position:fixed; z-index:90;
  inset-inline-start:16px; bottom: calc(84px + var(--safe-b));
  width:54px; height:54px; border-radius:50%;
  background:linear-gradient(145deg,var(--cyan),#7A2FAF);
  border:0; font-size:24px; cursor:pointer;
  box-shadow:var(--glow-c); display:grid; place-items:center;
}
.chat-fab.ping{ animation:fabPing 1.6s ease infinite; }
body.has-fab .view{ padding-bottom: calc(160px + var(--safe-b)); }
@keyframes fabPing{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.1); } }
.chat-badge{
  position:absolute; top:-3px; inset-inline-end:-3px;
  min-width:20px; height:20px; padding:0 5px; border-radius:99px;
  background:var(--red); color:#fff; font-size:11px; font-weight:800;
  display:grid; place-items:center; border:2px solid var(--bg);
}

.chat-sheet{
  position:fixed; z-index:95;
  inset-inline:0; bottom:0;
  height:min(72vh, 560px);
  max-width:560px; margin-inline:auto;
  background:var(--surface); border:1px solid var(--line);
  border-radius:22px 22px 0 0; box-shadow:0 -20px 50px -10px rgba(0,0,0,.8);
  display:flex; flex-direction:column;
  padding-bottom:var(--safe-b);
  animation:sheetUp .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes sheetUp{ from{ transform:translateY(40px); opacity:0; } to{ transform:none; opacity:1; } }

.chat-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; border-bottom:1px solid var(--line-soft);
  font-family:"Lalezar",sans-serif; font-size:17px;
}
.chat-head .icon-btn{ width:32px; height:32px; }
.chat-head .icon-btn svg{ width:16px; height:16px; }

.chat-list{ flex:1; overflow-y:auto; padding:12px 14px; display:flex; flex-direction:column; gap:9px; }

.msg{ display:flex; gap:8px; align-items:flex-end; max-width:86%; }
.msg.me{ align-self:flex-end; flex-direction:row-reverse; }
.msg-av{ font-size:20px; flex:none; line-height:1; }
.msg-b{
  background:var(--surface-2); border:1px solid var(--line);
  border-radius:15px; padding:7px 11px; min-width:0;
}
.msg.me .msg-b{ background:rgba(255,95,168,.22); border-color:rgba(255,95,168,.45); }
.msg-top{ display:flex; gap:8px; align-items:baseline; font-size:11px; }
.msg-top b{ color:var(--cyan); font-weight:800; }
.msg.me .msg-top b{ color:#C5B0FF; }
.msg-top span{ color:var(--faint); font-variant-numeric:tabular-nums; }
.msg-t{ font-size:14px; line-height:1.55; overflow-wrap:anywhere; }

.chat-quick{
  display:flex; gap:6px; overflow-x:auto; padding:8px 14px 2px;
  scrollbar-width:none;
}
.chat-quick::-webkit-scrollbar{ display:none; }
.chat-quick .chip{ padding:6px 11px; font-size:12px; }

.chat-form{ display:flex; gap:8px; padding:9px 14px; }
.chat-form .inp{ padding:11px 12px; }
.chat-note{ margin:0; padding:0 14px 10px; font-size:10.5px; color:var(--faint); text-align:center; }

/* ============================================================
   ارسم وخمّن
   ============================================================ */
.col-dot{
  width:26px; height:26px; border-radius:50%; border:2px solid var(--line);
  cursor:pointer; padding:0; flex:none; transition:transform .12s, border-color .12s;
}
.col-dot:hover{ transform:scale(1.12); }
.col-dot.is-on{ border-color:var(--text); transform:scale(1.15); }

/* ============================================================
   سبوت
   ============================================================ */
.spot-stage{
  width:100%; border:2px solid var(--line); border-radius:24px;
  background:linear-gradient(160deg,var(--surface-2),var(--surface));
  padding:26px 18px; cursor:pointer; display:flex; flex-direction:column;
  align-items:center; gap:10px; transition:border-color .15s, background .15s;
  user-select:none; -webkit-user-select:none; touch-action:manipulation;
}
.spot-stage.good{ border-color:var(--green); background:linear-gradient(160deg,rgba(95,224,181,.18),var(--surface)); }
.spot-stage.bad{ border-color:var(--red);   background:linear-gradient(160deg,rgba(255,77,109,.18),var(--surface)); }
.spot-stage.locked{ opacity:.5; cursor:not-allowed; }
.spot-stage.hit{ animation:tugHit .13s ease; }

.spot-sym{ font-size:76px; line-height:1; }
.spot-sym.pop{ animation:symPop .22s cubic-bezier(.2,.9,.3,1.4); }
@keyframes symPop{ from{ transform:scale(.55); opacity:.2; } to{ transform:scale(1); opacity:1; } }

.spot-note{ font-size:13px; font-weight:700; color:var(--muted); text-align:center; }

.spot-card{
  display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:8px;
}
.spot-chip{
  width:50px; height:50px; display:grid; place-items:center; font-size:26px;
  border-radius:14px; background:var(--bg-2); border:2px solid var(--line);
  transition:border-color .12s, transform .12s, background .12s;
}
.spot-chip.lit{
  border-color:var(--green); background:rgba(95,224,181,.2); transform:scale(1.12);
}

/* ============================================================
   شد الحبل
   ============================================================ */
.tug-track{
  position:relative; height:54px; border-radius:16px; overflow:hidden;
  background:linear-gradient(90deg, rgba(255,77,109,.22), rgba(199,125,255,.22));
  border:1px solid var(--line);
}
.tug-fill{
  position:absolute; inset-block:0; inset-inline-start:0;
  background:linear-gradient(90deg, rgba(199,125,255,.45), rgba(199,125,255,.15));
  transition:width .12s linear;
}
.tug-knot{
  position:absolute; top:50%; transform:translateY(-50%);
  font-size:26px; line-height:1; transition:inset-inline-start .12s linear;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.6));
}
.tug-btn{
  width:100%; margin-top:14px; padding:20px;
  display:flex; flex-direction:column; align-items:center; gap:4px;
  background:linear-gradient(145deg,var(--violet),var(--violet-lo));
  border:0; border-radius:20px; color:#fff;
  font-family:"Lalezar",sans-serif; font-size:20px; cursor:pointer;
  box-shadow:var(--glow-v); user-select:none; -webkit-user-select:none;
  touch-action:manipulation;
}
.tug-btn.hit{ animation:tugHit .13s ease; }
@keyframes tugHit{ 50%{ transform:scale(.94); filter:brightness(1.3); } }

/* ============================================================
   تثبيت التطبيق بالشاشة الرئيسية
   ============================================================ */
.install-bar{
  position:fixed; inset-inline:12px; bottom: calc(80px + var(--safe-b)); z-index:120;
  margin-inline:auto; max-width:440px;
  display:flex; align-items:center; gap:11px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border:1px solid var(--violet); border-radius:16px;
  padding:11px 13px; box-shadow: var(--shadow);
  animation: toastIn .35s cubic-bezier(.2,.9,.2,1);
}
.ib-icon{ width:40px; height:40px; border-radius:11px; flex:none; }
.ib-txt{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.35; }
.ib-txt strong{ font-size:13px; }
.ib-txt span{ font-size:11px; color:var(--muted); }
.install-bar .icon-btn{ width:30px; height:30px; border-radius:9px; }
.install-bar .icon-btn svg{ width:15px; height:15px; }

/* خطوات التثبيت على الآيفون */
.ios-steps{ display:flex; flex-direction:column; gap:12px; }
.ios-step{ display:flex; gap:11px; align-items:flex-start; }
.ios-step-n{
  width:24px; height:24px; flex:none; border-radius:50%;
  background:var(--violet); color:#fff; display:grid; place-items:center;
  font-size:12px; font-weight:800; font-family:"Lalezar",sans-serif;
}
.ios-step-t{ font-size:13.5px; color:var(--text); line-height:1.6; }
.ios-step-t b{ color:var(--cyan); }

/* ============================================================
   تحسينات النقال
   ============================================================ */
body{
  overscroll-behavior-y: contain;   /* يمنع سحب الصفحة أثناء اللعب */
}

/* ما ينختار النص عند اللمس المتكرر */
.tab, .btn, .opt, .gcard, .qbtn, .chip, .av-opt, .badge, .seg-btn,
.hud-me, .icon-btn, .pl, .stage-bar, .row{
  -webkit-user-select:none; user-select:none;
  -webkit-touch-callout:none;
}

/* مساحة لمس مريحة للأصابع الصغيرة */
@media (pointer: coarse){
  .btn{ min-height:44px; }
  .btn-sm{ min-height:36px; }
  .opt{ min-height:48px; }
  .tab{ min-height:48px; }
}

/* شاشات صغيرة جداً */
@media (max-width:360px){
  .hud-nick{ max-width:64px; }
  .tab span{ font-size:9px; }
  .avatar-grid{ grid-template-columns:repeat(6,1fr); }
  .brand-name{ font-size:24px; }
  .big-code{ font-size:32px; letter-spacing:6px; }
}

/* شاشة عريضة — الساحة تبقى بالوسط */
@media (min-width:860px){
  .tabs{ max-width:560px; margin-inline:auto; border-radius:18px 18px 0 0;
         border-inline:1px solid var(--line); }
}

/* لمّا يفتح كتطبيق مثبّت */
@media (display-mode: standalone){
  .install-bar{ display:none !important; }
  body{ overscroll-behavior: none; }
}

/* زر المشاركة */
.share-row{ display:flex; gap:8px; margin-top:10px; }
.share-row .btn{ flex:1; }

/* ============================================================
   👑 LUJAIN ROYALE
   ============================================================ */
.ry-wrap{ background:#07100A; }
.ry-wrap .tk-row{ gap:6px; }
.ry-chip{
  flex:none; display:inline-flex; align-items:center; gap:3px;
  padding:4px 9px; border-radius:99px; font-size:12.5px; font-weight:800;
  background:var(--surface); border:1px solid var(--line);
  font-variant-numeric:tabular-nums; white-space:nowrap;
}
.ry-zone{ flex:1; min-width:0; justify-content:center; color:#C9BCFF; border-color:rgba(138,108,255,.45); }
.ry-zone.warn{ color:#fff; background:rgba(98,62,214,.45); animation:ryPulse 1s infinite; }
@keyframes ryPulse{ 50%{ box-shadow:0 0 0 3px rgba(138,108,255,.35); } }

.ry-arena{ flex:1; min-height:0; position:relative; overflow:hidden; }
.ry-arena canvas{ position:absolute; inset:0; display:block; }
.ry-feed{
  position:absolute; top:8px; right:8px; width:min(56%, 230px);
  display:flex; flex-direction:column; gap:4px; align-items:flex-end;
  pointer-events:none;
}
.ry-f{
  font-size:11.5px; padding:3px 9px; border-radius:8px; max-width:100%;
  background:rgba(7,6,15,.72); color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  animation:fadeUp .25s ease;
}
.ry-f.me{ background:rgba(95,224,181,.18); border:1px solid rgba(95,224,181,.4); font-weight:800; }
.ry-f small{ font-size:10px; }

.ry-bars{ display:flex; gap:8px; padding:8px 12px 0; direction:ltr; }
.ry-bar{
  flex:1; position:relative; height:18px; border-radius:6px; overflow:hidden;
  background:rgba(255,255,255,.08); border:1px solid var(--line);
}
.ry-bar > i{ position:absolute; inset:0 auto 0 0; background:var(--green); transition:width .2s, background .2s; }
.ry-bar.sh > i{ background:linear-gradient(90deg,#1FA8C9,#C77DFF); }
.ry-bar span{
  position:relative; display:block; text-align:center; line-height:16px;
  font-size:11px; font-weight:800; color:#fff; text-shadow:0 1px 2px #000;
  font-variant-numeric:tabular-nums;
}

.ry-ctrl{ height:162px; gap:8px; padding:0 16px; }
.ry-weap{
  flex:1; min-width:0; max-width:130px; align-self:center;
  display:flex; flex-direction:column; align-items:center; gap:1px;
  padding:7px 6px; border-radius:14px; text-align:center;
  background:rgba(23,19,43,.8); border:2px solid var(--line);
  direction:rtl;
}
.ry-wi{ font-size:24px; line-height:1.1; }
.ry-weap b{ font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.ry-weap small{ font-size:10px; font-weight:700; }
.ry-acts{ display:flex; flex-direction:column; align-items:center; gap:8px; flex:none; }
.ry-acts .tk-fire{ width:94px; height:94px; }
.ry-pick{
  width:94px; height:46px; border-radius:14px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:5px;
  font-size:20px; color:#fff; background:rgba(31,25,64,.95);
  border:2px solid var(--gold); touch-action:none;
  animation:fadeUp .2s ease;
}
.ry-pick span{ font-size:12px; font-weight:800; font-family:"Cairo",sans-serif; }
.ry-pick[hidden]{ display:none; }
.ry-acts:has(.ry-pick:not([hidden])) .tk-fire{ width:86px; height:86px; font-size:30px; }

/* النتيجة */
.ry-win{
  text-align:center; padding:22px 16px 18px; border-radius:var(--r-lg);
  background:radial-gradient(120% 90% at 50% 0%, rgba(255,209,102,.22), transparent 60%), var(--surface);
  border:1px solid rgba(255,209,102,.35);
}
.ry-win.me{ box-shadow:0 0 0 2px var(--gold), 0 18px 40px -18px rgba(255,209,102,.6); }
.ry-crown{ font-size:40px; line-height:1; animation:ryBob 2s ease-in-out infinite; }
@keyframes ryBob{ 50%{ transform:translateY(-5px) rotate(-4deg); } }
.ry-los{
  font-family:"Lalezar",sans-serif; letter-spacing:1.5px; font-size:15px; color:var(--gold);
  direction:ltr; margin-top:4px;
}
.ry-av{ font-size:50px; line-height:1.2; margin-top:6px; }
.ry-wn{ font-size:24px; margin-top:2px; }
.ry-prize{
  display:inline-block; margin-top:8px; padding:4px 12px; border-radius:99px;
  background:rgba(255,209,102,.14); color:var(--gold); font-weight:800; font-size:13px;
  direction:ltr;
}
.ry-mine{ color:var(--muted); font-size:13.5px; margin:10px 0 0; }
.ry-mine b{ color:var(--text); }
.ry-king{ margin-top:14px; border-color:rgba(255,209,102,.4); }
.ry-king-t{ font-size:13.5px; font-weight:800; margin-bottom:10px; }
.ry-king-b{ display:flex; flex-wrap:wrap; gap:8px; }
.ry-king-b .btn{ flex:1 1 auto; min-width:0; font-size:13px; }

/* ============================================================
   🤫 ميزات لجين السرية
   ============================================================ */
.ali-fab{
  flex:none; width:32px; height:32px; border-radius:10px; cursor:pointer;
  display:grid; place-items:center; font-size:16px; line-height:1;
  background:rgba(255,209,102,.12); border:1px solid rgba(255,209,102,.4);
}
.ali-fab.off{ filter:grayscale(1); opacity:.55; }
.ali-fab-float{ position:fixed; left:12px; bottom:calc(84px + var(--safe-b)); z-index:40; width:38px; height:38px; }
.ali-sheet{ position:fixed; inset:0; z-index:200; display:flex; align-items:flex-end; justify-content:center; }
.ali-back{ position:absolute; inset:0; background:rgba(7,6,15,.55); }
.ali-panel{
  position:relative; width:min(100%, 480px); max-height:82vh; overflow:auto;
  background:var(--bg-2, #120F24); border:1px solid rgba(255,209,102,.35); border-bottom:0;
  border-radius:20px 20px 0 0; padding:14px 14px calc(16px + var(--safe-b));
  animation:fadeUp .25s cubic-bezier(.2,.8,.2,1);
  touch-action:pan-y;
}
.ali-head{ display:flex; align-items:flex-start; gap:10px; margin-bottom:6px; }
.ali-head > div{ flex:1; min-width:0; }
.ali-t{ font-family:"Lalezar",sans-serif; font-size:21px; color:var(--gold); }
.ali-s{ font-size:12px; color:var(--muted); }
.ali-sec{ font-size:11.5px; font-weight:800; color:var(--faint); margin:12px 2px 4px; letter-spacing:.3px; }
.ali-row{
  display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:12px;
  background:var(--surface); border:1px solid var(--line); margin-bottom:6px;
}
.ali-row.col{ flex-wrap:wrap; }
.ali-row.col .ali-ctl{ flex-basis:100%; }
.ali-ic{ font-size:20px; flex:none; width:26px; text-align:center; }
.ali-tx{ flex:1; min-width:0; display:flex; flex-direction:column; }
.ali-tx b{ font-size:13.5px; }
.ali-tx small{ font-size:11.5px; color:var(--muted); line-height:1.5; }
.ali-tg{
  flex:none; width:46px; height:26px; border-radius:99px; position:relative; cursor:pointer;
  background:rgba(255,255,255,.12); border:1px solid var(--line); transition:background .15s;
}
.ali-tg i{
  position:absolute; top:2px; right:2px; width:20px; height:20px; border-radius:50%;
  background:#fff; transition:right .15s;
}
.ali-tg.on{ background:var(--gold); border-color:var(--gold); }
.ali-tg.on i{ right:22px; }
.ali-seg{ display:flex; gap:5px; }
.ali-seg button{
  flex:1; min-width:0; padding:6px 0; border-radius:9px; cursor:pointer;
  font:800 12px "Cairo",sans-serif; color:var(--text);
  background:rgba(255,255,255,.06); border:1px solid var(--line);
}
.ali-seg button.on{ background:rgba(255,209,102,.2); border-color:var(--gold); color:var(--gold); }
.ali-sheet.all-off .ali-row:not(.master){ opacity:.45; }
.ali-tip{ font-size:11.5px; color:var(--faint); text-align:center; margin:12px 0 0; }
.opt.ali-gone{ opacity:.18; text-decoration:line-through; }

/* ============================================================
   🔤 إنسان حيوان نبات جماد بلاد
   ============================================================ */
.lt-head{ display:flex; gap:10px; align-items:stretch; margin-bottom:10px; }
.lt-letter{
  flex:none; width:74px; border-radius:16px; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  background:linear-gradient(150deg,#1BA6C4,#146F9E); box-shadow:0 10px 24px -12px rgba(199,125,255,.7);
}
.lt-letter small{ font-size:10.5px; font-weight:800; opacity:.85; }
.lt-letter b{ font-family:"Lalezar",sans-serif; font-size:44px; line-height:1; }
.lt-ask{
  flex:1; min-width:0; padding:10px 12px; border-radius:16px;
  background:var(--surface); border:1px solid var(--line);
  display:flex; flex-direction:column; gap:3px;
}
.lt-ask-t{ font-size:17px; font-weight:800; }
.lt-hl{ color:var(--cyan); font-size:20px; }
.lt-ask-s{ font-size:11.5px; color:var(--muted); line-height:1.5; }
.lt-time{ height:6px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; margin-top:auto; }
.lt-time i{ display:block; height:100%; width:0; background:var(--cyan); border-radius:99px; transition:width .12s linear; }
.lt-time i.warn{ background:var(--red); }

.lt-slots{ display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:5px; margin-bottom:10px; }
.lt-slot{
  min-width:0; padding:6px 3px; border-radius:11px; text-align:center;
  background:var(--surface); border:1.5px dashed var(--line);
  display:flex; flex-direction:column; gap:2px;
}
.lt-slot small{ font-size:10px; color:var(--muted); white-space:nowrap; }
.lt-slot b{ font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--faint); }
.lt-slot.now{ border-color:var(--cyan); border-style:solid; }
.lt-slot.ok{ background:rgba(95,224,181,.16); border:1.5px solid var(--green); }
.lt-slot.ok b{ color:var(--green); }
.lt-slot.ok small{ color:#A7F3D0; }

.lt-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; transition:opacity .15s; }
.lt-grid.pop{ animation:fadeUp .3s ease; }
.lt-grid.locked{ opacity:.45; pointer-events:none; }
.lt-tile{
  position:relative; min-width:0; min-height:62px; padding:8px 6px; border-radius:14px; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  background:var(--surface); border:1.5px solid var(--line); color:var(--text);
  font:800 17px "Cairo",sans-serif; line-height:1.3; text-align:center;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation;
}
.lt-tile:active, .lt-tile.press{ transform:scale(.95); }
.lt-w{ word-break:break-word; }
.lt-by{ font-size:11.5px; font-weight:700; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lt-tile.mine{ background:rgba(95,224,181,.2); border-color:var(--green); }
.lt-tile.mine .lt-by{ color:var(--green); }
.lt-tile.taken{ background:rgba(255,255,255,.04); opacity:.6; }
.lt-tile.taken .lt-w{ text-decoration:line-through; }
.lt-tile.wrong{ border-color:var(--red); background:rgba(255,77,109,.18); animation:ltShake .3s; }
.lt-tile.reveal{ border-color:var(--gold); box-shadow:0 0 0 2px rgba(255,209,102,.35) inset; }
@keyframes ltShake{ 25%{ transform:translateX(-4px); } 75%{ transform:translateX(4px); } }

.lt-board{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.lt-pl{
  display:flex; align-items:center; gap:5px; padding:4px 9px 4px 7px; border-radius:99px;
  background:var(--surface); border:1px solid var(--line); font-size:12px; max-width:100%;
}
.lt-pl.me{ border-color:var(--cyan); }
.lt-pl-av{ font-size:15px; }
.lt-pl-n{ font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:80px; }
.lt-dots{ display:flex; gap:2px; }
.lt-dots i{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.14); }
.lt-dots i.on{ background:var(--green); }

.lt-res{ display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.lt-res-row{ padding:10px 12px; border-radius:14px; background:var(--surface); border:1px solid var(--line); }
.lt-res-row.me{ border-color:var(--cyan); }
.lt-res-row.win{ border-color:var(--gold); background:linear-gradient(150deg,rgba(255,209,102,.12),var(--surface)); }
.lt-res-h{ display:flex; align-items:center; gap:8px; }
.lt-res-h b{ flex:1; min-width:0; font-size:14px; }
.lt-res-w{ display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.lt-res-w span{ font-size:11.5px; padding:3px 8px; border-radius:99px; background:rgba(255,255,255,.05); color:var(--faint); }
.lt-res-w span.ok{ background:rgba(95,224,181,.14); color:var(--green); font-weight:700; }

/* علامات لجين بالدبابات */
.tk-pw{ display:flex; flex-wrap:wrap; gap:6px; }
.tk-pw span{
  font-size:11.5px; font-weight:800; padding:3px 10px; border-radius:99px;
  background:rgba(255,209,102,.14); border:1px solid rgba(255,209,102,.45); color:var(--gold);
  animation:ryPulse 1.2s infinite;
}

/* ============================================================
   🔢 الحزورة
   ============================================================ */
.hz-head{ padding:12px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.hz-ch{ display:flex; align-items:center; gap:10px; }
.hz-ch-av{ font-size:30px; line-height:1; }
.hz-ch small{ display:block; font-size:11px; color:var(--muted); }
.hz-ch b{ font-size:15.5px; }
.hz-time{ height:6px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; margin:10px 0 8px; }
.hz-time i{ display:block; height:100%; width:0; background:var(--violet); border-radius:99px; transition:width .15s linear; }
.hz-time i.guess{ background:var(--orange, #FF9ECF); }
.hz-time i.warn{ background:var(--red); }
.hz-msg{ font-size:13px; font-weight:700; color:var(--muted); text-align:center; min-height:18px; }

.hz-pad{ display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:8px; margin-top:12px; direction:ltr; }
.hz-key{
  aspect-ratio:1/1; border-radius:16px; cursor:pointer; min-width:0;
  font:400 30px "Lalezar","Cairo",sans-serif; color:var(--text);
  background:linear-gradient(160deg,#2A2156,#1B1638); border:2px solid var(--line);
  box-shadow:0 6px 0 -1px rgba(0,0,0,.35); touch-action:manipulation;
}
.hz-key:not(:disabled):active{ transform:translateY(3px); box-shadow:0 2px 0 -1px rgba(0,0,0,.35); }
.hz-key:disabled{ opacity:.4; cursor:default; }
.hz-key.sel{ opacity:1; background:linear-gradient(160deg,#FFB547,#E0782F); border-color:var(--gold); color:#1a1200; }
.hz-key.full{ text-decoration:line-through; opacity:.25; }

.hz-reveal{
  margin-top:12px; padding:16px 12px; border-radius:18px; text-align:center;
  background:radial-gradient(100% 80% at 50% 0%, rgba(255,138,61,.2), transparent 70%), var(--surface);
  border:1px solid rgba(255,138,61,.45); animation:fadeUp .3s ease;
}
.hz-reveal small{ font-size:12px; color:var(--muted); }
.hz-big{ font-family:"Lalezar",sans-serif; font-size:64px; line-height:1.1; color:var(--gold); }
.hz-reveal p{ font-size:13px; margin:8px 0 0; color:var(--muted); }
.hz-reveal p b{ color:var(--text); }
.hz-next{ color:var(--text) !important; font-weight:800; }
.hz-gs{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:8px; }
.hz-g{ font-size:12px; padding:4px 10px; border-radius:99px; background:rgba(255,255,255,.06); border:1px solid var(--line); }
.hz-g b{ font-size:14px; }
.hz-g.ok{ background:rgba(95,224,181,.16); border-color:var(--green); color:var(--green); }
.hz-g.no{ color:#FFB3C0; }
.hz-g.me{ box-shadow:0 0 0 1.5px var(--cyan) inset; }

.hz-cols{ display:grid; grid-template-columns:repeat(10, minmax(0,1fr)); gap:4px; margin-top:6px; direction:ltr; }
.hz-col{ display:flex; flex-direction:column; align-items:center; gap:3px; min-width:0; }
.hz-col-bar{
  position:relative; width:100%; height:70px; border-radius:8px; overflow:hidden;
  background:rgba(255,255,255,.06); border:1px solid var(--line);
}
.hz-col-bar i{ position:absolute; left:0; right:0; bottom:0; background:linear-gradient(0deg,#7C5CFF,#FFA8D8); transition:height .4s; }
.hz-col-bar span{ position:absolute; inset:auto 0 3px; text-align:center; font-size:11px; font-weight:800; text-shadow:0 1px 2px #000; }
.hz-col b{ font-size:12px; color:var(--muted); }
.hz-col.full .hz-col-bar i{ background:linear-gradient(0deg,#D98FBF,#FFD166); }
.hz-col.full b{ color:var(--gold); }
.hz-col.hot .hz-col-bar{ border-color:var(--gold); box-shadow:0 0 0 2px rgba(255,209,102,.4); }

.hz-players{ display:flex; flex-direction:column; gap:6px; margin-top:14px; }
.hz-pl{ display:flex; align-items:center; gap:8px; padding:7px 12px; border-radius:12px; background:var(--surface); border:1px solid var(--line); }
.hz-pl.me{ border-color:var(--cyan); }
.hz-pl.ch{ background:linear-gradient(150deg,rgba(124,92,255,.18),var(--surface)); }
.hz-pl-av{ font-size:18px; }
.hz-pl-n{ flex:1; min-width:0; font-weight:800; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hz-pl-s{ font-size:12px; color:var(--muted); }
.hz-pl-sum{ font-family:"Lalezar",sans-serif; font-size:17px; color:var(--gold); min-width:28px; text-align:center; }

.hz-res{ display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.hz-res-row{ padding:10px 12px; border-radius:14px; background:var(--surface); border:1px solid var(--line); }
.hz-res-row.win{ border-color:var(--gold); }
.hz-res-row.me{ box-shadow:0 0 0 1.5px var(--cyan) inset; }
.hz-res-h{ display:flex; align-items:center; gap:8px; }
.hz-res-h b{ flex:1; min-width:0; }
.hz-res-row .hz-col-bar{ height:38px; }

/* ============================================================
   📨 الدعوات
   ============================================================ */
.inv-open{ display:flex; align-items:center; justify-content:center; gap:8px; border-color:rgba(199,125,255,.45); color:var(--cyan); }
.inv-n{ font-size:11px; font-weight:700; padding:2px 8px; border-radius:99px; background:rgba(95,224,181,.14); color:var(--green); }
.inv-list{ display:flex; flex-direction:column; gap:7px; margin-top:8px; }
.inv-row{ display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:13px; background:var(--surface); border:1px solid var(--line); }
.inv-av{ font-size:24px; line-height:1; flex:none; }
.inv-tx{ flex:1; min-width:0; display:flex; flex-direction:column; }
.inv-tx b{ font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.inv-tx small{ font-size:11.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.inv-st{ font-size:11.5px; color:var(--muted); white-space:nowrap; }
.inv-btn{ flex:none; padding:7px 14px; font-size:13px; min-height:0; }
.inv-btn:disabled{ opacity:.45; }

.inv-pop{
  position:fixed; left:12px; right:12px; top:calc(10px + var(--safe-t)); z-index:250;
  max-width:440px; margin:0 auto; padding:14px; border-radius:18px; overflow:hidden;
  background:linear-gradient(150deg,#1D2F5C,#291438); border:1.5px solid var(--cyan);
  box-shadow:0 20px 50px -12px rgba(0,0,0,.7), 0 0 0 4px rgba(199,125,255,.12);
  animation:invIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.inv-pop.out{ animation:invOut .25s ease forwards; }
@keyframes invIn{ from{ transform:translateY(-120%); } }
@keyframes invOut{ to{ transform:translateY(-130%); opacity:0; } }
.inv-top{ display:flex; align-items:center; gap:12px; }
.inv-pop .inv-av{ font-size:36px; }
.inv-pop .inv-tx b{ font-size:15.5px; white-space:normal; }
.inv-warn{ color:var(--gold) !important; }
.inv-acts{ display:flex; gap:8px; margin-top:12px; }
.inv-acts .btn{ flex:1; }
.inv-timer{ position:absolute; left:0; bottom:0; height:3px; width:100%; background:var(--cyan); transform-origin:left; animation:invT 30s linear forwards; }
@keyframes invT{ to{ transform:scaleX(0); } }

/* الحزورة — أعمدة الي يخبّي فوگ */
.hz-spy{ padding:10px 10px 8px; border-radius:16px; margin-bottom:10px;
  background:linear-gradient(150deg,rgba(124,92,255,.16),var(--surface)); border:1px solid rgba(124,92,255,.4); }
.hz-spy-h{ display:flex; align-items:center; gap:8px; }
.hz-spy-h span{ font-size:20px; }
.hz-spy-h b{ flex:1; min-width:0; font-size:13.5px; }
.hz-spy-h small{ font-family:"Lalezar",sans-serif; font-size:15px; color:var(--gold); }
.hz-spy .hz-col-bar{ height:46px; }
.hz-spy-t{ font-size:11px; color:var(--muted); text-align:center; margin:6px 0 0; }
.hz-key.full{ position:relative; }
.hz-key.full::after{ content:"🔒"; position:absolute; top:3px; right:5px; font-size:11px; opacity:.9; }

/* 🪄 زر غش لجين */
.ali-cheat{
  display:inline-flex; align-items:center; gap:4px; align-self:flex-start; cursor:pointer;
  padding:3px 9px 3px 5px; border-radius:99px; margin-top:6px;
  font:800 11.5px "Cairo",sans-serif; color:var(--gold);
  background:rgba(255,209,102,.1); border:1px dashed rgba(255,209,102,.5);
}
.ali-cheat b{ min-width:18px; height:18px; border-radius:99px; display:grid; place-items:center;
  background:var(--gold); color:#1a1200; font-size:11px; }
.ali-cheat.empty{ opacity:.4; filter:grayscale(1); }
.ali-cheat.zap{ animation:aliZap .45s ease; }
@keyframes aliZap{ 40%{ transform:scale(1.15) rotate(-4deg); box-shadow:0 0 0 6px rgba(255,209,102,.25); } }
.lt-tile.ali-glow{ border-color:var(--gold); box-shadow:0 0 0 2px rgba(255,209,102,.55), 0 0 18px -2px rgba(255,209,102,.7); }
.hz-key.ali-glow{ border-color:var(--gold); box-shadow:0 0 0 2px rgba(255,209,102,.6), 0 6px 0 -1px rgba(0,0,0,.35); }
.hz-key.ali-off{ opacity:.18; }
.ali-num{ color:var(--gold); font-size:14px; }
.ali-row-cheat{ display:flex; align-items:center; gap:8px; margin-top:8px; flex-wrap:wrap; }
.ali-hint{ flex:1; min-width:0; font-size:17px; font-weight:800; letter-spacing:1px; color:var(--gold); }
.ali-hint span{ display:inline-block; min-width:14px; text-align:center; }
.ali-hint small{ font-size:11px; color:var(--muted); letter-spacing:0; font-weight:600; }
.hz-head .ali-cheat{ margin-top:8px; }

/* ============================================================
   🕵️ البصّاص
   ============================================================ */
.spy-card{ position:relative; min-height:170px; border-radius:20px; overflow:hidden; cursor:pointer; user-select:none; -webkit-user-select:none;
  background:linear-gradient(150deg,#3F1C55,#291438); border:1.5px solid var(--violet-lo); touch-action:none; }
.spy-cover, .spy-in{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:16px; gap:4px; transition:opacity .15s; }
.spy-cover span{ font-size:40px; } .spy-cover b{ font-size:15px; } .spy-cover small{ font-size:11.5px; color:var(--muted); }
.spy-in{ opacity:0; background:linear-gradient(150deg,#123A4A,#291438); }
.spy-card.spy .spy-in{ background:linear-gradient(150deg,#5A1630,#291438); }
.spy-card.open .spy-in{ opacity:1; } .spy-card.open .spy-cover{ opacity:0; }
.spy-em{ font-size:48px; line-height:1; } .spy-t{ font-family:"Lalezar",sans-serif; font-size:26px; }
.spy-s{ font-size:12.5px; color:var(--muted); line-height:1.6; max-width:280px; }
.spy-timer{ display:flex; align-items:center; gap:10px; margin-top:12px; }
.spy-timer b{ font-family:"Lalezar",sans-serif; font-size:24px; color:var(--gold); direction:ltr; min-width:62px; }
.spy-timer b.warn{ color:var(--red); }
.spy-timer i{ flex:1; height:7px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; }
.spy-timer s{ display:block; height:100%; background:var(--violet); text-decoration:none; transition:width .5s linear; }
.spy-first{ margin-top:10px; padding:10px 12px; border-radius:14px; background:var(--surface); border:1px solid var(--line); font-size:13.5px; }
.spy-first small{ display:block; font-size:11.5px; color:var(--muted); margin-top:3px; }
.spy-locs{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:6px; margin-top:6px; }
.spy-loc{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:7px 3px; border-radius:12px; min-width:0;
  background:var(--surface); border:1px solid var(--line); color:var(--text); font-size:20px; cursor:pointer; }
.spy-loc span{ font:700 11px "Cairo",sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.spy-loc:disabled{ cursor:default; opacity:.85; }
.spy-loc.x{ opacity:.25; text-decoration:line-through; }
.spy-locs.pick .spy-loc:active{ transform:scale(.95); }
.spy-guess{ margin-top:12px; border-color:rgba(255,77,109,.5); color:#FFB3C0; }
.spy-sus{ margin-top:8px; font-size:12.5px; color:var(--gold); display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.spy-sus span{ padding:2px 9px; border-radius:99px; background:rgba(255,209,102,.12); border:1px solid rgba(255,209,102,.4); }
.spy-vrow{ width:100%; font:inherit; color:inherit; cursor:pointer; text-align:right; }
.spy-reveal{ display:flex; flex-direction:column; gap:6px; margin-top:12px; font-size:14px; }

/* 🧟 المطاردة و🐍 الثعابين */
.zb-role{ font-size:12px; font-weight:800; text-align:center; padding:4px 8px; border-radius:10px; }
.zb-role.z{ background:rgba(91,191,74,.16); color:#8CF07A; }
.zb-role.h{ background:rgba(199,125,255,.12); color:var(--cyan); }
.zb-dash{ background:radial-gradient(circle at 35% 30%, #5EE0F5, #8A3FBF 70%) !important; box-shadow:0 10px 24px -8px rgba(199,125,255,.7) !important; }
.zb-dash:disabled{ filter:grayscale(.8); opacity:.6; }
.ry-acts .ali-cheat{ margin:0 0 4px; align-self:center; }

/* الأعضاء الي مو أونلاين */
.on-chip.off{ opacity:.55; }
.on-chip.off .on-dot{ background:#6B7280; box-shadow:none; }
.inv-row.off{ opacity:.6; }

/* ============================================================
   🐍🪜 حية ودرج سمسم المشاغب
   ============================================================ */
.dg-head{ padding:10px 12px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.dg-turn{ display:flex; align-items:center; gap:10px; }
.dg-turn-av{ font-size:28px; line-height:1; }
.dg-turn small{ display:block; font-size:11px; color:var(--muted); }
.dg-turn b{ font-size:15px; }
.dg-turn > div{ flex:1; min-width:0; }
.dg-mascot{ font-size:26px; animation:dgWig 1.6s ease-in-out infinite; }
@keyframes dgWig{ 50%{ transform:rotate(-16deg) translateY(-3px); } }
.dg-bar{ height:6px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; margin:9px 0 7px; }
.dg-bar i{ display:block; height:100%; width:100%; background:var(--green); transition:width .2s linear; }
.dg-bar i.warn{ background:var(--red); }
.dg-msg{ font-size:11.5px; color:var(--muted); text-align:center; }

.dg-boardwrap{ position:relative; margin-top:12px; border-radius:18px; overflow:hidden;
  border:2px solid rgba(232,176,106,.45); box-shadow:0 18px 40px -22px #000; }
.dg-boardwrap canvas{ display:block; width:100%; }
.dg-pop{
  position:absolute; left:8px; right:8px; bottom:10px; padding:10px 12px; border-radius:14px;
  background:rgba(7,6,15,.9); border:1px solid var(--line); text-align:center;
  font-size:13.5px; font-weight:700; animation:fadeUp .25s ease; pointer-events:none;
}
.dg-sec{ padding-bottom:12px; }
.dg-ctl{
  position:sticky; bottom:calc(66px + var(--safe-b)); z-index:6;
  display:flex; align-items:center; justify-content:center; gap:10px; margin-top:12px; flex-wrap:wrap;
  padding:8px; border-radius:22px;
  background:linear-gradient(180deg, rgba(11,9,24,0), rgba(11,9,24,.92) 40%);
}
.dg-dice{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  width:132px; padding:10px 0; border-radius:18px; cursor:pointer;
  background:linear-gradient(150deg,#FFD46B,#E08A2F); border:2px solid rgba(255,255,255,.3); color:#20160a;
  box-shadow:0 10px 24px -10px rgba(224,138,47,.8);
}
.dg-dice span{ font-size:38px; line-height:1; }
.dg-dice small{ font-size:12px; font-weight:800; font-family:"Cairo",sans-serif; }
.dg-dice.off{ filter:grayscale(.7); opacity:.6; cursor:default; }
.dg-dice.rolling span{ animation:dgRoll .35s linear infinite; }
@keyframes dgRoll{ to{ transform:rotate(360deg); } }

.dg-players{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; padding-bottom:10px; }
.dg-pl{ display:flex; align-items:center; gap:6px; padding:5px 10px; border-radius:99px;
  background:var(--surface); border:1px solid var(--line); font-size:12.5px; }
.dg-pl.me{ border-color:var(--cyan); }
.dg-pl.cur{ background:rgba(255,209,102,.14); border-color:var(--gold); }
.dg-pl-av{ font-size:16px; }
.dg-pl-n{ font-weight:800; max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dg-pl-s{ font-family:"Lalezar",sans-serif; font-size:15px; color:var(--gold); }

.dg-plan{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:6px; }
.dg-pc{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:9px 4px; border-radius:12px;
  background:var(--surface); border:1.5px solid var(--line); color:var(--text); cursor:pointer; }
.dg-pc b{ font-family:"Lalezar",sans-serif; font-size:22px; }
.dg-pc span{ font-size:11.5px; color:var(--muted); }
.dg-pc.lad{ border-color:var(--green); } .dg-pc.lad span{ color:var(--green); }
.dg-pc.snk{ border-color:var(--red); } .dg-pc.snk span{ color:#FFB3C0; }
.dg-pc.far{ opacity:.45; }
.dg-acts{ display:flex; flex-direction:column; gap:8px; }
.dg-acts .btn{ width:100%; font-size:13px; }

/* ============================================================
   🧭 كنز سمسم
   ============================================================ */
.kz-head{ padding:10px 12px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.kz-top{ display:flex; align-items:center; gap:10px; }
.kz-av{ font-size:28px; line-height:1; }
.kz-top small{ display:block; font-size:11px; color:var(--muted); }
.kz-top b{ font-size:14.5px; }
.kz-top > div{ flex:1; min-width:0; }
.kz-sc{ font-family:"Lalezar",sans-serif; font-size:22px; color:var(--gold); }
.kz-bar{ height:6px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; margin:9px 0 7px; }
.kz-bar i{ display:block; height:100%; width:100%; background:var(--gold); transition:width .25s linear; }
.kz-bar i.warn{ background:var(--red); }
.kz-msg{ font-size:11.5px; color:var(--muted); text-align:center; }

.kz-grid{ display:grid; grid-template-columns:repeat(var(--n,8), minmax(0,1fr)); gap:4px; margin-top:12px; }
.kz-c{
  aspect-ratio:1/1; min-width:0; border-radius:9px; cursor:pointer; position:relative;
  display:grid; place-items:center; font-size:15px;
  background:linear-gradient(160deg,#6B5638,#4A3B25); border:1px solid rgba(255,255,255,.08); color:#fff;
}
.kz-c i{ font-style:normal; font-size:10px; color:rgba(255,255,255,.35); font-weight:700; }
.kz-c:active{ transform:scale(.94); }
.kz-c.dug{ background:#2A2450; border-color:var(--line); }
.kz-c.hot{ background:linear-gradient(160deg,#FF6B3D,#C7341F); }
.kz-c.warm{ background:linear-gradient(160deg,#D98FBF,#A76F12); }
.kz-c.cool{ background:linear-gradient(160deg,#2E7FA8,#1C5470); }
.kz-c.cold{ background:linear-gradient(160deg,#4B5A86,#2B3557); }
.kz-c.found, .kz-c.reveal{ background:linear-gradient(160deg,#FFD46B,#D98FBF); box-shadow:0 0 0 2px var(--gold); }
.kz-c.mine-t{ box-shadow:0 0 0 2px var(--cyan) inset; }
.kz-c.hint{ box-shadow:0 0 0 2px rgba(255,209,102,.8) inset; }
.kz-u{ font-size:13px; }
.kz-pop{
  margin-top:10px; padding:10px 12px; border-radius:14px; text-align:center; font-size:13.5px; font-weight:700;
  background:rgba(255,209,102,.14); border:1px solid rgba(255,209,102,.45); animation:fadeUp .25s ease;
}
.kz-players{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.kz-pl{ display:flex; align-items:center; gap:6px; padding:4px 10px; border-radius:99px;
  background:var(--surface); border:1px solid var(--line); font-size:12.5px; }
.kz-pl.me{ border-color:var(--cyan); }
.kz-pl.hid{ background:rgba(255,209,102,.14); border-color:var(--gold); }
.kz-pl b{ font-weight:800; max-width:80px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kz-pl i{ font-style:normal; font-family:"Lalezar",sans-serif; font-size:15px; color:var(--gold); }

/* ============================================================
   🏰 حرب القلاع
   ============================================================ */
.ql-head{ padding:10px 12px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.ql-top{ display:flex; align-items:center; gap:10px; }
.ql-av{ font-size:24px; width:40px; height:40px; display:grid; place-items:center; border-radius:12px;
  border:2px solid var(--line); background:rgba(255,255,255,.05); }
.ql-top small{ display:block; font-size:11px; color:var(--muted); }
.ql-top b{ font-size:14.5px; }
.ql-top > div{ flex:1; min-width:0; }
.ql-cnt{ font-family:"Lalezar",sans-serif; font-size:19px; color:var(--gold); }
.ql-bar{ height:6px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; margin:9px 0 7px; }
.ql-bar i{ display:block; height:100%; width:100%; background:var(--orange,#FF9ECF); transition:width .25s linear; }
.ql-bar i.warn{ background:var(--red); }
.ql-log{ font-size:12px; color:var(--muted); text-align:center; min-height:16px; }

.ql-grid{ display:grid; grid-template-columns:repeat(var(--n,7), minmax(0,1fr)); gap:4px; margin-top:12px; }
.ql-c{
  position:relative; aspect-ratio:1/1; min-width:0; border-radius:10px; cursor:pointer;
  display:grid; place-items:center; color:#fff;
  background:rgba(255,255,255,.05); border:1.5px solid var(--line);
}
.ql-c.own{ background:color-mix(in srgb, var(--c) 30%, #12102A); border-color:var(--c); }
.ql-c.vil{ background:rgba(255,255,255,.09); }
.ql-c.bare{ background:rgba(255,255,255,.04); }
.ql-c.sel{ box-shadow:0 0 0 3px var(--cyan) inset; }
.ql-c.tgt{ box-shadow:0 0 0 3px rgba(255,209,102,.9) inset; animation:ryPulse 1s infinite; }
.ql-c b{ font-family:"Lalezar",sans-serif; font-size:17px; text-shadow:0 1px 3px #000; }
.ql-av2{ position:absolute; top:2px; right:3px; font-size:11px; }
.ql-castle{ position:absolute; top:1px; left:3px; font-size:12px; }
.ql-acts{ display:flex; gap:8px; margin-top:12px; align-items:center; flex-wrap:wrap; }
.ql-acts .btn{ flex:1; min-width:140px; }
.ql-players{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.ql-pl{ display:flex; align-items:center; gap:6px; padding:4px 10px; border-radius:99px; font-size:12.5px;
  background:var(--surface); border:1px solid var(--c, var(--line)); }
.ql-pl.cur{ box-shadow:0 0 0 2px var(--c) inset; }
.ql-pl.out{ opacity:.45; }
.ql-pl b{ font-weight:800; max-width:80px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ql-pl i{ font-style:normal; font-family:"Lalezar",sans-serif; font-size:15px; }

.ql-help{
  flex:none; width:28px; height:28px; border-radius:50%; cursor:pointer;
  font:800 15px "Cairo",sans-serif; color:var(--gold);
  background:rgba(255,209,102,.14); border:1px solid rgba(255,209,102,.5);
}
.ql-rules{ display:flex; flex-direction:column; gap:8px; }
.ql-rules > div{ padding:9px 11px; border-radius:12px; background:var(--surface); border:1px solid var(--line); }
.ql-rules b{ display:block; font-size:13.5px; margin-bottom:3px; color:var(--gold); }
.ql-rules span{ font-size:12.5px; color:var(--muted); line-height:1.65; }
.ql-rules span b{ display:inline; color:var(--text); }

/* ============================================================
   🕵️ جاسوس الكلمات
   ============================================================ */
.js-head{ padding:10px 12px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.js-teams{ display:flex; align-items:center; gap:10px; }
.js-t{ font-family:"Lalezar",sans-serif; font-size:20px; padding:2px 10px; border-radius:12px; }
.js-t.red{ background:rgba(255,77,109,.16); color:#FF8098; }
.js-t.blu{ background:rgba(199,125,255,.16); color:#E9B8FF; }
.js-t.on{ box-shadow:0 0 0 2px currentColor inset; }
.js-mid{ flex:1; min-width:0; text-align:center; }
.js-mid b{ font-size:14px; display:block; }
.js-mid small{ font-size:11px; color:var(--muted); }
.js-bar{ height:5px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; margin:8px 0 6px; }
.js-bar i{ display:block; height:100%; width:100%; background:var(--violet); transition:width .3s linear; }
.js-bar i.warn{ background:var(--red); }
.js-clue{ text-align:center; font-size:14px; }
.js-clue b{ color:var(--gold); font-size:16px; }
.js-log{ text-align:center; font-size:11.5px; color:var(--muted); margin-top:3px; min-height:15px; }

.js-grid{ display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:5px; margin-top:12px; }
.js-c{
  min-width:0; min-height:52px; padding:4px 2px; border-radius:10px; cursor:pointer;
  background:#EFE3C8; color:#241C4E; border:1px solid rgba(0,0,0,.2);
  font:800 11.5px "Cairo",sans-serif; line-height:1.2; word-break:break-word;
}
.js-c:active{ transform:scale(.95); }
.js-c.open{ color:#fff; }
.js-c.open.r, .js-c.boss.r{ background:#D8384F; }
.js-c.open.b, .js-c.boss.b{ background:#8A3FBF; }
.js-c.open.n, .js-c.boss.n{ background:#8A7F6B; }
.js-c.open.x, .js-c.boss.x{ background:#111; color:#fff; box-shadow:0 0 0 2px #FF4D6D inset; }
.js-c.boss{ opacity:.92; }
.js-c.ali{ box-shadow:0 0 0 3px var(--gold) inset; }
.js-c:disabled{ opacity:.85; cursor:default; }
.js-clueform{ display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; align-items:center; }
.js-clueform .inp{ flex:1; min-width:140px; }
.js-nums{ display:flex; gap:5px; }
.js-nums button{ width:38px; height:38px; border-radius:10px; cursor:pointer; font:400 19px "Lalezar",sans-serif;
  background:var(--surface); border:1.5px solid var(--line); color:var(--text); }
.js-nums button.on{ border-color:var(--gold); color:var(--gold); }
.js-players{ display:flex; flex-wrap:wrap; gap:5px; margin-top:12px; }
.js-pl{ font-size:12px; padding:3px 9px; border-radius:99px; border:1px solid var(--line); }
.js-pl.red{ background:rgba(255,77,109,.14); }
.js-pl.blu{ background:rgba(199,125,255,.14); }
.js-pl.me{ box-shadow:0 0 0 1.5px var(--cyan) inset; }
.js-pl.boss{ font-weight:800; }

/* ============================================================
   🃏 أونو السمسمي
   ============================================================ */
.un-head{ padding:10px 12px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.un-top{ display:flex; align-items:center; gap:10px; }
.un-av{ font-size:26px; }
.un-top small{ display:block; font-size:11px; color:var(--muted); }
.un-top b{ font-size:14.5px; }
.un-top > div{ flex:1; min-width:0; }
.un-col{ font-size:12px; font-weight:800; color:#1C1026; padding:3px 10px; border-radius:99px; }
.un-bar{ height:5px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; margin:8px 0 6px; }
.un-bar i{ display:block; height:100%; background:var(--gold); transition:width .3s linear; }
.un-bar i.warn{ background:var(--red); }
.un-log{ font-size:11.5px; color:var(--muted); text-align:center; }
.un-table{ display:grid; place-items:center; margin:14px 0; }
.un-card{
  width:68px; height:96px; border-radius:12px; cursor:pointer; flex:none;
  display:grid; place-items:center; background:var(--c,#444);
  border:3px solid #fff; box-shadow:0 6px 16px -8px #000; color:#1C1026;
}
.un-card span{ font:400 30px "Lalezar",sans-serif; }
.un-card.big{ width:92px; height:128px; }
.un-card.big span{ font-size:42px; }
.un-card.wild{ background:conic-gradient(#FF4D6D,#FFD166,#5FE0B5,#C77DFF,#FF4D6D); }
.un-card.dim{ opacity:.45; }
.un-card:active{ transform:translateY(-4px); }
.un-hand{ display:flex; gap:7px; overflow-x:auto; padding:6px 2px 10px; scrollbar-width:none; }
.un-hand::-webkit-scrollbar{ display:none; }
.un-players{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.un-pl{ display:inline-flex; align-items:center; gap:5px; font-size:12px; padding:4px 10px; border-radius:99px;
  background:var(--surface); border:1px solid var(--line); }
.un-pl.cur{ border-color:var(--gold); background:rgba(255,209,102,.14); }
.un-pl.me{ box-shadow:0 0 0 1.5px var(--cyan) inset; }
.un-pl i{ font-style:normal; font-family:"Lalezar",sans-serif; font-size:15px; color:var(--gold); }
.un-uno{ color:var(--red); font-size:11px; }
.un-acts{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.un-acts .btn{ flex:1; min-width:130px; }
.un-pick{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.un-pick button{ padding:14px 0; border-radius:12px; border:0; cursor:pointer; font:800 15px "Cairo",sans-serif; color:#1C1026; }

/* ============================================================
   🍕 مطعم سمسم للمجانين
   ============================================================ */
.mt-head{ padding:10px 12px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.mt-top{ display:flex; align-items:center; gap:10px; }
.mt-sc{ font-family:"Lalezar",sans-serif; font-size:22px; color:var(--gold); }
.mt-top > div{ flex:1; min-width:0; text-align:center; }
.mt-top small{ display:block; font-size:11px; color:var(--muted); }
.mt-top b{ font-size:16px; font-family:"Lalezar",sans-serif; }
.mt-chef{ font-size:24px; }
.mt-bar{ height:7px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; margin-top:8px; }
.mt-bar i{ display:block; height:100%; background:var(--green); transition:width .25s linear; }
.mt-bar i.warn{ background:var(--red); }
.mt-order{ margin-top:12px; padding:12px; border-radius:16px; text-align:center;
  background:linear-gradient(150deg,rgba(255,138,61,.16),var(--surface)); border:1px solid rgba(255,138,61,.45); }
.mt-order.wait{ color:var(--muted); font-size:13.5px; }
.mt-dish{ font-size:19px; font-weight:800; }
.mt-need{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px; margin-top:8px; }
.mt-n{ display:flex; flex-direction:column; align-items:center; gap:1px; padding:5px 7px; border-radius:11px;
  background:rgba(255,255,255,.06); border:1.5px solid var(--line); font-size:20px; }
.mt-n small{ font-size:10px; color:var(--muted); }
.mt-n.ok{ background:rgba(95,224,181,.18); border-color:var(--green); }
.mt-n.now{ border-color:var(--gold); box-shadow:0 0 0 2px rgba(255,209,102,.3); animation:ryPulse 1.1s infinite; }
.mt-ar{ font-style:normal; color:var(--faint); font-size:12px; }
.mt-hint{ font-size:12px; color:var(--muted); margin-top:8px; }
.mt-items{ display:grid; grid-template-columns:repeat(auto-fit,minmax(74px,1fr)); gap:7px; margin-top:8px; }
.mt-it{ padding:10px 4px; border-radius:14px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px;
  background:var(--surface); border:1.5px solid var(--line); color:var(--text); font-size:26px; }
.mt-it small{ font-size:11px; font-weight:700; color:var(--muted); }
.mt-it:active, .mt-it.tap{ transform:scale(.93); border-color:var(--gold); }
.mt-team{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; justify-content:center; }
.mt-pl{ font-size:11.5px; padding:4px 9px; border-radius:99px; background:var(--surface); border:1px solid var(--line); }
.mt-pl.me{ border-color:var(--cyan); }
.mt-pl i{ font-style:normal; font-size:13px; }

/* ============================================================
   ⚽ ركلات الترجيح
   ============================================================ */
.pn-head{ padding:10px 12px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.pn-vs{ display:flex; align-items:center; gap:10px; }
.pn-side{ flex:1; min-width:0; text-align:center; }
.pn-side b{ display:block; font-size:26px; }
.pn-side small{ font-size:11.5px; color:var(--muted); }
.pn-x{ font-family:"Lalezar",sans-serif; font-size:15px; color:var(--gold); }
.pn-bar{ height:5px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; margin:8px 0 6px; }
.pn-bar i{ display:block; height:100%; background:var(--green); transition:width .25s linear; }
.pn-bar i.warn{ background:var(--red); }
.pn-msg{ text-align:center; font-size:12.5px; color:var(--muted); }
.pn-goal{
  position:relative; margin-top:12px; aspect-ratio:16/10; border-radius:14px; overflow:hidden;
  background:linear-gradient(180deg,#1B4D2B 0%,#1B4D2B 62%,#2E7D32 62%,#256B2A 100%);
  border:4px solid #fff; box-shadow:inset 0 0 0 2px rgba(0,0,0,.2);
}
.pn-goal::before{ content:""; position:absolute; inset:8px 8px 34% 8px; border:3px solid rgba(255,255,255,.75);
  border-radius:4px; background:repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 14px),
  repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 2px, transparent 2px 14px); }
.pn-z{
  position:absolute; left:calc(var(--x) * 100%); top:calc(var(--y) * 100%); transform:translate(-50%,-50%);
  width:29%; height:30%; border-radius:12px; cursor:pointer;
  background:rgba(255,255,255,.07); border:2px dashed rgba(255,255,255,.35);
  display:flex; align-items:flex-end; justify-content:center; padding-bottom:3px;
}
.pn-z small{ font-size:10px; font-weight:800; color:rgba(255,255,255,.8); }
.pn-z.on{ background:rgba(255,209,102,.3); border-color:var(--gold); border-style:solid; }
.pn-z.ali{ border-color:var(--gold); box-shadow:0 0 0 3px rgba(255,209,102,.5) inset; }
.pn-ball, .pn-glove{
  position:absolute; left:calc(var(--x) * 100%); top:calc(var(--y) * 100%); transform:translate(-50%,-50%);
  font-size:30px; animation:fadeUp .3s ease; pointer-events:none;
}
.pn-glove{ font-size:26px; opacity:.95; }
.pn-res{
  position:absolute; inset:auto 0 8px; text-align:center; font-family:"Lalezar",sans-serif; font-size:26px;
  text-shadow:0 2px 6px #000; pointer-events:none;
}
.pn-res.goal{ color:#FFD46B; } .pn-res.save{ color:#E9B8FF; }
.pn-board{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; justify-content:center; }
.pn-pl{ display:inline-flex; align-items:center; gap:6px; font-size:12px; padding:4px 10px; border-radius:99px;
  background:var(--surface); border:1px solid var(--line); }
.pn-pl.me{ border-color:var(--cyan); }
.pn-pl i{ font-style:normal; font-size:11.5px; color:var(--gold); }

/* دور منو بالترجيح */
.pn-role{
  display:flex; align-items:center; gap:12px; padding:12px; border-radius:16px; margin-bottom:10px;
  border:1.5px solid var(--line); background:var(--surface);
}
.pn-role-em{ font-size:34px; line-height:1; }
.pn-role b{ display:block; font-size:17px; font-family:"Lalezar",sans-serif; }
.pn-role small{ font-size:12px; color:var(--muted); line-height:1.5; }
.pn-role.sh{ background:linear-gradient(150deg,rgba(95,224,181,.2),var(--surface)); border-color:var(--green); }
.pn-role.gk{ background:linear-gradient(150deg,rgba(199,125,255,.2),var(--surface)); border-color:var(--cyan); }
.pn-role.watch{ opacity:.9; }
.pn-side i{ display:block; font-style:normal; font-size:10.5px; color:var(--muted); margin-top:2px; }
.pn-side.ready i{ color:var(--green); }

/* ============================================================
   🌙 المدينة السرّية
   ============================================================ */
.ct-sec{ transition:filter .25s ease; }
.ct-sec.blackout{ filter:brightness(.28) saturate(.4); }
.ct-sky{ font-size:40px; text-align:center; line-height:1; margin:2px 0 8px;
  filter:drop-shadow(0 6px 14px rgba(124,108,240,.45)); animation:ctSky .6s ease; }
@keyframes ctSky{ from{ transform:translateY(-8px) scale(.85); opacity:0 } to{ transform:none; opacity:1 } }

.ct-strip{ display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-bottom:10px; }
.ct-chip{ background:rgba(124,108,240,.14); border:1px solid rgba(124,108,240,.3);
  color:var(--ink); border-radius:99px; padding:4px 11px; font-size:11.5px; font-weight:700; }

.ct-timer{ display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.ct-timer b{ font-size:15px; min-width:42px; text-align:center; color:var(--ink); font-weight:800; }
.ct-timer b.warn{ color:var(--red); }
.ct-timer i{ flex:1; height:6px; border-radius:99px; background:rgba(255,255,255,.09); overflow:hidden; }
.ct-timer s{ display:block; height:100%; border-radius:99px; text-decoration:none;
  background:linear-gradient(90deg,#E066C4,#C77DFF); transition:width .4s linear; }

/* كارت الدور */
.ct-card{ position:relative; border-radius:20px; overflow:hidden; min-height:172px;
  border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.04); margin-bottom:12px;
  user-select:none; -webkit-user-select:none; touch-action:none; }
.ct-cover, .ct-in{ position:absolute; inset:0; display:grid; place-content:center; text-align:center;
  gap:4px; padding:14px; transition:opacity .16s ease; }
.ct-cover{ opacity:1; z-index:2; background:rgba(14,12,28,.92); }
.ct-cover span{ font-size:32px; }
.ct-cover b{ font-size:13.5px; color:var(--ink); }
.ct-cover small{ font-size:11px; color:var(--muted); }
.ct-in{ opacity:0; background:
  radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 70%); }
.ct-card.open .ct-cover{ opacity:0; visibility:hidden; }
.ct-card.open .ct-in{ opacity:1; }
.ct-em{ font-size:38px; line-height:1; }
.ct-t{ font-size:19px; font-weight:800; color:var(--rc); }
.ct-s{ font-size:11.5px; color:var(--muted); max-width:250px; margin:0 auto; line-height:1.6; }

.ct-ask{ text-align:center; font-size:13px; font-weight:700; color:var(--ink); margin:12px 0 9px; }
.ct-note{ text-align:center; font-size:12px; color:var(--muted); line-height:1.7;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
  border-radius:14px; padding:12px 14px; margin-top:10px; }
.ct-sab{ text-align:center; font-size:12.5px; font-weight:700; color:var(--red);
  background:rgba(255,77,109,.12); border:1px solid rgba(255,77,109,.32);
  border-radius:14px; padding:10px; margin-bottom:10px; animation:ctBz .5s ease infinite alternate; }
@keyframes ctBz{ from{ transform:translateX(-1px) } to{ transform:translateX(1px) } }

/* لاعبين */
.ct-people{ display:grid; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:8px; }
.ct-p{ background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
  border-radius:14px; padding:10px 6px; display:grid; gap:3px; justify-items:center;
  color:var(--ink); font-family:inherit; cursor:pointer; transition:.15s; }
.ct-p:active{ transform:scale(.96); }
.ct-p.on{ border-color:#E066C4; background:rgba(124,108,240,.18); }
.ct-p.dim{ opacity:.5; }
.ct-pa{ font-size:24px; line-height:1; }
.ct-pn{ font-size:11.5px; font-weight:700; max-width:84px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; }
.ct-pv{ font-size:9px; color:#FFD166; letter-spacing:1px; min-height:11px; }

/* ملف الشرطي */
.ct-file{ margin-top:12px; background:rgba(78,168,255,.08); border:1px solid rgba(78,168,255,.25);
  border-radius:14px; padding:11px 13px; }
.ct-file b{ font-size:12px; color:#9B6DFF; display:block; margin-bottom:7px; }
.ct-fr{ display:flex; justify-content:space-between; align-items:center; font-size:12px;
  padding:5px 0; border-top:1px solid rgba(255,255,255,.06); }
.ct-fr i{ font-style:normal; font-weight:700; font-size:11.5px; }
.ct-fr.bad i{ color:var(--red); } .ct-fr.ok i{ color:var(--green,#5FE0B5); }

/* خبر الصبح */
.ct-news{ text-align:center; padding:22px 16px; border-radius:20px;
  background:linear-gradient(160deg,rgba(255,209,102,.14),rgba(124,108,240,.1));
  border:1px solid rgba(255,255,255,.1); animation:ctSky .5s ease; }
.ct-nt{ font-size:15px; font-weight:800; color:var(--ink); margin-bottom:12px; }
.ct-vic{ font-size:46px; line-height:1; }
.ct-vn{ font-size:18px; font-weight:800; color:var(--ink); margin-top:6px; }
.ct-vs{ font-size:12px; color:var(--muted); margin-top:5px; }

/* المهام */
.ct-tasks{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  border-radius:16px; padding:12px 14px; margin-bottom:12px; }
.ct-th{ display:flex; justify-content:space-between; font-size:12.5px; font-weight:700;
  color:var(--ink); margin-bottom:8px; }
.ct-tb{ height:8px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; }
.ct-tb i{ display:block; height:100%; border-radius:99px;
  background:linear-gradient(90deg,#5FE0B5,#C77DFF); transition:width .4s ease; }
.ct-tasks small{ display:block; font-size:10.5px; color:var(--faint); margin-top:7px; }

.ct-task{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  border-radius:16px; padding:14px; text-align:center; }
.ct-tt{ font-size:12.5px; font-weight:700; color:var(--ink); margin-bottom:10px; }
.ct-code{ font-size:30px; font-weight:800; letter-spacing:8px; direction:ltr;
  color:#C77DFF; margin-bottom:10px; transition:.2s; }
.ct-code.gone{ opacity:.3; letter-spacing:5px; }
.ct-seq{ font-size:26px; letter-spacing:5px; margin-bottom:10px; transition:.2s; }
.ct-seq.gone{ opacity:.25; font-size:20px; }
.ct-inp{ width:150px; text-align:center; font-size:20px; font-weight:800; letter-spacing:5px;
  direction:ltr; padding:9px; border-radius:12px; font-family:inherit;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.15); color:var(--ink); }
.ct-inp.bad{ border-color:var(--red); }
.ct-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.ct-grid.four{ grid-template-columns:repeat(4,1fr); }
.ct-grid button{ aspect-ratio:1; font-size:22px; border-radius:11px; cursor:pointer;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); }
.ct-grid button:active{ transform:scale(.93); }
.ct-grid button.ok{ background:rgba(95,224,181,.2); border-color:#5FE0B5; }
.ct-grid button.no{ opacity:.3; }
.ct-skip{ display:block; margin:12px auto 0; background:none; border:none; color:var(--faint);
  font-size:11.5px; font-family:inherit; cursor:pointer; }

/* تخريب */
.ct-sabs{ margin-top:12px; background:rgba(255,77,109,.08);
  border:1px solid rgba(255,77,109,.25); border-radius:16px; padding:12px 13px; }
.ct-sh{ font-size:12px; font-weight:700; color:var(--red); margin-bottom:9px; }
.ct-sg{ display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.ct-sg button{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  color:var(--ink); border-radius:12px; padding:9px 6px; font-size:11.5px; font-weight:700;
  font-family:inherit; cursor:pointer; }
.ct-sg button:active{ transform:scale(.95); }

/* النتيجة */
.ct-end{ text-align:center; padding:24px 16px; border-radius:20px; margin-bottom:14px;
  border:1px solid rgba(255,255,255,.1); }
.ct-end.town{ background:linear-gradient(160deg,rgba(95,224,181,.18),rgba(199,125,255,.08)); }
.ct-end.crim{ background:linear-gradient(160deg,rgba(255,77,109,.2),rgba(124,108,240,.08)); }
.ct-ee{ font-size:46px; line-height:1; }
.ct-et{ font-size:21px; font-weight:800; color:var(--ink); margin-top:8px; }
.ct-es{ font-size:12.5px; color:var(--muted); margin-top:5px; }
.ct-ex{ font-size:11.5px; color:var(--faint); margin-top:8px; }
.ct-reveal{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  border-radius:16px; padding:12px 14px; margin-bottom:14px; }
.ct-reveal b{ font-size:12.5px; color:var(--ink); display:block; margin-bottom:8px; }
.ct-rr{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px;
  padding:7px 0; border-top:1px solid rgba(255,255,255,.06); }
.ct-rr i{ font-style:normal; font-weight:700; color:var(--rc); font-size:12px; }
.ct-rr.dead{ opacity:.5; }
.ct-rr.dead span{ text-decoration:line-through; }
.ct-q{ cursor:pointer; font-family:inherit; font-weight:800; min-width:26px; }
.ct-help{ font-size:12.5px; line-height:1.8; color:var(--muted); text-align:right; }
.ct-help p{ margin:0 0 11px; }
.ct-help b{ color:var(--ink); }

/* 🔒 لوحة الأب */
.pc-pin{ width:100%; text-align:center; font-size:24px; font-weight:800; letter-spacing:10px;
  direction:ltr; padding:12px; border-radius:14px; font-family:inherit;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.15); color:var(--ink); }
.pc-hint{ font-size:11.5px; color:var(--muted); line-height:1.7; margin-top:9px; text-align:center; }
.pc-state{ display:flex; align-items:center; gap:11px; border-radius:16px; padding:13px 14px;
  border:1px solid rgba(255,255,255,.1); margin-bottom:4px; }
.pc-state.on{ background:rgba(95,224,181,.1); border-color:rgba(95,224,181,.3); }
.pc-state.off{ background:rgba(255,77,109,.1); border-color:rgba(255,77,109,.3); }
.pc-dot{ width:11px; height:11px; border-radius:99px; flex:none; }
.pc-state.on .pc-dot{ background:#5FE0B5; box-shadow:0 0 10px #5FE0B5; }
.pc-state.off .pc-dot{ background:#FF4D6D; box-shadow:0 0 10px #FF4D6D; }
.pc-state b{ display:block; font-size:13.5px; color:var(--ink); }
.pc-state small{ display:block; font-size:11px; color:var(--muted); margin-top:2px; }
.pc-hrs{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.pc-hrs button{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  color:var(--ink); border-radius:11px; padding:9px 4px; font-size:11.5px; font-weight:700;
  font-family:inherit; cursor:pointer; }
.pc-hrs button:active{ transform:scale(.94); }
.pc-link{ display:block; margin:14px auto 0; background:none; border:none; color:var(--faint);
  font-size:11.5px; font-family:inherit; cursor:pointer; text-decoration:underline; }

/* ============================================================
   🏝️ الجزيرة الضائعة + 🎲 اللودو
   ============================================================ */
.jz-head, .lu-head{ margin-bottom:10px; }
.jz-turn, .lu-turn{ display:flex; align-items:center; gap:11px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  border-radius:16px; padding:10px 13px; }
.lu-turn{ border-color:color-mix(in srgb, var(--lc) 45%, transparent); }
.jz-turn-av, .lu-turn-av{ font-size:26px; line-height:1; }
.jz-turn small, .lu-turn small{ display:block; font-size:10.5px; color:var(--faint); }
.jz-turn b, .lu-turn b{ font-size:13.5px; color:var(--ink); }
.jz-turn div, .lu-turn div{ flex:1; min-width:0; }
.jz-q{ width:28px; height:28px; border-radius:99px; flex:none; cursor:pointer;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.15);
  color:var(--ink); font-family:inherit; font-weight:800; font-size:13px; }
.jz-msg{ text-align:center; font-size:11.5px; color:var(--muted);
  margin-top:8px; line-height:1.7; min-height:19px; }

.jz-boardwrap, .lu-boardwrap{ width:100%; border-radius:18px; overflow:hidden;
  border:1px solid rgba(255,255,255,.1); background:#1A0E24; }
.jz-boardwrap canvas, .lu-boardwrap canvas{ display:block; width:100%; }

.jz-pls{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin:11px 0; }
.jz-pl{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
  border-radius:99px; padding:5px 11px; color:var(--ink); }
.jz-pl.cur{ border-color:var(--gold); background:rgba(255,209,102,.13); }
.jz-pl.me{ color:var(--cyan); }
.jz-pl.swap{ animation:jzSwap 1s ease infinite alternate; border-color:#C77DFF; }
@keyframes jzSwap{ from{ box-shadow:0 0 0 rgba(199,125,255,0) } to{ box-shadow:0 0 14px rgba(199,125,255,.6) } }
.jz-pl i{ font-style:normal; color:var(--faint); font-size:10.5px; }
.jz-pl .jz-j{ color:var(--red); font-size:10px; }
.jz-pl .jz-e{ color:#5FE0B5; font-size:10px; }
.lu-dot{ width:9px; height:9px; border-radius:99px; display:inline-block; }

.jz-pend{ background:rgba(199,125,255,.08); border:1px solid rgba(199,125,255,.3);
  border-radius:16px; padding:13px; margin-bottom:11px; }
.jz-pend > b{ display:block; font-size:13px; color:var(--ink); text-align:center; }
.jz-pend > small{ display:block; font-size:11px; color:var(--muted);
  text-align:center; margin:4px 0 10px; }
.jz-wt{ font-size:11.5px; color:var(--faint); margin:10px 0 6px; text-align:center; }
.jz-people, .jz-isles, .lu-pcs{ display:grid;
  grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:7px; }
.jz-people button, .jz-isles button, .lu-pcs button{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  border-radius:13px; padding:9px 5px; display:grid; gap:2px; justify-items:center;
  color:var(--ink); font-family:inherit; cursor:pointer; }
.jz-people button:active, .jz-isles button:active, .lu-pcs button:active{ transform:scale(.95); }
.jz-people span, .jz-isles span, .lu-pcs span{ font-size:21px; line-height:1; }
.jz-people i, .jz-isles i, .lu-pcs i{ font-style:normal; font-size:11px; font-weight:700;
  max-width:82px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jz-people em, .jz-isles em, .lu-pcs em{ font-style:normal; font-size:10px; color:var(--faint); }
.jz-wait{ text-align:center; font-size:12px; color:var(--muted); padding:10px; }

.jz-ctl{ display:flex; justify-content:center; margin-top:12px; }
.jz-dice{ display:grid; justify-items:center; gap:3px; min-width:150px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.16);
  border-radius:18px; padding:13px 22px; color:var(--ink); font-family:inherit; cursor:pointer; }
.jz-dice span{ font-size:38px; line-height:1; }
.jz-dice small{ font-size:11.5px; color:var(--muted); }
.jz-dice.off{ opacity:.45; }
.jz-dice.rolling span{ animation:jzSpin .28s linear infinite; }
@keyframes jzSpin{ to{ transform:rotate(360deg) } }

.lu-pick{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1);
  border-radius:16px; padding:12px; margin-top:11px; }
.lu-pick > b{ display:block; font-size:12.5px; color:var(--ink);
  text-align:center; margin-bottom:9px; }

.jz-end{ text-align:center; padding:24px 16px; border-radius:20px; margin-bottom:14px;
  background:linear-gradient(160deg,rgba(199,125,255,.16),rgba(255,209,102,.08));
  border:1px solid rgba(255,255,255,.1); }
.jz-ee{ font-size:46px; line-height:1; }
.jz-et{ font-size:19px; font-weight:800; color:var(--ink); margin-top:8px; }
.jz-es{ font-size:12.5px; color:var(--muted); margin-top:5px; }
.jz-rank{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  border-radius:16px; padding:6px 13px; margin-bottom:14px; }
.jz-rr{ display:flex; align-items:center; gap:10px; font-size:12.5px;
  padding:8px 0; border-top:1px solid rgba(255,255,255,.06); }
.jz-rr:first-child{ border-top:none; }
.jz-rr b{ width:20px; color:var(--gold); }
.jz-rr span{ flex:1; }
.jz-rr i{ font-style:normal; color:var(--faint); font-size:11.5px; }
.jz-rr.me{ color:var(--cyan); }
.jz-people button.up{ border-color:rgba(95,224,181,.45); background:rgba(95,224,181,.09); }
.jz-people button.down{ border-color:rgba(255,138,61,.45); background:rgba(255,138,61,.09); }
.jz-people button.up em{ color:#5FE0B5; }
.jz-people button.down em{ color:#FF9ECF; }

/* كروت الـQR بلوحة لجين + هدية الترحيب */
.qr-card{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1);
  border-radius:16px; padding:13px; margin-bottom:10px; }
.qr-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.qr-top b{ font-size:13.5px; color:var(--ink); display:block; }
.qr-top small{ font-size:10.5px; color:var(--faint); }
.qr-st{ font-size:10.5px; font-weight:700; border-radius:99px; padding:3px 10px; }
.qr-st.on{ background:rgba(95,224,181,.16); color:#5FE0B5; }
.qr-st.off{ background:rgba(255,77,109,.16); color:#FF4D6D; }
.qr-nums{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin:11px 0; }
.qr-nums span{ text-align:center; background:rgba(255,255,255,.04);
  border-radius:11px; padding:7px 3px; }
.qr-nums b{ display:block; font-size:16px; font-weight:800; color:var(--ink); }
.qr-nums i{ font-style:normal; font-size:10px; color:var(--faint); }
.qr-acts{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.qr-gift{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-top:12px; }
.qr-gift span{ display:grid; justify-items:center; gap:3px; width:62px; }
.qr-gift i{ font-style:normal; font-size:26px; line-height:1; }
.qr-gift small{ font-size:9.5px; color:var(--muted); text-align:center; line-height:1.3; }
