/* «يبي يلعب معك» and «وصلتك هدية» (public/tables/livepop.js, 2026-11-17): one look on the three games' pages and the
   site's — a dark majlis card with gold, like an incoming call. */
.lp-root {
  --lp-ink: #FFF7E8; --lp-mut: #D2C1A3; --lp-dim: #A8987E; --lp-line: rgba(255, 214, 140, .2);
  --lp-c1: rgba(44, 30, 19, .97); --lp-c2: rgba(21, 14, 9, .98); --lp-gold: #F5C451; --lp-g: #F5B93A;
  position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; color: var(--lp-ink);
  -webkit-font-smoothing: antialiased; line-height: 1.5; text-align: start;
}
.lp-root *, .lp-root *::before, .lp-root *::after { box-sizing: border-box; }
.lp-root [data-g="wassilha"] { --lp-g: #3D7BEA; } .lp-root [data-g="cards"] { --lp-g: #D9472F; } .lp-root [data-g="baloot"] { --lp-g: #A86A22; }

/* ---------- the card ---------- */
.lp-scrim { position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 40%, rgba(10, 6, 3, .62), rgba(4, 3, 2, .88)); -webkit-backdrop-filter: blur(8px) saturate(110%); backdrop-filter: blur(8px) saturate(110%); opacity: 0; transition: opacity .35s ease; }
.on > .lp-scrim { opacity: 1; }
.lp-card {
  position: relative; width: min(368px, 100%); padding: 20px 20px 18px; border-radius: 28px; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--lp-c1), var(--lp-c2)); border: 1px solid var(--lp-line);
  box-shadow: 0 34px 90px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 236, 200, .13);
  transform: translateY(22px) scale(.93); opacity: 0; transition: transform .5s cubic-bezier(.2, 1.25, .3, 1), opacity .28s ease, filter .3s ease;
}
.on > .lp-card { transform: none; opacity: 1; }
.lp-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 236, 200, .07), transparent 32%); }
.lp-glow { position: absolute; left: 50%; top: -90px; width: 340px; height: 260px; margin-left: -170px; pointer-events: none; background: radial-gradient(closest-side, rgba(245, 185, 58, .26), rgba(245, 185, 58, 0)); }

.lp-kick { position: relative; display: inline-flex; align-items: center; gap: 8px; padding-block: 4px; padding-inline: 4px 12px; border-radius: 99px; background: rgba(255, 236, 200, .07); border: 1px solid var(--lp-line); color: var(--lp-mut); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.lp-gdot { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--lp-g); color: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .25), 0 4px 12px -2px var(--lp-g); font-size: 12px; }
.lp-gdot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.lp-gdot svg .f { fill: currentColor; stroke: none; }
.lp-gname { font-style: normal; font-weight: 800; color: var(--lp-ink); display: inline-flex; align-items: center; gap: 8px; }
.lp-gname::before { content: ""; width: 1px; height: 12px; background: var(--lp-line); }

/* ---------- the ring: his picture, seven seconds round it ---------- */
.lp-ringwrap { position: absolute; inset: 0; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); pointer-events: auto; }
.lp-stage { position: relative; width: 136px; height: 136px; margin: 16px auto 8px; display: grid; place-items: center; }
.lp-halo { position: absolute; inset: 14px; border-radius: 50%; border: 2px solid rgba(245, 185, 58, .55); animation: lpHalo 1.9s cubic-bezier(.2, .6, .3, 1) infinite; }
.lp-halo.h2 { animation-delay: .95s; }
.lp-av { position: relative; width: 124px; height: 124px; display: grid; place-items: center; flex: none; }
.lp-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg) scaleY(-1); overflow: visible; }
.lp-ring-bg { fill: none; stroke: rgba(255, 236, 200, .1); stroke-width: 5; }
.lp-ring-fg { fill: none; stroke: url(#lpRg); stroke-width: 5.5; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 0; animation: lpDrain var(--lp-ttl, 7000ms) linear forwards; filter: drop-shadow(0 0 5px rgba(245, 185, 58, .65)); }
.lp-face { position: relative; width: 98px; height: 98px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #2A1C12; box-shadow: 0 0 0 3px rgba(18, 12, 8, .95), 0 12px 28px rgba(0, 0, 0, .5); }
.lp-face > * { width: 100% !important; height: 100% !important; max-width: none !important; border-radius: 50%; }
.lp-ini { display: grid !important; place-items: center; color: #fff; font-weight: 800; font-size: 40px; line-height: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.lp-av > .lp-sec { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); min-width: 38px; height: 28px; padding: 0 9px; display: grid; place-items: center; border-radius: 99px; background: linear-gradient(180deg, #FFEDB5, #F5B93A); color: #2A1A06; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 3px rgba(18, 12, 8, .95), 0 6px 16px rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums; }
.lp-late .lp-av > .lp-sec { background: linear-gradient(180deg, #FF9A90, #E5484D); color: #fff; animation: lpBeat .5s ease-in-out infinite alternate; }
.lp-late .lp-halo { border-color: rgba(255, 107, 107, .6); }
.lp-late .lp-ring-fg { filter: drop-shadow(0 0 7px rgba(255, 107, 107, .8)); }
.lp-name { margin: 8px 0 0; font-size: 23px; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-wrap: balance; }
.lp-want { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--lp-gold); }
.lp-sub { margin: 8px auto 0; max-width: 30ch; font-size: 12.5px; color: var(--lp-mut); }
.lp-sub:empty { display: none; }

.lp-acts { position: relative; display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 18px; }
[dir="rtl"] .lp-ringcard .lp-acts { grid-template-columns: 1.35fr 1fr; }
[dir="rtl"] .lp-ringcard .lp-yes { order: -1; }
.lp-b { position: relative; overflow: hidden; -webkit-appearance: none; appearance: none; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 16px; border-radius: 17px; font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer; transition: transform .12s ease, filter .2s ease, background .2s ease; -webkit-tap-highlight-color: transparent; }
.lp-b svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-b:active { transform: scale(.97); }
.lp-b:focus-visible { outline: 2px solid #FFE7A3; outline-offset: 3px; }
.lp-yes { color: #05230F; background: linear-gradient(180deg, #6CEDA2, #22B45E); box-shadow: 0 12px 26px -10px rgba(34, 180, 94, .85), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.lp-yes::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-130%); animation: lpShine 2.6s ease-in-out .7s infinite; }
.lp-yes:hover { filter: brightness(1.06); }
.lp-no { color: #FFD6D6; background: rgba(255, 90, 95, .12); border: 1px solid rgba(255, 107, 107, .4); }
.lp-no:hover { background: rgba(255, 90, 95, .2); }
.lp-later { color: #2A1A06; background: linear-gradient(180deg, #FFEDB5, #F5B93A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.lp-gold { color: #2A1A06; background: linear-gradient(180deg, #FFEDB5, #F5C451 45%, #E5A532); box-shadow: 0 12px 26px -10px rgba(229, 165, 50, .85), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .1); }
.lp-ghost { color: var(--lp-ink); background: rgba(255, 236, 200, .08); border: 1px solid var(--lp-line); }
.lp-going { margin-top: 18px; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--lp-gold); font-weight: 700; font-size: 15.5px; }
.lp-going[hidden] { display: none; }
.lp-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(245, 196, 81, .25); border-top-color: var(--lp-gold); animation: lpSpin .7s linear infinite; }
.lp-taking .lp-acts, .lp-taking .lp-quick, .lp-taking .lp-dnd { display: none; }
/* the quick words under the two buttons («بعد ٥ دقايق», «مو الحين», «بكرة؟») and «لا تزعجني ساعة» */
.lp-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.lp-qw { -webkit-appearance: none; appearance: none; border: 1px solid var(--lp-line); background: rgba(255, 236, 200, .06); color: var(--lp-ink); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 99px; cursor: pointer; transition: background .2s ease, transform .12s ease; -webkit-tap-highlight-color: transparent; }
.lp-qw:hover { background: rgba(255, 236, 200, .12); }
.lp-qw:active { transform: scale(.96); }
.lp-dnd { display: block; margin: 10px auto 0; -webkit-appearance: none; appearance: none; border: 0; background: none; color: var(--lp-dim); font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 8px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(168, 152, 126, .45); text-underline-offset: 3px; }
.lp-dnd:hover { color: var(--lp-mut); }
.lp-qw:focus-visible, .lp-dnd:focus-visible, .lp-na:focus-visible { outline: 2px solid #FFE7A3; outline-offset: 2px; }
.lp-ended .lp-going { color: var(--lp-mut); }
.lp-ended .lp-spin { display: none; }
.lp-taking .lp-ring-fg { animation-play-state: paused; stroke: #34D47A; filter: drop-shadow(0 0 7px rgba(52, 212, 122, .8)); }
.lp-taking .lp-halo { border-color: rgba(52, 212, 122, .6); }
.lp-taking .lp-av > .lp-sec { visibility: hidden; }

/* leaving: taken — up and away; turned down — a shake; unanswered — it fades */
.lp-out > .lp-card { transform: translateY(-14px) scale(.96); }
.lp-out-no > .lp-card { animation: lpNo .38s ease; transform: scale(.94); }
.lp-out-miss > .lp-card { transform: scale(.9); filter: grayscale(.7); }

/* in the middle of his own game: a slim card at the top, the board left free */
.lp-ringwrap.lp-busy { inset: 0 0 auto 0; display: flex; justify-content: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0; pointer-events: none; }
.lp-busy > .lp-card { pointer-events: auto; width: min(470px, 100%); padding: 12px 12px 12px; border-radius: 22px; text-align: start; transform: translateY(-130%); }
.lp-busy.on > .lp-card { transform: none; }
.lp-busy.lp-out-no > .lp-card, .lp-busy.lp-out-miss > .lp-card, .lp-busy.lp-out > .lp-card { transform: translateY(-130%); animation: none; }
.lp-mini { display: flex; align-items: center; gap: 12px; }
.lp-av.sm { width: 54px; height: 54px; }
.lp-av.sm .lp-face { width: 44px; height: 44px; box-shadow: 0 0 0 2px rgba(18, 12, 8, .95); }
.lp-av.sm .lp-ini { font-size: 19px; }
.lp-av.sm .lp-ring-bg, .lp-av.sm .lp-ring-fg { stroke-width: 8; }
.lp-mt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.lp-mt b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-mt small { font-size: 12px; color: var(--lp-mut); }
.lp-mini > .lp-sec { flex: none; min-width: 36px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 11px; background: rgba(245, 185, 58, .14); color: var(--lp-gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.lp-late .lp-mini > .lp-sec { background: rgba(255, 90, 95, .18); color: #FF9A90; }
.lp-busy .lp-acts { grid-template-columns: 1fr 1fr; margin-top: 10px; }
[dir="rtl"] .lp-busy .lp-later { order: -1; }
.lp-busy .lp-b { min-height: 44px; font-size: 14.5px; border-radius: 13px; }
.lp-busy .lp-b svg { width: 18px; height: 18px; }

/* ---------- what the friend you invited said ---------- */
.lp-note { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; width: max-content; display: flex; align-items: center; gap: 10px; max-width: min(460px, calc(100% - 24px)); padding-block: 6px; padding-inline: 6px 16px; border-radius: 99px; pointer-events: auto; cursor: pointer;
  background: linear-gradient(180deg, var(--lp-c1), var(--lp-c2)); border: 1px solid var(--lp-line); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 236, 200, .1);
  transform: translate(-50%, -160%); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.25, .3, 1), opacity .3s ease; font-size: 14px; font-weight: 600; }
.lp-note.on { transform: translate(-50%, 0); opacity: 1; }
.lp-av.xs { width: 34px; height: 34px; }
.lp-av.xs .lp-face { width: 34px; height: 34px; box-shadow: none; }
.lp-av.xs .lp-ini { font-size: 15px; }
.lp-nt { white-space: nowrap; }
.lp-nd { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--lp-dim); }
.lp-a-yes { border-color: rgba(52, 212, 122, .5); } .lp-a-yes .lp-nd { background: #34D47A; box-shadow: 0 0 10px #34D47A; }
.lp-a-no .lp-nd { background: #FF6B6B; } .lp-a-busy .lp-nd { background: #F5B93A; } .lp-a-away .lp-nd { background: #7AA7FF; }
.lp-a-dnd .lp-nd { background: #9C8CFF; } .lp-a-watching .lp-nd { background: #FF9F5A; }
.lp-a-free, .lp-a-on { border-color: rgba(52, 212, 122, .45); } .lp-a-free .lp-nd, .lp-a-on .lp-nd { background: #34D47A; box-shadow: 0 0 10px #34D47A; }
/* a friend came on: «العب معه» right in the note */
.lp-na { -webkit-appearance: none; appearance: none; border: 0; flex: none; font: inherit; font-size: 13px; font-weight: 700; color: #2A1A06; background: linear-gradient(180deg, #FFEDB5, #F5B93A); padding: 6px 12px; border-radius: 99px; cursor: pointer; }
/* «بعد اللعبة» carried through: «فلان ينتظرك» */
.lp-after .lp-av.sm .lp-face { box-shadow: 0 0 0 2px rgba(52, 212, 122, .9), 0 0 14px rgba(52, 212, 122, .5); }

/* ---------- the gift ---------- */
.lp-giftwrap { position: absolute; inset: 0; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); pointer-events: auto; }
.lp-giftcard { width: min(384px, 100%); padding: 22px 22px 20px; border-color: rgba(245, 196, 81, .38); background: radial-gradient(120% 70% at 50% 0%, rgba(245, 185, 58, .2), rgba(245, 185, 58, 0) 62%), linear-gradient(180deg, #2E1E11, #150D08); }
.lp-rays { position: absolute; left: 50%; top: 116px; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, .1) 0deg 7deg, rgba(255, 214, 120, 0) 7deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 22%, transparent 70%); mask-image: radial-gradient(closest-side, #000 22%, transparent 70%); animation: lpSpin 22s linear infinite; }
.lp-kick.gold .lp-gdot { background: linear-gradient(180deg, #FFEDB5, #E5A532); color: #2A1A06; box-shadow: 0 0 0 3px rgba(0, 0, 0, .25), 0 4px 12px -2px rgba(229, 165, 50, .9); }
.lp-boxw { position: relative; width: 126px; height: 126px; margin: 10px auto 2px; }
.lp-box { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .45)); transform-origin: 50% 90%; animation: lpBoxIn .75s cubic-bezier(.2, 1.4, .4, 1) both, lpBob 3.2s ease-in-out 1.1s infinite; }
.lp-lid { transform-origin: 60px 58px; animation: lpLid .75s cubic-bezier(.3, 1.6, .5, 1) .5s both; }
.lp-burst { position: absolute; left: 50%; top: 132px; width: 0; height: 0; pointer-events: none; }
.lp-coin { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 34% 32%, #FFF5CF, #F5C451 46%, #C98A1B); box-shadow: 0 0 9px rgba(245, 196, 81, .7);
  animation: lpCoin 1.25s cubic-bezier(.15, .7, .3, 1) forwards; animation-delay: calc(.55s + var(--i) * 28ms); }
.lp-coin:nth-child(3n) { width: 9px; height: 9px; margin: -4.5px; }
.lp-coin:nth-child(4n) { border-radius: 3px; background: linear-gradient(135deg, #FFF5CF, #F5C451); transform: rotate(45deg); }
.lp-gt { margin: 6px 0 0; font-size: 18px; font-weight: 700; }
.lp-amt { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 0; }
.lp-n { font-family: Alexandria, "Readex Pro", system-ui, sans-serif; font-size: 54px; font-weight: 900; line-height: 1.12; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFF6D2, #F5C451 55%, #D99A25); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 16px rgba(245, 185, 58, .38)); }
.lp-landed .lp-n { animation: lpPop .5s ease; }
.lp-u { font-size: 16px; font-weight: 600; color: var(--lp-mut); }
.lp-q { margin: 12px auto 0; max-width: 100%; text-wrap: balance; padding: 10px 16px; border-radius: 15px; background: rgba(255, 236, 200, .06); border: 1px solid rgba(255, 214, 140, .17); font-size: 14px; line-height: 1.65; color: var(--lp-ink); overflow-wrap: anywhere; }
.lp-bal { margin: 10px 0 0; color: var(--lp-mut); font-size: 13px; }
.lp-bal[hidden] { display: none; }
.lp-giftcard .lp-acts { grid-template-columns: 1fr; }
.lp-giftcard .lp-acts.two { grid-template-columns: 1fr 1.4fr; }
[dir="rtl"] .lp-giftcard .lp-acts.two { grid-template-columns: 1.4fr 1fr; }
[dir="rtl"] .lp-giftcard .lp-gold { order: -1; }
.lp-giftwrap.lp-out > .lp-card { transform: translateY(-12px) scale(.96); }

/* ---------- motion ---------- */
@keyframes lpHalo { 0% { transform: scale(.82); opacity: .95; } 100% { transform: scale(1.38); opacity: 0; } }
@keyframes lpDrain { to { stroke-dashoffset: -100; } }
@keyframes lpBeat { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.12); } }
@keyframes lpShine { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
@keyframes lpSpin { to { transform: rotate(360deg); } }
@keyframes lpNo { 0%, 100% { translate: 0; } 20% { translate: -8px; } 40% { translate: 7px; } 60% { translate: -5px; } 80% { translate: 3px; } }
@keyframes lpBoxIn { 0% { transform: translateY(26px) scale(.55) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lpBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-1.5deg); } }
@keyframes lpLid { 0% { transform: none; } 60% { transform: translate(-2px, -20px) rotate(-14deg); } 100% { transform: translate(-1px, -12px) rotate(-9deg); } }
@keyframes lpCoin { 0% { transform: translate(0, 0) scale(.35); opacity: 0; } 14% { opacity: 1; } 100% { transform: translate(calc(var(--x) * 156px), calc(var(--y) * 118px - 34px)) scale(1); opacity: 0; } }
@keyframes lpPop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

@media (max-width: 380px) {
  .lp-card { padding: 18px 16px 16px; border-radius: 24px; }
  .lp-stage { width: 122px; height: 122px; margin-top: 12px; }
  .lp-av { width: 112px; height: 112px; }
  .lp-face { width: 88px; height: 88px; }
  .lp-name { font-size: 21px; }
  .lp-b { min-height: 50px; font-size: 15.5px; }
  .lp-n { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-halo, .lp-rays, .lp-yes::after, .lp-coin { animation: none !important; }
  .lp-halo, .lp-coin { display: none; }
  .lp-box, .lp-lid { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .lp-card, .lp-note { transition-duration: .01ms !important; }
}

/* the site's points in its header, as a gift lands */
.coin-btn.lp-bump { animation: lpCoinBump .9s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes lpCoinBump { 0% { transform: scale(1); } 30% { transform: scale(1.18); filter: drop-shadow(0 0 10px rgba(245, 196, 81, .9)); } 100% { transform: scale(1); } }
/* a gift stepping aside while a ring is on (it comes back after) */
.lp-giftwrap.lp-park { visibility: hidden; pointer-events: none; }
