/* 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; }
.pf-photos .pf-gal { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(255, 255, 255, .5); opacity: 0; transition: opacity .2s; pointer-events: none; }
.pf-photos .pf-gal b { padding: 8px 18px; border-radius: 20px; background: rgba(121, 87, 178, .92); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 4px 14px rgba(40, 20, 90, .35); }
.pf-photos:hover .pf-gal, .pf-photos:active .pf-gal { opacity: 1; }
/* the album's two tabs: photos / story */
.ph-tabs { flex: none; display: flex; justify-content: center; gap: 6px; padding: 0 16px 8px; }
.ph-tab { min-width: 96px; height: 32px; padding: 0 16px; border-radius: 16px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px; font-weight: 800; }
.ph-tab.on { background: #fff; color: #4b2f8f; }

/* ── 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 { flex: none; align-self: center; width: 26px; height: 26px; padding: 0; background: none; color: #fff; opacity: .7; }
.pf2-winfo svg { width: 18px; height: 18px; }
/* the balances fill the row by width — 3 on a phone, more on a wider window — each card its share, never wider (a long
   value or label is cut or wraps, it never pushes a card out of the row) */
.pf2-bal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(92px, 100%), 1fr)); gap: 8px; padding: 12px 10px 0; }
.pf2-bal { min-width: 0; 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 { max-width: 100%; font-size: 15px; font-weight: 800; color: #2b2340; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf2-bal-l { max-width: 100%; font-size: 10px; line-height: 1.25; color: #8b84a3; text-align: center; overflow: hidden; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* ── 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 */
/* the emotions' tabs: one lilac capsule over the whole width, the open tab a white pill (like the chat's tabs) */
.es-tabs.dz-tabs { display: flex; margin: 0 0 10px; padding: 4px; gap: 2px; grid-auto-rows: auto; overflow-x: auto; scrollbar-width: none; background: #efe8fb; border-radius: 12px; box-shadow: none; }
.es-tabs.dz-tabs::-webkit-scrollbar { display: none; }
.es-tabs .dz-tab { flex: 1 0 auto; height: 32px; padding: 0 10px; overflow: visible; border-top: 0; border-radius: 9px; color: #8a78b8; font-size: 13px; }
.es-tabs .dz-tab::before { display: none; }
.es-tabs .dz-tab.on { background: #fff; color: #7957b2; text-decoration: none; box-shadow: 0 0 0 1px #d9cbf3; }
/* the eraser for myself: a light orange bar over the whole width — its picture, one short word, its price */
.es-erase { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 6px 10px; border-radius: 14px; background: #fff4e5; border: 1.5px solid #f5d29a; color: #7a4a00; font: inherit; cursor: pointer; }
.es-erase-img { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.es-erase-pic { max-width: 40px; max-height: 40px; object-fit: contain; }
.es-erase-pic.emoji { font-size: 30px; line-height: 40px; }
.es-erase > b { flex: 1; min-width: 0; text-align: start; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-erase .es-cost { flex: none; width: auto; min-width: 64px; padding: 0 10px; }
.es-erase .es-cost b.word { font-size: 12px; -webkit-text-stroke: 2.5px #fff; }
.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(4, minmax(0, 1fr)); justify-content: stretch; gap: 8px; padding: 0 0 16px; row-gap: 8px; }
.es-list .es-item { width: auto; height: 112px; padding: 10px 4px 8px; 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: 60px; height: 60px; background: none; }
.es-list .es-pic { max-width: 56px; max-height: 56px; }
.es-list .es-pic.emoji { font-size: 46px; line-height: 60px; }
.es-list .es-cost { width: 100%; max-width: 74px; height: 26px; }
.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; flex-direction: column; align-items: stretch; width: 100%; }
/* the entry windows, one look: a gradient head, the art in a glowing circle, short words, rewards in big tiles */
.ed-head { background: linear-gradient(135deg, #7b4dff, #b05cff 60%, #ff7ab8); }
.ed-day { justify-self: center; align-self: center; display: grid; justify-items: center; min-width: 110px; padding: 8px 18px; border-radius: 16px; background: #f6f2fd; box-shadow: inset 0 0 0 1px #ebe3fa; }
.ed-day small { font-size: 11px; font-weight: 800; color: #8a7bb5; text-transform: uppercase; letter-spacing: .06em; }
.ed-day b { font-size: 30px; font-weight: 900; color: #3b2370; line-height: 1.05; }
.ed-reward { display: flex; justify-content: center; margin-top: 10px; }
.ed-reward .rw-chips, .lr-won .rw-chips { gap: 8px; }
.ed-reward .rw-chip, .lr-won .rw-chip { padding: 8px 14px; border-radius: 14px; background: linear-gradient(180deg, #fff8e1, #ffe9ad); box-shadow: inset 0 0 0 1px #f5d77a; color: #5c4400; font-size: 16px; font-weight: 900; }
.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; }
.pnl-side { display: grid; place-items: center; }
.club-report { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.club-report svg { display: block; }
.club-report:hover { background: rgba(255, 255, 255, .26); }

/* 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) */
/* inside the seat's photo: over the picture, under its frame (z 2), kisses and level (3) and accessories (4) */
.jfx.on-seat { justify-content: center; gap: 0; z-index: 1; overflow: hidden; border-radius: inherit; }
.jfx.on-seat .jfx-art { font-size: min(calc(var(--seat) * var(--jz, .65) * .9 * var(--jk, 1)), calc(var(--seat) * .8)); }
.jfx.on-seat .jfx-art img { width: auto; height: min(calc(var(--seat) * var(--jz, .65) * var(--jk, 1)), calc(var(--seat) * .9)); max-width: calc(var(--seat) * .74); max-height: none; 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 and its size — "gave" over one row:
   the picture beside the gift's name and its tab */
.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-row { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-width: 0; }
.gc-txt { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.gc-event .gc-gift { flex: none; width: 34px; height: 34px; display: grid; place-items: center; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); animation: gcPop .6s cubic-bezier(.2, 1.6, .4, 1); }
.gc-event .gc-gift .gc-gift-pic { width: 100%; height: 100%; object-fit: contain; }
.gc-event .gc-gift .gc-gift-pic.emoji { font-size: 26px; line-height: 34px; }
.gc-cat { 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; }

/* a birthday card in the table chat (birthday.js): festive, the photo under balloons, the gifts, the call to act */
.bd-event { position: relative; flex: none; align-self: center; width: min(100%, 260px); margin: 4px auto; padding: 8px 10px 8px; border-radius: 16px; color: #fff; overflow: hidden; animation: popIn .35s;
  background: linear-gradient(135deg, #ff2d6f, #7b2ff7); box-shadow: 0 4px 14px rgba(123, 47, 247, .3); }
.bd-event::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(#ffc93c 1.5px, transparent 2px) 0 0 / 20px 20px, radial-gradient(#4cc9f0 1.5px, transparent 2px) 10px 10px / 20px 20px; animation: bdConf 6s linear infinite; }
@keyframes bdConf { to { background-position: 0 40px, 10px 50px; } }
.bd-head { position: relative; display: flex; align-items: center; gap: 10px; text-align: start; }
.bd-ph { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer; margin-top: 6px; }
.bd-ph img { display: block; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #ffc93c; box-shadow: 0 0 12px rgba(255, 201, 60, .8); }
.bd-balloons { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: .85rem; white-space: nowrap; animation: bdBob 2.4s ease-in-out infinite; }
.bd-cake { position: absolute; right: -6px; bottom: -4px; font-size: 1rem; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
@keyframes bdBob { 50% { transform: translateX(-50%) translateY(-3px); } }
.bd-who { min-width: 0; display: grid; gap: 2px; justify-items: start; }
.bd-title { font-weight: 800; font-size: .8rem; line-height: 1.15; text-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.bd-name { font-size: .9rem; background: rgba(255, 255, 255, .92); color: #3a2470; border-radius: 999px; padding: 0 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-gifts { position: relative; display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.bd-gift { flex: 1; max-width: 64px; display: grid; justify-items: center; gap: 2px; padding: 4px 2px 4px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .95); color: #3a2470; cursor: pointer; transition: transform .15s; }
.bd-gift:hover:not(:disabled) { transform: translateY(-2px) scale(1.05); }
.bd-gift:disabled { opacity: .6; }
.bd-pic { width: 36px; height: 36px; display: grid; place-items: center; }
.bd-img { width: 100%; height: 100%; object-fit: contain; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.bd-free { font-size: .64rem; color: #fff; background: #22c55e; border-radius: 999px; padding: 0 8px; }
.bd-price { font-size: .64rem; }
.bd-foot { position: relative; margin-top: 6px; font-weight: 800; font-size: .76rem; text-align: center; }
.bd-got { font-weight: 800; font-size: .74rem; }

/* a birthday player's seat: the birthday frame (a glowing festive border when it has no picture) and its effect */
.seat-frame.color.bday { border: 0; background: none; border-radius: calc(10 * var(--u));
  box-shadow: 0 0 0 calc(3 * var(--u)) #ffc93c, 0 0 0 calc(6 * var(--u)) #ff2d6f, 0 0 calc(18 * var(--u)) calc(4 * var(--u)) rgba(255, 45, 111, .85); animation: bdGlow 1.6s ease-in-out infinite; }
@keyframes bdGlow { 50% { box-shadow: 0 0 0 calc(3 * var(--u)) #4cc9f0, 0 0 0 calc(6 * var(--u)) #7b2ff7, 0 0 calc(26 * var(--u)) calc(6 * var(--u)) rgba(255, 201, 60, .9); } }
.bday-fx { position: absolute; inset: calc(-14 * var(--u)) calc(-16 * var(--u)); pointer-events: none; z-index: 5; }
.bday-fx.svga-seat { inset: calc(-20 * var(--u)) calc(-16 * var(--u)); }
.seat.bday { z-index: 2; }
.bday-hat { position: absolute; top: calc(-6 * var(--u)); left: calc(-4 * var(--u)); transform: rotate(-14deg); font-size: calc(30 * var(--u)); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); pointer-events: none; z-index: 4; }
.bday-balloon { position: absolute; bottom: calc(10 * var(--u)); font-style: normal; font-size: calc(24 * var(--u)); opacity: 0; animation: bdRise 5s ease-in infinite; }
.bday-balloon.b0 { left: 0; } .bday-balloon.b1 { right: 0; animation-delay: 1.2s; filter: hue-rotate(160deg); }
.bday-balloon.b2 { left: 12%; animation-delay: 2.5s; filter: hue-rotate(250deg); } .bday-balloon.b3 { right: 12%; animation-delay: 3.7s; filter: hue-rotate(60deg); }
@keyframes bdRise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(calc(-150 * var(--u))) rotate(-8deg); opacity: 0; } }
.bday-spark { position: absolute; top: calc(4 * var(--u)); width: calc(5 * var(--u)); height: calc(5 * var(--u)); border-radius: 50%; color: #ffc93c; background: currentColor; opacity: 0;
  box-shadow: 0 calc(-14 * var(--u)) currentColor, calc(10 * var(--u)) calc(-10 * var(--u)) #ff2d6f, calc(14 * var(--u)) 0 currentColor, calc(10 * var(--u)) calc(10 * var(--u)) #4cc9f0,
    0 calc(14 * var(--u)) currentColor, calc(-10 * var(--u)) calc(10 * var(--u)) #ff2d6f, calc(-14 * var(--u)) 0 currentColor, calc(-10 * var(--u)) calc(-10 * var(--u)) #4cc9f0; animation: bdBurst 2.4s ease-out infinite; }
.bday-spark.s0 { left: 18%; } .bday-spark.s1 { left: 72%; animation-delay: .8s; color: #ff7ab6; } .bday-spark.s2 { left: 45%; top: calc(-6 * var(--u)); animation-delay: 1.6s; color: #a78bfa; }
@keyframes bdBurst { 0% { transform: scale(.1); opacity: 0; } 10% { opacity: 1; } 60% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.bday-conf { position: absolute; top: 0; width: calc(4 * var(--u)); height: calc(7 * var(--u)); border-radius: 1px; background: #ffc93c; animation: bdFall 3.2s linear infinite; }
.bday-conf.c0 { left: 8%; } .bday-conf.c1 { left: 25%; background: #ff2d6f; animation-delay: .5s; } .bday-conf.c2 { left: 42%; background: #4cc9f0; animation-delay: 1.1s; }
.bday-conf.c3 { left: 60%; animation-delay: 1.6s; } .bday-conf.c4 { left: 76%; background: #7b2ff7; animation-delay: 2.2s; } .bday-conf.c5 { left: 90%; background: #ff2d6f; animation-delay: 2.7s; }
@keyframes bdFall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(calc(150 * var(--u))) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bday-fx i, .bd-event::before, .bd-balloons, .seat-frame.color.bday { animation: none; } }

/* ── my own entrance effect (joinfx.js, ownjoin.js): two tabs, the editor, ten animations ── */
.jf-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 4px; border-radius: 14px; background: #f1ecfa; }
.jf-tab { flex: 1; padding: 9px 6px; border-radius: 10px; font-weight: 800; font-size: 13px; color: #6b5d8f; background: none; }
.jf-tab.on { color: #fff; background: linear-gradient(135deg, #8a5cf0, #6a3fd8); box-shadow: 0 3px 10px rgba(106, 63, 216, .3); }
.jf-tabdot { font-style: normal; margin-inline-start: 6px; padding: 0 5px; border-radius: 8px; font-size: 11px; background: #36c25a; color: #fff; }
.oj-buy, .oj-edit { display: flex; flex-direction: column; gap: 14px; }
.oj-buy { align-items: center; text-align: center; }
.oj-title { font-size: 17px; color: #2b2340; }
.oj-buybtn, .oj-save { align-self: stretch; padding: 12px; font-size: 15px; }
/* the preview: my seat as the table shows it (its shape measured from a real seat, my photo behind), my art playing
   where I put it (dragged), the chat's card under it */
.oj-prevwrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.oj-seat { position: relative; overflow: hidden; flex: none; touch-action: none; user-select: none;
  background: center / cover no-repeat, radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--jc) 35%, #fff), color-mix(in srgb, var(--jc) 80%, #1b1230));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--jc) 35%, transparent), 0 0 0 2px #fff; }
.oj-prevwrap.big .oj-seat { cursor: grab; }
.oj-prevwrap.big .oj-seat:active { cursor: grabbing; }
.oj-pos { position: absolute; left: var(--ox, 50%); top: var(--oy, 50%); transform: translate(-50%, -50%); display: grid; place-items: center; pointer-events: none; z-index: 1; }
.oj-tools { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #6b5d8f; }
.oj-center { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; color: #7957b2; background: #f1ecfa; }
.oj-card { max-width: 100%; padding: 5px 12px; border-radius: 12px; color: #fff; font-size: 11px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.oj-sec { display: flex; flex-direction: column; gap: 8px; }
.oj-sec > b { font-size: 13px; color: #2b2340; }
.oj-icons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.oj-ico, .oj-pic { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: #fff; border: 2px solid #ebe5f6; padding: 0; }
.oj-pic { grid-column: span 3; aspect-ratio: auto; grid-template-columns: auto 1fr; gap: 6px; padding: 4px 8px; font-size: 22px; text-align: start; }
.oj-pic img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.oj-pic small { font-size: 11px; font-weight: 700; color: #6b5d8f; }
.oj-ico.on, .oj-pic.on, .oj-style.on { border-color: #36c25a; box-shadow: 0 0 0 1px #36c25a inset; }
.oj-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.oj-style { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 12px; background: #fff; border: 2px solid #ebe5f6; position: relative; overflow: hidden; }
.oj-style .jf-art { width: 46px; height: 46px; font-size: 26px; }
.oj-style .jf-art img { width: 40px; height: 40px; object-fit: contain; }
.oj-style small { max-width: 100%; font-size: 10px; line-height: 12px; font-weight: 700; color: #6b5d8f; text-align: center; overflow-wrap: anywhere; }
.oj-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.oj-color { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #d9d1ea; padding: 0; position: relative; display: grid; place-items: center; font-size: 16px; cursor: pointer; }
.oj-color.on { box-shadow: 0 0 0 3px #36c25a; }
.oj-any { background: conic-gradient(#f03e3e, #fab005, #40c057, #15aabf, #4c6ef5, #be4bdb, #f03e3e); }
.oj-any input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* the ten entrances (they come in and stay), then the exit chosen (.jfx-x, its last moment on the seat); in the
   editor they play again and again (.oj-replay, restarted by joinfx.js), at the table once for the seat's seconds */
.jf-art.oj-replay > *, .jfx[class*='own-'] .jfx-art { animation-duration: var(--jd, 2.8s); animation-fill-mode: both; animation-timing-function: ease-in-out; }
.jf-art.own-pop > *, .jf-art.own-hearts > *, .jf-art.own-confetti > *, .jfx.own-pop .jfx-art, .jfx.own-hearts .jfx-art, .jfx.own-confetti .jfx-art { animation-name: ojPop; }
.jf-art.own-spin > *, .jfx.own-spin .jfx-art { animation-name: ojSpin; }
.jf-art.own-drop > *, .jfx.own-drop .jfx-art { animation-name: ojDrop; }
.jf-art.own-slide > *, .jfx.own-slide .jfx-art { animation-name: ojSlide; }
.jf-art.own-pulse > *, .jfx.own-pulse .jfx-art { animation-name: ojPulse; }
.jf-art.own-swing > *, .jfx.own-swing .jfx-art { animation-name: ojSwing; transform-origin: 50% 0; }
.jf-art.own-flip > *, .jfx.own-flip .jfx-art { animation-name: ojFlip; }
.jf-art.own-stars > *, .jfx.own-stars .jfx-art { animation-name: ojGlow; }
@keyframes ojPop { 0% { transform: scale(0); opacity: 0; } 10% { transform: scale(1.25); opacity: 1; } 16%, 100% { transform: scale(1); opacity: 1; } }
@keyframes ojSpin { 0% { transform: rotate(-540deg) scale(0); opacity: 0; } 18% { transform: rotate(0) scale(1); opacity: 1; } 50% { transform: rotate(0) scale(1.08); } 100% { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes ojDrop { 0% { transform: translateY(-180%); opacity: 0; } 12% { transform: translateY(0); opacity: 1; } 17% { transform: translateY(-14%); } 22%, 100% { transform: translateY(0); opacity: 1; } }
@keyframes ojSlide { 0% { transform: translateX(-160%) skewX(-12deg); opacity: 0; } 14% { transform: translateX(8%) skewX(6deg); opacity: 1; } 20%, 100% { transform: translateX(0) skewX(0); opacity: 1; } }
@keyframes ojPulse { 0% { transform: scale(0); opacity: 0; } 10% { transform: scale(1); opacity: 1; } 18%, 34%, 50%, 66%, 82% { transform: scale(1.18); } 26%, 42%, 58%, 74%, 90%, 100% { transform: scale(1); opacity: 1; } }
@keyframes ojSwing { 0% { transform: rotate(0) scale(0); opacity: 0; } 10% { transform: rotate(22deg) scale(1); opacity: 1; } 24% { transform: rotate(-18deg); } 38% { transform: rotate(12deg); } 52% { transform: rotate(-8deg); } 66%, 100% { transform: rotate(0); opacity: 1; } }
@keyframes ojFlip { 0% { transform: perspective(400px) rotateY(90deg); opacity: 0; } 14% { transform: perspective(400px) rotateY(0); opacity: 1; } 40%, 100% { transform: perspective(400px) rotateY(360deg); opacity: 1; } }
@keyframes ojGlow { 0% { transform: scale(0); opacity: 0; filter: drop-shadow(0 0 0 #fff); } 12% { transform: scale(1.15); opacity: 1; } 20%, 100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 14px #fff6b0); } 50% { filter: drop-shadow(0 0 26px #ffe066); } }
/* away from the seat (joinfx.js place): over the table, the art fitted into --pw × --ph (contain: never cut, never
   stretched); "sides" = one at each side */
.jfx.jfx-place { position: absolute; inset: 0; z-index: 9; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 0; }
.jfx.jfx-place.place-sides { flex-direction: row; justify-content: space-between; padding: 0 1.5%; }
.jfx.jfx-place .jfx-art { display: grid; place-items: center; width: var(--pw); height: var(--ph); font-size: calc(min(var(--pw), var(--ph)) * .8); line-height: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .4)); }
.jfx.jfx-place .jfx-art img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
/* the editor's "where": a small table with the place lit */
.oj-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.oj-place { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px 6px; border-radius: 12px; background: #fff; border: 2px solid #ebe5f6; }
.oj-place.on { border-color: #36c25a; box-shadow: 0 0 0 1px #36c25a inset; }
.oj-place small { font-size: 10.5px; line-height: 12px; font-weight: 700; color: #6b5d8f; text-align: center; }
.oj-pmap { position: relative; width: 52px; height: 36px; border-radius: 6px; background: #2f9e44; box-shadow: inset 0 0 0 2px #23803a; overflow: hidden; }
.oj-pmap::before { content: ''; position: absolute; left: 6px; top: 5px; width: 9px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.oj-pmap i { position: absolute; background: #ffd43b; border-radius: 4px; box-shadow: 0 0 6px #ffe066; }
.pm-seat i { left: 5px; top: 4px; width: 11px; height: 14px; }
.pm-center i { left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; }
.pm-full i { inset: 3px; }
.pm-sides i { top: 6px; bottom: 6px; width: 10px; left: 3px; }
.pm-sides i + i { left: auto; right: 3px; }
/* the ten exits: how it leaves the seat (after --xd, in .8 s) */
.jfx-x { display: grid; place-items: center; animation-duration: .8s; animation-delay: var(--xd, 0s); animation-fill-mode: forwards; animation-timing-function: ease-in; }
.jfx-x.x-fade { animation-name: ojxFade; }
.jfx-x.x-shrink { animation-name: ojxShrink; }
.jfx-x.x-spin { animation-name: ojxSpin; }
.jfx-x.x-up { animation-name: ojxUp; }
.jfx-x.x-down { animation-name: ojxDown; }
.jfx-x.x-slide { animation-name: ojxSlide; }
.jfx-x.x-burst { animation-name: ojxBurst; }
.jfx-x.x-blur { animation-name: ojxBlur; }
.jfx-x.x-flip { animation-name: ojxFlip; }
.jfx-x.x-bounce { animation-name: ojxBounce; animation-timing-function: cubic-bezier(.5, -0.6, .6, 1); }
@keyframes ojxFade { to { opacity: 0; } }
@keyframes ojxShrink { to { transform: scale(0); opacity: 0; } }
@keyframes ojxSpin { to { transform: rotate(540deg) scale(0); opacity: 0; } }
@keyframes ojxUp { to { transform: translateY(-160%); opacity: 0; } }
@keyframes ojxDown { to { transform: translateY(160%); opacity: 0; } }
@keyframes ojxSlide { to { transform: translateX(170%) skewX(-14deg); opacity: 0; } }
@keyframes ojxBurst { 40% { transform: scale(1.35); opacity: 1; } to { transform: scale(2.2); opacity: 0; filter: brightness(1.8); } }
@keyframes ojxBlur { to { filter: blur(16px); transform: scale(1.15); opacity: 0; } }
@keyframes ojxFlip { to { transform: perspective(400px) rotateY(90deg); opacity: 0; } }
@keyframes ojxBounce { 35% { transform: scale(1.22); } to { transform: scale(0); opacity: 0; } }
/* the size chosen (% of the seat: --oz), on the seat and in the editor's preview */
.jfx.on-seat[class*='own-'] .jfx-art { font-size: calc(var(--seat) * var(--oz, .55) * .9 * var(--jk, 1)); }
.jfx.on-seat[class*='own-'] .jfx-art img { max-width: none; max-height: none; width: auto; height: calc(var(--seat) * var(--oz, .55) * var(--jk, 1)); }
.jfx.on-seat .oj-pos { z-index: 1; }
.oj-seat .jf-art, .oj-exit .jf-art { width: auto; height: auto; background: none; overflow: visible; }
.oj-seat .jf-art i { font-size: calc(var(--seat) * var(--oz, .55) * .9); line-height: 1; }
.oj-seat .jf-art img { width: auto; height: calc(var(--seat) * var(--oz, .55)); max-width: none; }
/* the size slider and the exits' tiles */
.oj-size { display: flex; align-items: center; gap: 10px; align-self: stretch; padding: 6px 10px; border-radius: 12px; background: #f6f2fc; }
.oj-size input { flex: 1; accent-color: #7957b2; }
.oj-size b { min-width: 44px; text-align: end; font-size: 13px; color: #2b2340; }
/* the particles of hearts, stars and confetti */
.ojp { position: absolute; z-index: 2; pointer-events: none; font-size: calc(var(--seat, 150px) * .15); line-height: 1; opacity: 0;
  animation-duration: var(--pd, 2s); animation-delay: var(--pdel, 0s); animation-timing-function: ease-out; animation-fill-mode: both; }
.ojp-hearts { animation-name: ojRise; }
.ojp-stars { animation-name: ojTwinkle; }
.ojp-confetti { width: 7px; height: 11px; border-radius: 2px; animation-name: ojFall; animation-timing-function: linear; }
@keyframes ojRise { 0% { transform: translateY(0) scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-260%) translateX(18%) scale(1); opacity: 0; } }
@keyframes ojTwinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
@keyframes ojFall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(1400%) rotate(600deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .jf-art.oj-replay > *, .jfx-x, .ojp { animation: none !important; opacity: 1; } }
/* a chance of a passionate kiss raised in this spin (chat.js chanceCard): a soft pink band across the chat
   (a little room on both sides) — photo, name, ×N, a kiss; gone when the turn ends */
.cc-event { align-self: stretch; flex: none; display: flex; align-items: center; gap: 8px; margin: 3px 10px; padding-block: 4px; padding-inline: 4px 12px;
  border-radius: 999px; background: linear-gradient(135deg, #ffe3f1, #f3dcff); border: 1px solid #ffc2e1; box-shadow: 0 2px 8px rgba(255, 105, 180, .18);
  color: #7a1f55; transition: opacity .35s, transform .35s; }
.cc-event.pop { animation: ccPop .45s ease-out; }
.cc-event.out { opacity: 0; transform: scale(.9); }
@keyframes ccPop { 0% { transform: scale(.85); opacity: .4; } 60% { transform: scale(1.06); opacity: 1; } }
.cc-event .cc-ph { flex: none; display: flex; width: 30px; height: 30px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 50%; }
/* the chat card's little round photo only: unscoped, this rule reached the couple's card in the profile and
   held the spouse's picture at 30px inside its 74px box (2026-11-16, the owner) */
.cc-event .cc-ph img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid #ff8cc6; }
.cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; }
.cc-x { flex: none; direction: ltr; unicode-bidi: isolate; padding: 1px 7px; border-radius: 10px; background: #ff5fa8; color: #fff; font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cc-kiss { flex: none; font-size: 15px; line-height: 1; animation: pkKiss 1.2s ease-in-out infinite; }

/* Player entrance effects (made in the panel for one player, joinfx.js): their cards on top of the Entrance effect
   window — the card's own colour or gradient, its picture or icon playing its animation, the phrase, on/off */
.pe-sec { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; border-bottom: 1px dashed #e4dcf3; }
.pe-title { font-size: 14px; color: #2b2340; }
.pe-list { display: flex; flex-direction: column; gap: 8px; }
.pe-card { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; color: #fff; text-align: start; border: 2px solid transparent; box-shadow: 0 4px 12px rgba(57, 45, 96, .18); }
.pe-card.on { border-color: #fff; box-shadow: 0 0 0 2px #36c25a, 0 4px 12px rgba(57, 45, 96, .25); }
.pe-art .jf-art { width: 58px; height: 58px; font-size: 32px; background: rgba(255, 255, 255, .22); }
.pe-art .jf-art img { width: 100%; height: 100%; object-fit: contain; }
.pe-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; line-height: 16px; }
.pe-text b { font-size: 13px; }
.pe-text span { overflow-wrap: anywhere; }
.pe-text small { opacity: .8; font-size: 11px; }
.pe-state { flex: none; padding: 3px 9px; border-radius: 10px; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .25); }
.pe-state.on { background: #36c25a; }
/* what an achievement's level gave him, beside it (2026-11-15, the owner: the whip's bottle and frame): the table's
   card and the Events list both draw the thing itself, small, with its name on hover */
.ak-prizes { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 3px; }
.ak-prize { flex: none; width: 30px; height: 34px; overflow: hidden; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 215, 120, .35); }
/* the picture is held INSIDE its little box: a tall one (the whip's bottle) grew out of the card and hung over the
   chat (2026-11-16, the owner) — a percentage max-height could not hold it, a whole width and height can. */
.ak-prize img { width: auto; height: auto; max-width: 30px; max-height: 34px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.nt-prizes { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.nt-prize { width: 28px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, .06); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.nt-prize img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nt-line { display: block; }
