/* «اسرق التاج» 👑 — واجهة البثّ (٢٠٢٦/١٠/١٤): المشهد ياخذ الشاشة والواجهة على الأطراف بس */
.xg-crown .g-how, .xg-crown .g-top{ display: none !important; }
.xg-crown .g-body{ position: absolute; inset: 0; padding: 0 !important; }
.cr-lobby{ visibility: hidden; position: absolute; inset: 0; pointer-events: none; }
.cr{ --cg: var(--star, #ffd36e); --cb: var(--p1, #3f8cff); --cr-red: #ff5d73; --ink: #14183a;
  position: absolute; inset: 0; overflow: hidden; direction: rtl; font-weight: 800; color: #fff; background: #9fd8ff; }
.cr-scene{ position: absolute; inset: 0; }
.cr-scene canvas{ display: block; width: 100%; height: 100%; }
.cr-tags{ position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cr-tag{ position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 999px;
  background: rgba(20, 24, 58, .78); border: 2px solid rgba(255,255,255,.55); white-space: nowrap; font-size: 15px; font-weight: 900; will-change: transform; }
.cr-tag b{ max-width: 120px; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.cr-tag .av{ width: 24px !important; height: 24px !important; }
.cr-tag.king{ background: linear-gradient(135deg, #ffcc33, #ff9f1c); color: var(--ink); border-color: #fff; font-size: 19px; padding: 3px 12px 3px 4px; box-shadow: 0 0 0 3px rgba(255,204,51,.35), 0 6px 18px rgba(0,0,0,.35); z-index: 3; }
.cr-tag.king b{ text-shadow: none; max-width: 170px; }
.cr-tag.king .av{ width: 30px !important; height: 30px !important; }
.cr-tk{ font-style: normal; font-size: 20px; margin-inline-end: 2px; }

/* الشعار · المؤقّت · العدد */
.cr-logo{ position: absolute; top: 18px; right: 22px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05;
  padding: 10px 18px; border-radius: 18px; background: rgba(20,24,58,.72); border: 2px solid rgba(255,255,255,.25); }
.cr-logo b{ font-size: 30px; font-weight: 900; color: var(--cg); text-shadow: 0 2px 0 #7a4a00; }
.cr-logo small{ font-size: 15px; font-weight: 800; opacity: .85; }
.cr-clock{ --p: 100; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 4; width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; background: conic-gradient(var(--cg) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); box-shadow: 0 8px 26px rgba(0,0,0,.35); }
.cr-clock::before{ content: ""; position: absolute; inset: 9px; border-radius: 50%; background: rgba(20,24,58,.92); }
.cr-clock b{ position: relative; font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; direction: ltr; }
.cr-clock.hurry{ animation: crPulse .6s infinite alternate; background: conic-gradient(var(--cr-red) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); }
@keyframes crPulse{ to{ transform: translateX(-50%) scale(1.07); } }
.cr-count{ position: absolute; top: 18px; left: 22px; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 18px;
  background: rgba(20,24,58,.72); border: 2px solid rgba(255,255,255,.25); font-size: 30px; font-weight: 900; }

/* الملك الحين (يمين) · أفضل ٣ (يسار) */
.cr-king{ position: absolute; top: 110px; right: 22px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; min-width: 250px;
  border-radius: 20px; background: linear-gradient(135deg, rgba(255,204,51,.95), rgba(255,159,28,.95)); color: var(--ink); box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.cr-king:empty{ display: none; }
.cr-king .av{ width: 64px !important; height: 64px !important; border: 3px solid #fff; }
.cr-king div{ display: flex; flex-direction: column; line-height: 1.15; }
.cr-king small{ font-size: 15px; font-weight: 900; }
.cr-king small em{ font-style: normal; color: #1a5fd0; }
.cr-king b{ font-size: 27px; font-weight: 900; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-king span{ font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cr-top{ position: absolute; top: 110px; left: 22px; z-index: 4; width: 300px; padding: 12px; border-radius: 20px; background: rgba(20,24,58,.78); border: 2px solid rgba(255,255,255,.2); }
.cr-top:empty{ display: none; }
.cr-top h3{ margin: 0 0 8px; font-size: 18px; font-weight: 900; color: var(--cg); }
.cr-tr{ position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-top: 6px; border-radius: 12px; background: rgba(255,255,255,.08); overflow: hidden; }
.cr-tr i{ position: absolute; inset-inline-end: 0; top: 0; bottom: 0; background: rgba(255,204,51,.18); z-index: 0; transition: width .4s; }
.cr-tr > *{ position: relative; z-index: 1; }
.cr-tr em{ font-style: normal; font-size: 22px; }
.cr-tr b{ flex: 1; font-size: 18px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-tr span{ font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; direction: ltr; }
.cr-tr.now{ box-shadow: inset 0 0 0 2px var(--cg); }

/* التنبيه (السرقة) · الحدث · التلميح */
.cr-alert{ position: absolute; top: 168px; left: 50%; transform: translate(-50%, -14px); z-index: 5; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; }
.cr-alert span{ display: inline-block; padding: 12px 28px; border-radius: 999px; font-size: 34px; font-weight: 900; white-space: nowrap;
  background: rgba(20,24,58,.9); border: 3px solid var(--cg); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.cr-alert.on{ opacity: 1; transform: translate(-50%, 0); animation: crPop .45s cubic-bezier(.2,1.6,.4,1); }
.cr-alert.steal span{ background: linear-gradient(135deg, #ff5d73, #ff9f1c); border-color: #fff; }
.cr-alert.king span{ background: linear-gradient(135deg, #ffcc33, #ff9f1c); color: var(--ink); border-color: #fff; }
@keyframes crPop{ 0%{ transform: translate(-50%, 0) scale(.6); } 100%{ transform: translate(-50%, 0) scale(1); } }
.cr-event{ position: absolute; top: 250px; left: 50%; transform: translateX(-50%) scale(.8); z-index: 4; opacity: 0; transition: .25s; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; padding: 10px 22px 14px; border-radius: 18px; background: rgba(122,108,255,.9); border: 2px solid #fff; overflow: hidden; }
.cr-event.on{ opacity: 1; transform: translateX(-50%) scale(1); }
.cr-event b{ font-size: 26px; font-weight: 900; }
.cr-event small{ font-size: 17px; font-weight: 800; }
.cr-event i{ position: absolute; bottom: 0; right: 0; height: 5px; width: 100%; background: #fff; transform-origin: right; animation: crBar linear forwards; }
.cr-event.slip{ background: rgba(63,140,255,.92); } .cr-event.heavy{ background: rgba(255,159,28,.92); } .cr-event.chaos{ background: rgba(255,93,115,.92); }
@keyframes crBar{ to{ transform: scaleX(0); } }
.cr-hint{ position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 12px 30px; border-radius: 999px;
  background: rgba(20,24,58,.85); border: 3px solid var(--cg); font-size: 32px; font-weight: 900; white-space: nowrap; }
.cr-hint:empty{ display: none; }
.cr-hint b{ color: var(--cg); font-size: 40px; padding: 0 6px; }

/* الانضمام */
.cr-join{ position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 6; }
.cr-jc{ display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 36px; border-radius: 26px; background: rgba(20,24,58,.88); border: 3px solid var(--cg); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.cr-jc h2{ margin: 0; font-size: 36px; font-weight: 900; }
.cr-jc h2 b{ color: var(--cg); font-size: 46px; }
.cr-jn{ display: flex; align-items: baseline; gap: 10px; }
.cr-jn b{ font-size: 60px; font-weight: 900; color: var(--cg); line-height: 1; }
.cr-jn span{ font-size: 22px; font-weight: 800; }
.cr-jt{ font-size: 22px; font-weight: 800; }
.cr-jt b{ color: var(--cg); font-size: 30px; }
.cr-go{ margin-top: 6px; padding: 10px 26px; border-radius: 14px; border: 0; background: linear-gradient(135deg, #ffcc33, #ff9f1c); color: var(--ink); font: inherit; font-size: 20px; font-weight: 900; cursor: pointer; }
.cr-go:disabled{ opacity: .45; cursor: not-allowed; }

/* النهاية */
.cr-end{ position: absolute; inset: 0; z-index: 7; display: none; align-items: flex-end; justify-content: center; padding-bottom: 28px; pointer-events: none; }
.cr-end.on{ display: flex; }
.cr-ec{ pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 30px 18px; border-radius: 28px; background: rgba(20,24,58,.9); border: 3px solid var(--cg);
  animation: crPop2 .6s cubic-bezier(.2,1.5,.4,1); }
@keyframes crPop2{ from{ transform: translateY(40px) scale(.85); opacity: 0; } }
.cr-ec > small{ font-size: 22px; font-weight: 900; color: var(--cg); }
.cr-ew{ display: flex; align-items: center; gap: 14px; }
.cr-ew .av{ width: 84px !important; height: 84px !important; border: 4px solid var(--cg); }
.cr-ew b{ font-size: 44px; font-weight: 900; }
.cr-ew span{ font-size: 22px; font-weight: 900; color: var(--cg); }
.cr-ec ol{ list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 12px; }
.cr-ec li{ display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 14px; background: rgba(255,255,255,.1); font-size: 19px; }
.cr-ec li em{ font-style: normal; font-size: 24px; }
.cr-ec li b{ font-weight: 900; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-ec li span{ font-weight: 900; color: var(--cg); }
.cr-ec li small{ font-size: 14px; opacity: .85; }
.cr-next{ font-size: 18px; font-weight: 800; }
.cr-next b{ color: var(--cg); }

/* لوحة الستريمر */
.cr-dock .cr-dk-row{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; font-weight: 700; }
.cr-dk-st{ margin: 4px 0 0; font-size: 13px; opacity: .8; }

/* شاشات أصغر من البثّ */
@media (max-width: 1400px){
  .cr-logo b{ font-size: 24px; } .cr-clock{ width: 108px; height: 108px; } .cr-clock b{ font-size: 32px; }
  .cr-top{ width: 250px; } .cr-king{ min-width: 210px; } .cr-king b{ font-size: 22px; }
  .cr-hint{ font-size: 24px; } .cr-hint b{ font-size: 30px; } .cr-alert span{ font-size: 26px; }
}
/* v2 (٢٠٢٦/١٠/١٥): انتقام · صامد · التوب ٥ */
.cr-alert.revenge span{ background: linear-gradient(135deg, #7a3cff, #ff3d6e); border-color: #fff; box-shadow: 0 0 0 4px rgba(255,61,110,.35), 0 10px 30px rgba(0,0,0,.4); }
.cr-alert.streak span{ background: linear-gradient(135deg, #fff1a8, #ffcc33 45%, #ff9f1c); color: var(--ink); border-color: #fff; box-shadow: 0 0 26px rgba(255,204,51,.75); }
.cr-tr:nth-of-type(n+4) em{ display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 15px; font-weight: 900; }
.cr-tr.now{ box-shadow: inset 0 0 0 2px var(--cg), 0 0 14px rgba(255,204,51,.45); }
