/* the photo viewer (measured from the original: black, the photo in the middle, ♥ + likes at the right,
   thumbnails 64×77 with a white frame and a 48×57 ＋ at the bottom) */
.ph-screen { background: #000 !important; }
.ph { position: relative; height: 100%; display: flex; flex-direction: column; background: #000; color: #fff; font-family: Montserrat, Cairo, sans-serif; outline: 0; }
.ph-top { flex: 0 0 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.ph-more { width: 32px; height: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: none; }
.ph-more i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.ph-count { font-size: 13px; font-weight: 700; opacity: .8; }
.ph-x { width: 32px; height: 32px; background: none; color: #fff; font-size: 20px; }
.ph-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.ph-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; animation: phIn .2s ease-out; }
.ph-img.avatar { width: 70%; height: auto; border-radius: 12px; opacity: .9; }
@keyframes phIn { from { opacity: 0; transform: scale(.97); } }
.ph-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 56px; border-radius: 10px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 30px; line-height: 1; opacity: .7; }
.ph-nav:hover { opacity: 1; }
.ph-nav.prev { left: 6px; }
.ph-nav.next { right: 6px; }
[dir="rtl"] .ph-nav.prev { left: auto; right: 6px; transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .ph-nav.next { right: auto; left: 6px; transform: translateY(-50%) scaleX(-1); }
.ph-like { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.ph-like.mine { cursor: default; }
.ph-like:not(.mine):active span { transform: scale(1.25); }
.ph-like span { display: grid; transition: transform .15s; }
.ph-like b { font-size: 12px; font-weight: 700; }
[dir="rtl"] .ph-like { right: auto; left: 10px; }
.ph-empty { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; font-size: 13px; opacity: .8; padding: 0 20px; }
.ph-thumbs { flex: 0 0 auto; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 10px 16px; overflow-x: auto; }
.ph-thumb { position: relative; flex: 0 0 66px; height: 79px; padding: 0; border-radius: 8px; border: 1px solid transparent; background: none; opacity: .7; }
.ph-thumb.on { border-color: #fff; opacity: 1; }
.ph-thumb span { display: block; width: 100%; height: 100%; border-radius: 7px; background: #222 center / cover no-repeat; }
.ph-main { position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; border-radius: 50%; background: #ffc107; color: #fff; font-style: normal; font-size: 11px; line-height: 18px; text-align: center; }
.ph-add { flex: 0 0 48px; height: 57px; border-radius: 8px; border: 1px solid #fff; background: none; color: #fff; font-size: 22px; font-weight: 300; }
.ph-add:hover { background: rgba(255, 255, 255, .12); }
.ph-menu { position: absolute; top: 48px; left: 14px; z-index: 3; min-width: 150px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); display: flex; flex-direction: column; }
[dir="rtl"] .ph-menu { left: auto; right: 14px; }
.ph-menu button { height: 32px; padding: 0 10px; border-radius: 6px; background: none; color: #2b2340; font-size: 13px; text-align: start; }
.ph-menu button:hover { background: #f4effb; }
.ph-menu button.danger { color: #e03131; }
.ph-busy { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(0, 0, 0, .6); font-size: 14px; font-weight: 600; }
/* my profile: the photo opens the album */
button.pf-photo-wrap { padding: 0; background: none; border: 0; cursor: pointer; }
.pf-photo-n { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 1px 7px; border-radius: 10px; background: rgba(43, 35, 64, .8); color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; z-index: 2; }
.pf-photos { cursor: pointer; }

/* ── my profile: numbers, relationships and balances (fewer words, clearer parts) ── */
.pf2-stats { margin: 14px 12px 0; }
.pf2-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf2-stat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(121, 87, 178, .12); color: #2b2340; }
.pf2-stat::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 14px 14px 0 0; background: var(--sc); }
.pf2-stat.gifts { --sc: linear-gradient(90deg, #ffb347, #ff7b54); }
.pf2-stat.kisses { --sc: linear-gradient(90deg, #ff5fa2, #e8368f); }
.pf2-stat.achievements { --sc: linear-gradient(90deg, #ffd43b, #fab005); cursor: pointer; }
.pf2-stat.likes { --sc: linear-gradient(90deg, #ff6b6b, #f03e3e); }
.pf2-stat-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: #f7f2ff; }
.pf2-stat-n { font-size: 17px; font-weight: 800; line-height: 20px; }
.pf2-stat-l { font-size: 10px; color: #8b84a3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf2-today { position: absolute; top: 6px; right: 6px; padding: 0 5px; border-radius: 8px; background: #d3f9d8; color: #2b8a3e; font-style: normal; font-size: 9px; font-weight: 800; line-height: 14px; }
[dir="rtl"] .pf2-today { right: auto; left: 6px; }
.pf2-card { margin: 12px 12px 0; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 3px 10px rgba(121, 87, 178, .12); }
.pf2-cap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14px; font-weight: 800; color: #382a63; }
.pf2-rel-empty { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(135deg, #fff0f6, #f3ecff); }
.pf2-hearts { font-size: 26px; animation: pf2Beat 1.6s ease-in-out infinite; }
@keyframes pf2Beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.pf2-rel-empty > span:nth-child(2) { flex: 1; font-size: 13px; font-weight: 600; color: #5d5470; }
.pf2-find { height: 32px; padding: 0 16px; border-radius: 20px; background: linear-gradient(135deg, #ff5fa2, #b14be6); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 3px 10px rgba(225, 54, 143, .3); }
.pf2-card.rel .pf-court { margin: 0; }
/* balances: tabs across the card's top, then roomy tiles (icon, number, short name) */
.pf2-card.wallet { padding: 0 0 12px; overflow: hidden; }
.pf2-wtabs { position: relative; display: flex; height: 46px; background: #382a63; padding: 6px 6px 0; gap: 4px; }
.pf2-wtabs > button:not(.pf2-winfo) { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px 12px 0 0; background: #473873; color: rgba(255, 255, 255, .6); font-size: 15px; font-weight: 800; }
.pf2-wtabs > button:not(.pf2-winfo) span { font-size: 17px; }
.pf2-wtabs > button.on { background: #fff; color: #382a63; }
.pf2-winfo { position: absolute; top: 12px; inset-inline-end: 10px; width: 22px; height: 22px; padding: 0; background: none; color: #fff; opacity: .7; }
.pf2-winfo svg { width: 18px; height: 18px; }
.pf2-wtabs > button:not(.pf2-winfo):last-of-type { margin-inline-end: 30px; }
.pf2-bal-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 12px 0; }
.pf2-bal { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 8px; border-radius: 14px; background: linear-gradient(180deg, #fbf8ff, #f3edfd); border: 1px solid #ece3fa; }
.pf2-bal-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #fff; box-shadow: 0 2px 6px rgba(121, 87, 178, .15); }
.pf2-bal-n { font-size: 15px; font-weight: 800; color: #2b2340; white-space: nowrap; }
.pf2-bal-l { max-width: 100%; font-size: 9.5px; color: #8b84a3; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── hearts after a kiss: they burst out, sway and turn as they float away; a special kiss adds a ring of
   hearts circling the pair and a pink glow ── */
.hfx { position: absolute; z-index: 7; pointer-events: none; font-size: 22px; line-height: 1; opacity: 0; transform: translate(-50%, -50%) scale(.3);
  animation: hfxFly 2.4s cubic-bezier(.2, .7, .3, 1) forwards; filter: drop-shadow(0 2px 4px rgba(214, 51, 108, .35)); }
@keyframes hfxFly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0); }
  12% { opacity: 1; }
  35% { transform: translate(calc(-50% + var(--dx) * .45 + 10px), calc(-50% + var(--dy) * .45)) scale(var(--s)) rotate(calc(var(--r) * -.5)); }
  65% { transform: translate(calc(-50% + var(--dx) * .8 - 10px), calc(-50% + var(--dy) * .8)) scale(var(--s)) rotate(var(--r)); opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) - 40px)) scale(calc(var(--s) * .8)) rotate(calc(var(--r) * 1.5)); }
}

/* My emotions: the same tabs as "Your design" */
/* the same bar as "Your design" (dark purple, dividers, the chosen one lighter and underlined), spread across the
   width; each tab grows with its word, so a longer language scrolls instead of clipping */
.es-tabs.dz-tabs { display: flex; margin: 0 12px 12px; overflow-x: auto; scrollbar-width: none; }
.es-tabs.dz-tabs::-webkit-scrollbar { display: none; }
.es-tabs .dz-tab { flex: 1 0 auto; padding: 0 12px; overflow: visible; }
.es-none { padding: 28px 16px; text-align: center; color: #8b84a3; font-size: 13px; }

/* a short hint next to what was tapped */
.tip-bubble { position: fixed; z-index: 200; max-width: 230px; padding: 7px 11px; border-radius: 10px; background: #2b1f4f; color: #fff; font: 600 12px/16px Montserrat, Cairo, sans-serif; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); pointer-events: none; animation: tipIn .15s ease-out; }
.tip-bubble::after { content: ''; position: absolute; left: calc(var(--ax) - 6px); border: 6px solid transparent; }
.tip-bubble.below::after { top: -12px; border-bottom-color: #2b1f4f; }
.tip-bubble.above::after { bottom: -12px; border-top-color: #2b1f4f; }
@keyframes tipIn { from { opacity: 0; transform: translateY(-3px); } }

/* a passionate kiss in the table chat */
/* a kick at the table (chat.kickCard): red while it counts down, green saved, grey carried out */
.kc-event { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0; padding: 10px 8px; border-radius: 16px; color: #fff; transition: background .3s; }
.kc-event.live { background: linear-gradient(135deg, #7a0f24, #c2183a); box-shadow: 0 0 0 1px rgba(255, 90, 110, .5); }
.kc-event.saved { background: linear-gradient(135deg, #0f6b3a, #1f9d55); }
.kc-event.done { background: linear-gradient(135deg, #4a4a55, #6b6b78); }
.kc-event .pk-ph img { border-color: rgba(255, 255, 255, .85); box-shadow: none; }
.kc-event.done .pk-ph:last-child img { filter: grayscale(1); }
.kc-mid { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 96px; text-align: center; }
.kc-ico { font-size: 22px; line-height: 1; }
.kc-text { font-size: 11px; font-weight: 800; }
.kc-time { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kc-save { margin-top: 2px; padding: 4px 12px; border-radius: 12px; background: #2fbf63; color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.kc-save small { font-size: 10px; font-weight: 700; }
.pk-event { align-self: stretch; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0; padding: 10px 8px; border-radius: 16px;
  background: linear-gradient(135deg, #3a1d5c, #6b1f4f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 14px rgba(107, 31, 79, .35); color: #fff; animation: pkIn .4s ease-out; }
@keyframes pkIn { from { opacity: 0; transform: scale(.95); } }
.pk-ph { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; color: #fff; }
.pk-ph img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #ff8cc6; box-shadow: 0 0 12px rgba(255, 105, 180, .55); }
.pk-ph small { max-width: 70px; font-size: 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-mid { position: relative; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: center; width: 96px; }
.pk-mid small { flex-basis: 100%; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .3px; color: #ffb3d9; }
.pk-kiss { font-size: 28px; animation: pkKiss 1.2s ease-in-out infinite; }
.pk-h { font-size: 16px; animation: pkBeat 1.2s ease-in-out infinite; }
.pk-h.r { animation-delay: .3s; }
@keyframes pkKiss { 50% { transform: scale(1.18) rotate(-6deg); } }
/* an achievement at the table: the same band in gold, the player's photo, "got …", the round badge */
.ak-event { align-self: stretch; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; padding: 10px 10px; border-radius: 16px;
  background: linear-gradient(135deg, #3a1d5c, #7a4a12); box-shadow: inset 0 0 0 1px rgba(255, 215, 120, .18), 0 4px 14px rgba(122, 74, 18, .35); color: #fff; animation: pkIn .4s ease-out; }
.ak-event .pk-ph img { border-color: #ffd36b; box-shadow: 0 0 12px rgba(255, 200, 80, .55); }
.ak-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.ak-got { font-size: 10px; font-weight: 800; color: #ffd98a; letter-spacing: .3px; }
.ak-name { max-width: 100%; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-tier { font-size: 10px; opacity: .8; }
.ak-badge { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; color: #fff; cursor: pointer; }
.ak-badge small { font-size: 10px; font-weight: 700; color: #ffd98a; }
.ak-medal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 35% 30%, #fff3c4, #f0b43c 60%, #b8791a);
  border: 2px solid #ffd36b; box-shadow: 0 0 12px rgba(255, 200, 80, .6); animation: akShine 2.4s ease-in-out infinite; }
.ak-medal img { width: 100%; height: 100%; object-fit: cover; }
.ak-emoji { font-size: 26px; line-height: 1; }
.ak-badge:hover .ak-medal { transform: scale(1.08); }
@keyframes akShine { 50% { box-shadow: 0 0 20px rgba(255, 210, 90, .95); } }
.acx-card.focus { outline: 2px solid #ffc533; box-shadow: 0 0 16px rgba(255, 197, 51, .7); transition: box-shadow .3s; }
@keyframes pkBeat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.15); } }

/* a passionate kiss (the table stays bright): a beating heart that bursts (two shock rings, sparks), petals falling */
.pfx { position: absolute; inset: 0; z-index: 9; pointer-events: none; overflow: hidden; }
.pfx-heart { position: absolute; width: 120px; height: 112px; transform: translate(-50%, -50%) scale(0); filter: drop-shadow(0 0 18px rgba(255, 80, 150, .9)) drop-shadow(0 6px 12px rgba(120, 0, 50, .5));
  animation: pfxHeart 2.2s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.pfx-heart svg { width: 100%; height: 100%; }
@keyframes pfxHeart {
  0% { transform: translate(-50%, -50%) scale(0); }
  18% { transform: translate(-50%, -50%) scale(1.15); }
  28% { transform: translate(-50%, -50%) scale(.92); }
  38% { transform: translate(-50%, -50%) scale(1.12); }
  48% { transform: translate(-50%, -50%) scale(.95); }
  62% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  80% { transform: translate(-50%, -50%) scale(1.6); opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}
.pfx-ring { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 4px solid rgba(255, 140, 190, .95); box-shadow: 0 0 20px rgba(255, 80, 150, .8), inset 0 0 14px rgba(255, 80, 150, .6);
  transform: translate(-50%, -50%) scale(0); opacity: 0; animation: pfxRing 1.1s ease-out 1.55s forwards; }
.pfx-ring.r2 { border-width: 2px; animation-delay: 1.7s; animation-duration: 1.3s; }
@keyframes pfxRing { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(7); } }
.pfx-spark { position: absolute; font-style: normal; font-size: 18px; color: #ff4f93; text-shadow: 0 0 8px rgba(255, 120, 180, .9); opacity: 0; transform: translate(-50%, -50%);
  animation: pfxSpark 1.5s cubic-bezier(.15, .8, .3, 1) 1.55s forwards; }
@keyframes pfxSpark {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); }
  70% { opacity: 1; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--s)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 40px)) scale(calc(var(--s) * .6)); }
}
.pfx-petal { position: absolute; top: -30px; font-style: normal; opacity: 0; animation: pfxPetal 3s linear forwards; }
@keyframes pfxPetal {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  10% { opacity: 1; }
  50% { transform: translate(var(--sway), calc(var(--fall) * .5)) rotate(160deg); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--sway) * -1), var(--fall)) rotate(340deg); }
}

/* VIP stickers in the picker */
.sticker { position: relative; }
.sticker.locked .sticker-pic { filter: grayscale(.7) opacity(.55); }
.sticker-vip { position: absolute; top: 0; right: 0; font-style: normal; font-size: 12px; }

/* My emotions: cards like the frame cards of "Your design", three to a row, the emoji big */
.es-list .es-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; gap: 12px; padding: 0 12px 16px; row-gap: 12px; }
.es-list .es-item { width: auto; height: 140px; padding: 12px 6px 10px; justify-content: space-between; border-radius: 16px; background: #fff; border: 2px solid #ebe5f6; box-shadow: 0 3px 10px rgba(57, 45, 96, .07); transition: border-color .15s, transform .15s; }
.es-list .es-item:hover { border-color: #cbb8f2; transform: translateY(-2px); }
.es-list .es-img { width: 80px; height: 80px; background: none; }
.es-list .es-pic { max-width: 70px; max-height: 70px; }
.es-list .es-pic.emoji { font-size: 58px; line-height: 80px; }
.es-list .es-cost { width: 74px; height: 28px; }
.es-list .es-item.locked { background: #faf8fd; }

/* entry dialogs: a card in the middle of the game, a purple title band (like the original's dialogs) */
.ed-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(20, 8, 40, .55); animation: edFade .2s ease-out; }
.ed-wrap.out { animation: edOut .18s ease-in forwards; }
@keyframes edFade { from { opacity: 0; } }
@keyframes edOut { to { opacity: 0; } }
.ed { width: min(340px, 100%); border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(20, 8, 40, .45); overflow: hidden; animation: edPop .28s cubic-bezier(.3, 1.5, .5, 1); font-family: Montserrat, Cairo, sans-serif; }
@keyframes edPop { from { transform: scale(.85); opacity: 0; } }
.ed-head { position: relative; display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 44px; background: linear-gradient(135deg, #8f5cf7, #6a3fd9); color: #fff; }
.ed-head b { font-size: 17px; font-weight: 800; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 14px; }
.ed-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 20px 20px; text-align: center; color: #2b2340; }
.ed-art { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff6d6, #ffe08a 60%, #f7b733); box-shadow: 0 6px 18px rgba(247, 183, 51, .35); }
.ed-art span { font-size: 52px; line-height: 1; animation: edBob 2s ease-in-out infinite; }
@keyframes edBob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.ed.vip_expiring .ed-art, .ed.vip_ended .ed-art, .ed.first_vip .ed-art { background: radial-gradient(circle at 50% 40%, #fff, #f1e3ff 55%, #c79bff); box-shadow: 0 6px 18px rgba(143, 92, 247, .35); }
.ed-text { margin: 0; font-size: 15px; font-weight: 600; line-height: 21px; }
.ed-extra { display: flex; justify-content: center; }
.ed-go { min-width: 180px; height: 46px; padding: 0 24px; border-radius: 24px; background: linear-gradient(180deg, #5fd36a, #2fb344); color: #fff; font-size: 16px; font-weight: 800; text-transform: uppercase; box-shadow: 0 4px 0 #23913a, 0 8px 18px rgba(47, 179, 68, .35); }
.ed-go:active { transform: translateY(2px); box-shadow: 0 2px 0 #23913a; }
.ed-img { max-width: 100%; max-height: 160px; border-radius: 12px; object-fit: cover; }
.ed.news .ed-text { font-weight: 500; text-align: start; white-space: pre-line; }

/* "Complete your profile" */
.pf2-card.task { background: linear-gradient(135deg, #fff9e6, #fff); border: 1px solid #ffe8a3; }
.pf2-task-rw { padding: 2px 10px; border-radius: 12px; background: #ffd43b; color: #5c3d00; font-size: 12px; }
.pf2-task-bar { height: 6px; border-radius: 3px; background: #f1eaff; overflow: hidden; margin-bottom: 10px; }
.pf2-task-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffb347, #ff7b54); transition: width .3s; }
.pf2-task-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pf2-step { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; background: #fff; border: 1px dashed #d9c8f5; color: #5d5470; }
.pf2-step span { font-size: 18px; line-height: 22px; }
.pf2-step small { font-size: 10px; font-weight: 700; }
.pf2-step.done { border: 1px solid #b2f2bb; background: #ebfbee; color: #2b8a3e; cursor: default; }
.pf2-step.done span { font-weight: 800; }

/* Recent tables */
.rh { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.rh-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #efe7fb; box-shadow: 0 2px 6px rgba(57, 45, 96, .06); }
.rh-ico { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: #f3edfd; }
.rh-row.friends .rh-ico { background: #e7f5ff; }
.rh-row.party .rh-ico { background: #fff3bf; }
.rh-row.flirt .rh-ico { background: #ffe3ec; }
.rh-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rh-mid b { font-size: 14px; color: #2b2340; }
.rh-mid small { font-size: 11px; color: #8b84a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-go { flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 16px; background: linear-gradient(180deg, #5fd36a, #2fb344); color: #fff; font-size: 12px; font-weight: 800; }
.rh-here { font-size: 11px; font-weight: 800; color: #2f9e44; }
.rh-closed { font-size: 11px; color: #a097b5; }
.rh-empty { padding: 40px 16px; text-align: center; color: #8b84a3; }
.rh-empty span { font-size: 40px; }

/* club invites */
.club-invites { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; padding: 10px; border-radius: 14px; background: #fff8e6; border: 1px solid #ffe8a3; }
.club-invites > b { font-size: 13px; color: #5c3d00; }
.club-inv { display: flex; align-items: center; gap: 8px; }
.club-inv .club-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-inv-yes { height: 30px; padding: 0 14px; border-radius: 16px; background: linear-gradient(180deg, #5fd36a, #2fb344); color: #fff; font-weight: 800; font-size: 12px; }
.club-inv-no { width: 30px; height: 30px; border-radius: 50%; background: #f1eaff; color: #7957b2; }

/* report dialog */
.rp-wrap { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(20, 8, 40, .55); }
.rp { width: min(340px, 100%); border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 18px 50px rgba(20, 8, 40, .45); font-family: Montserrat, Cairo, sans-serif; animation: edPop .25s ease-out; }
.rp-head { position: relative; display: flex; align-items: center; justify-content: center; height: 50px; padding: 0 44px; background: linear-gradient(135deg, #ff6b6b, #e03131); color: #fff; }
.rp-head b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-x { position: absolute; top: 11px; inset-inline-end: 12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; }
.rp-kinds { display: flex; gap: 4px; margin: 12px 14px 0; padding: 3px; border-radius: 18px; background: #f4effb; }
.rp-kinds button { flex: 1 0 auto; height: 30px; padding: 0 10px; border-radius: 15px; background: none; color: #6a5a92; font-size: 12px; font-weight: 700; }
.rp-kinds button.on { background: #fff; color: #e03131; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.rp-sub { margin: 12px 16px 6px; font-size: 12px; font-weight: 700; color: #8b84a3; }
.rp-reasons { display: flex; flex-direction: column; gap: 6px; padding: 0 14px; }
.rp-reason { min-height: 40px; padding: 8px 14px; border-radius: 12px; background: #faf7ff; border: 1px solid #ece3fa; color: #2b2340; font-size: 13px; font-weight: 600; text-align: start; }
.rp-reason:hover { border-color: #ffa8a8; background: #fff5f5; }
.rp-note { margin: 10px 16px 14px; font-size: 10px; color: #a097b5; text-align: center; }
.msg-report { opacity: 0; background: none; font-size: 11px; padding: 0 2px; transition: opacity .15s; }
.msg:hover .msg-report { opacity: .7; }
.ph-report { width: 32px; height: 32px; background: none; font-size: 18px; }
.club-report { align-self: flex-start; background: none; color: #e03131; font-size: 12px; font-weight: 700; }

/* invite a friend to my table */
.seat.empty { cursor: pointer; }
.seat.empty:hover .plus { transform: scale(1.08); }
.iv { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.iv-hint { margin: 0 0 4px; font-size: 12px; color: #8b84a3; }
.iv-row, .iv-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1px solid #efe7fb; }
.iv-ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.iv-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.iv-mid b { font-size: 14px; color: #2b2340; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-mid small { font-size: 11px; color: #8b84a3; }
.iv-go { height: 32px; padding: 0 14px; border-radius: 16px; background: linear-gradient(180deg, #5fd36a, #2fb344); color: #fff; font-size: 12px; font-weight: 800; }
.iv-go:disabled { background: #d3f9d8; color: #2b8a3e; }
.iv-empty { padding: 40px 16px; text-align: center; color: #8b84a3; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.iv-empty span { font-size: 40px; }
.iv-empty p { margin: 0; }
.iv-find { height: 34px; padding: 0 18px; border-radius: 18px; background: #7957b2; color: #fff; font-weight: 700; }
.iv-card { position: fixed; top: 64px; left: 50%; z-index: 80; width: min(360px, 92vw); transform: translateX(-50%); box-shadow: 0 10px 30px rgba(20, 8, 40, .3); animation: edPop .25s ease-out; }
.iv-x { width: 28px; height: 28px; border-radius: 50%; background: #f1eaff; color: #7957b2; }
.soc-join { flex: 0 0 auto; height: 28px; padding: 0 12px; border-radius: 14px; background: linear-gradient(180deg, #5fd36a, #2fb344); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }

/* entrance effects: chooser and the animation at the table */
.jf { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.jf-hint { margin: 0; font-size: 12px; color: #8b84a3; }
.jf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jf-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; border-radius: 16px; background: #fff; border: 2px solid #ebe5f6; box-shadow: 0 3px 10px rgba(57, 45, 96, .07); }
.jf-card.on { border-color: #36c25a; box-shadow: 0 0 0 1px #36c25a inset; }
.jf-art { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 52px; background: radial-gradient(circle at 50% 40%, #fff, color-mix(in srgb, var(--jc, #7957b2) 22%, #fff)); overflow: hidden; }
.jf-art i { font-style: normal; }
.jf-art.horizontal i { animation: jfH 2.4s ease-in-out infinite; }
.jf-art.vertical i { animation: jfV 2.4s ease-in-out infinite; }
.jf-art.static i { animation: jfS 2.4s ease-in-out infinite; }
@keyframes jfH { 0% { transform: translateX(-60px); } 40%, 60% { transform: translateX(0); } 100% { transform: translateX(60px); } }
@keyframes jfV { 0% { transform: translateY(-60px); } 40%, 60% { transform: translateY(0); } 100% { transform: translateY(60px); } }
@keyframes jfS { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.12); } }
.jf-state { font-size: 12px; font-weight: 800; color: #7957b2; }
.jf-state.on { color: #2f9e44; }
.jf-state.vip { color: #e8590c; }
.jf-state.price { color: #2b2340; }
.jfx { position: absolute; z-index: 9; inset: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.jfx-art { font-size: 110px; line-height: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
.jfx-art img { max-width: 220px; max-height: 160px; }
.jfx.static .jfx-art { animation: jfxStatic var(--jd, 4s) ease forwards; }
.jfx.horizontal .jfx-art { animation: jfxHor var(--jd, 4s) cubic-bezier(.3, .7, .4, 1) forwards; }
.jfx.vertical .jfx-art { animation: jfxVer var(--jd, 4s) cubic-bezier(.3, .7, .4, 1) forwards; }
/* on the player's seat: kept inside the seat's card (clipped to its round corners), the art smaller than the card
   (the text goes to the table chat as a card) */
.jfx.on-seat { justify-content: center; gap: 0; z-index: 12; overflow: hidden; border-radius: var(--seat-r, 10px); }
.jfx.on-seat .jfx-art { font-size: calc(var(--seat) * .4); }
.jfx.on-seat .jfx-art img { max-width: 80%; max-height: 70%; object-fit: contain; }
/* the entrance's card in the table chat (chat.joinCard): the effect's colour, gone after its seconds */
.jc-event { align-self: stretch; display: flex; align-items: center; gap: 10px; margin: 4px 0; padding: 8px 12px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--jc) 85%, #000), var(--jc)); box-shadow: 0 4px 12px color-mix(in srgb, var(--jc) 40%, transparent);
  animation: jcIn .35s ease both; transition: opacity .35s, transform .35s; }
.jc-event.out { opacity: 0; transform: translateY(-6px) scale(.97); }
.jc-ph { flex: none; padding: 0; background: none; }
.jc-ph img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .85); }
.jc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; line-height: 16px; }
.jc-text b { font-size: 13px; }
.jc-art { flex: none; font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.jc-art img { width: 40px; height: 40px; object-fit: contain; }
@keyframes jcIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes jfxStatic { 0% { transform: scale(0); opacity: 0; } 15% { transform: scale(1.2); opacity: 1; } 25% { transform: scale(1); } 85% { opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes jfxHor { 0% { transform: translateX(-120vw); } 30%, 70% { transform: translateX(0); } 100% { transform: translateX(120vw); } }
@keyframes jfxVer { 0% { transform: translateY(-120vh); } 30%, 70% { transform: translateY(0); } 100% { transform: translateY(120vh); } }

/* the table tab's channels: Table / World / Newbies */
.ch-pick { background: none; color: inherit; font: inherit; font-weight: 700; padding: 0 6px; border-radius: 8px; }
.ch-pick:hover { background: rgba(121, 87, 178, .08); }
.ch-menu { position: fixed; z-index: 70; min-width: 170px; padding: 6px; border-radius: 12px; background: #fff; border: 2px solid #7957b2; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); display: flex; flex-direction: column; }
.ch-menu button { height: 34px; padding: 0 10px; border-radius: 8px; background: none; color: #2b2340; font-size: 14px; font-weight: 600; text-align: start; }
.ch-menu button:hover, .ch-menu button.on { background: #f4effb; color: #7957b2; }

/* watching a full table */
.watch-bar { position: absolute; left: 50%; bottom: 52px; z-index: 30; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 20px; background: rgba(20, 8, 40, .8); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.watch-sit { height: 30px; padding: 0 14px; border-radius: 16px; background: #6c757d; color: #fff; font-weight: 800; }
.watch-sit.ready { background: linear-gradient(180deg, #5fd36a, #2fb344); animation: jfS 1.2s ease-in-out infinite; }
.watch-x { background: none; color: #ced4da; font-size: 12px; text-decoration: underline; }

/* invite friends (referrals) */
.ref-card { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 10px 12px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #fff0f6, #f3ecff); text-align: center; }
.ref-art { font-size: 44px; line-height: 1; }
.ref-title { font-size: 16px; color: #382a63; }
.ref-gets { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #5d5470; font-weight: 600; }
.ref-link { display: flex; width: 100%; gap: 6px; }
.ref-link input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid #d9c8f5; font-size: 11px; background: #fff; }
.ref-link button, .ref-more { height: 36px; padding: 0 14px; border-radius: 10px; background: #7957b2; color: #fff; font-weight: 700; font-size: 12px; }
.ref-share { display: flex; gap: 8px; }
.ref-tg { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; background: #229ed9; color: #fff; font-weight: 700; font-size: 12px; text-decoration: none; }
.ref-earned { font-size: 12px; color: #5d5470; }
.ref-earned b { color: #2b8a3e; }

/* league mastery titles */
.badge.title { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 20px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); z-index: 3; }
.lg7-title { display: grid; grid-template-columns: 44px 1fr; gap: 4px 10px; align-items: center; margin: 12px 16px 0; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #fff8e6, #f3ecff); border: 1px solid #ffe8a3; }
.lg7-title-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.lg7-title-mid { display: flex; flex-direction: column; gap: 2px; }
.lg7-title-mid b { font-size: 14px; color: #382a63; }
.lg7-title-mid small { font-size: 11px; color: #8b84a3; }
.lg7-title-bar { height: 6px; border-radius: 3px; background: #efe9fb; overflow: hidden; }
.lg7-title-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd43b, #f59f00); }
.picker-row { max-height: 168px; overflow-y: auto; }
.msg-react { opacity: 0; background: none; font-size: 13px; padding: 0 2px; color: #a097b5; transition: opacity .15s; }
.msg:hover .msg-react { opacity: 1; }
.msg-reacts { display: flex; flex-wrap: wrap; gap: 3px; }
.msg-reacts:empty { display: none; }
.react { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: 10px; background: #f1eaff; font-size: 12px; }
.react small { font-size: 10px; font-weight: 700; color: #7957b2; }
.react-menu { position: fixed; z-index: 80; display: flex; gap: 2px; padding: 4px 6px; border-radius: 22px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); animation: edPop .15s ease-out; }
.react-menu button { width: 34px; height: 34px; border-radius: 50%; background: none; font-size: 20px; }
.react-menu button:hover { background: #f4effb; transform: scale(1.15); }
.st-plus1 { display: flex; align-items: center; gap: 6px; padding: 4px 8px; margin-top: 4px; border-radius: 10px; background: #ebfbee; }
.st-plus1 b { font-size: 11px; color: #2b8a3e; white-space: nowrap; }
.st-empty { padding: 30px 16px; text-align: center; color: #8b84a3; }

/* the welcome card: "Give the new player … a free gift!" and the welcome gifts with their green "Free" buttons */
.wc-event { flex: none; margin: 4px 0; padding: 12px 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(57, 45, 96, .1); text-align: center; animation: popIn .3s; transition: opacity .4s; }
.wc-event.out { opacity: 0; }
.wc-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: #2b1a55; line-height: 1.4; }
.wc-ph { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.wc-name { padding: 0; background: none; color: #2196f3; font-weight: 800; font-size: 13px; }
.wc-gifts { display: flex; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.wc-gift { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 0; background: none; }
.wc-gift:disabled { opacity: .6; }
.wc-pic { width: 56px; height: 56px; display: grid; place-items: center; font-size: 40px; }
.wc-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wc-free { width: 100%; padding: 3px 0; border-radius: 10px; background: #b6e07a; color: #fff6c2; font-size: 12px; font-weight: 800; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.wc-gift:hover .wc-free { background: #9fd35a; }

/* the sack caught: a warm golden card — the catcher's photo, what they won, the sack glowing at the end */
.sk-event { position: relative; flex: none; display: flex; align-items: center; gap: 10px; margin: 4px 0; padding: 10px 12px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #fff6d6, #ffe08a 60%, #ffc94d); box-shadow: 0 3px 10px rgba(201, 151, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .6); animation: popIn .35s; }
.sk-event::before { content: ''; position: absolute; inset: -40% auto auto -20%; width: 60%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: rotate(20deg); animation: sk-shine 2.4s ease-in-out 1; }
@keyframes sk-shine { from { left: -60%; } to { left: 130%; } }
.sk-ph { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: none; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .2); }
.sk-ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sk-text { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sk-text b { color: #6b4300; font-size: 13px; line-height: 1.35; }
.sk-prize { justify-content: flex-start; }
.sk-bag { position: relative; flex: none; font-size: 34px; line-height: 1; filter: drop-shadow(0 0 8px #fff3a0) drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); animation: bob 1.2s ease-in-out infinite; }
/* … a ghost caught: the same card in violet night colours */
.sk-event.sk-ghost { background: linear-gradient(135deg, #efe7ff, #c9b3ff 60%, #a58bff); box-shadow: 0 3px 10px rgba(124, 92, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .6); }
.sk-ghost .sk-text b { color: #3d2a7a; }
.sk-ghost .sk-bag { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 2px 4px rgba(124, 92, 255, .6)); }
/* a big gift at the table: the achievement card's band in the gift's own colours, its picture in the middle */
.gc-event { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 14px rgba(0, 0, 0, .25); }
.gc-event .pk-ph img { border-color: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .45); }
.gc-event .ak-got { color: #fff; opacity: .85; }
.gc-gift { width: 48px; height: 48px; display: grid; place-items: center; margin: 2px 0; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); animation: gcPop .6s cubic-bezier(.2, 1.6, .4, 1); }
.gc-gift .gc-gift-pic { width: 100%; height: 100%; object-fit: contain; }
.gc-gift .gc-gift-pic.emoji { font-size: 38px; line-height: 48px; }
.gc-cat { margin-top: 2px; padding: 0 7px; border-radius: 8px; font-size: 9px; font-weight: 800; line-height: 15px; background: rgba(255, 255, 255, .22); }
@keyframes gcPop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* a received gift's achievement: always grey, its badge too (only the giver's card is in colour) */
.ak-event.ak-recv { background: linear-gradient(135deg, #5f6670, #8d949c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 12px rgba(0, 0, 0, .2); }
.ak-recv .ak-got { color: #e6e9ec; }
.ak-recv .ak-medal { background: radial-gradient(circle at 35% 30%, #f2f3f5, #b9bec4 60%, #80868d); filter: grayscale(1); }
.ak-recv .pk-ph img { border-color: #d5d9dd; box-shadow: none; }

/* a table invitation (js/invite.js invitedCard): a card in the middle of the game, the friend's photo inside a
   20-second ring, "Join" and "Later"; ✕ dismisses it too (the invitation stays in the Events list) */
.ivx-wrap { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; padding: 16px; background: rgba(20, 8, 40, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: ivxFade .2s ease-out; }
.ivx-wrap.out { animation: ivxFadeOut .22s ease-in forwards; }
.ivx { position: relative; width: min(340px, calc(100vw - 32px)); padding: 26px 22px 18px; border-radius: 26px; background: linear-gradient(180deg, #fff6fb 0%, #ffffff 46%); box-shadow: 0 24px 60px rgba(20, 8, 40, .45), 0 0 0 1px rgba(255, 79, 139, .12); text-align: center; font-family: Montserrat, Cairo, sans-serif; animation: ivxPop .32s cubic-bezier(.2, 1.4, .4, 1); }
.ivx-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%; background: #f3eefb; color: #6b5d86; font-size: 15px; font-weight: 700; display: grid; place-items: center; transition: background .15s, transform .15s; }
.ivx-x:hover { background: #ebe3f8; transform: rotate(90deg); }
.ivx-top { position: relative; width: 112px; height: 112px; margin: 0 auto 10px; }
.ivx-ava { position: absolute; inset: 12px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #ff4f8b, #7c5cff); }
.ivx-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; display: block; }
.ivx-timer { position: absolute; inset: 0; }
.ivx-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ivx-ring-bg { fill: none; stroke: #f1e9fb; stroke-width: 3.5; }
.ivx-ring-fg { fill: none; stroke: #ff4f8b; stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ivx-count { position: absolute; inset-inline-end: -2px; bottom: 2px; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; background: linear-gradient(135deg, #ff4f8b, #ff7a59); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(255, 79, 139, .35); }
.ivx-name { display: block; font-size: 19px; font-weight: 800; color: #2b2340; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ivx-text { margin: 4px 0 0; font-size: 14px; color: #6b5d86; }
.ivx-players { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 12px; background: #f3eefb; color: #6b5d86; font-size: 12px; font-weight: 600; }
.ivx-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.ivx-join { height: 50px; border-radius: 25px; background: linear-gradient(180deg, #5fd36a, #2fb344); color: #fff; font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 18px rgba(47, 179, 68, .35); transition: transform .12s, filter .12s; }
.ivx-join:hover { filter: brightness(1.05); }
.ivx-join:active { transform: scale(.97); }
.ivx-join:disabled { filter: grayscale(.4); }
.ivx-later { height: 40px; border-radius: 20px; background: transparent; color: #7957b2; font-size: 14px; font-weight: 700; }
.ivx-later:hover { background: #f6f1fd; }
.ivx-note { display: block; margin-top: 6px; font-size: 11px; color: #a39bb8; }
@keyframes ivxPop { from { transform: scale(.82) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ivxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ivxFadeOut { to { opacity: 0; } }
@media (max-width: 420px) { .ivx { padding: 24px 18px 16px; border-radius: 24px; } .ivx-join { height: 52px; } }
@media (prefers-reduced-motion: reduce) { .ivx, .ivx-wrap { animation: none; } .ivx-ring-fg { transition: none; } }
/* the Events list: "Join" on an invitation */
.nt-view.nt-join { color: #2b8a3e; }

/* a writing mute / a ban from songs given by the staff (red) or lifted (green): the sign between the player's photo
   and the staff member's, what happened, who, how long, and the reason */
.ban-card { align-self: stretch; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0; padding: 12px 12px 10px;
  border-radius: 16px; color: #fff; text-align: center; animation: pkIn .4s ease-out; }
.ban-card.on { background: linear-gradient(135deg, #e5354b, #a3122a); box-shadow: 0 4px 14px rgba(196, 24, 52, .35), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ban-card.lift { background: linear-gradient(135deg, #27b56a, #11804a); box-shadow: 0 4px 14px rgba(20, 140, 80, .35), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.bc-top { display: flex; align-items: center; justify-content: center; gap: 12px; }
.bc-ph { width: 46px; height: 46px; border-radius: 50%; padding: 0; overflow: hidden; background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .85); display: grid; place-items: center; font-size: 22px; }
.bc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-ph.mod { width: 36px; height: 36px; font-size: 18px; }
.bc-sign { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 19px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.bc-title { font-size: 14px; line-height: 1.3; }
.bc-by { font-size: 11.5px; opacity: .9; }
.bc-reason { width: 100%; margin-top: 4px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .18); text-align: start; }
.bc-reason small { display: block; font-size: 10.5px; opacity: .8; text-transform: uppercase; letter-spacing: .03em; }
.bc-reason p { margin: 2px 0 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
