/* Phase 5: mini-games — the hub, each game's window, and what the table shows (potato, snow, the sack,
   icebreaker, ghosts). Every game window takes its colour from --mc (the game's colour in the panel). */

/* the hub */
.mg-hub { display: flex; flex-direction: column; gap: 8px; }
.mg-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: #f6f0ff; border-inline-start: 5px solid var(--mc); }
.mg-card.live { background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 14%, #fff), #fff); }
.mg-ico { font-size: 30px; text-align: center; }
.mg-ico img { width: 40px; height: 40px; object-fit: contain; }
.mg-main p { margin: 2px 0 0; font-size: .75rem; color: var(--muted); }
.mg-when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .75rem; text-align: end; }
.mg-state { display: flex; align-items: center; gap: 4px; }

/* a game's window */
.mg-wrap { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(10, 4, 25, .6); }
.mg-window { --mc: #7b2ff7; position: relative; width: min(560px, 96vw); max-height: 92vh; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 35%, #2a1250), #2a1250); color: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.mg-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: color-mix(in srgb, var(--mc) 80%, #000); }
.mg-head b { font-size: 1.1rem; flex: 1; }
.mg-emoji { font-size: 26px; }
.mg-left { font-size: .8rem; font-weight: 800; opacity: .9; }
.mg-info { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #2a1250; font-weight: 900; font-style: italic; }
.mg-close { color: #fff; font-size: 18px; }
.mg-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mg-note { font-size: .75rem; opacity: .8; text-align: center; margin: 0; }
.mg-done { text-align: center; font-weight: 900; font-size: 1.1rem; }
.mg-bar { position: relative; height: 14px; border-radius: 999px; background: rgba(0, 0, 0, .3); overflow: hidden; text-align: center; font-size: .65rem; font-weight: 900; margin-top: 3px; }
.mg-bar div { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffd84a, #ff9f1c); }
[dir="rtl"] .mg-bar div { inset: 0 0 0 auto; }
.mg-bar span { position: relative; }
.mg-tasks { display: flex; flex-direction: column; gap: 6px; }
.mg-task { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.mg-task > span:first-child { font-size: 20px; text-align: center; }
.mg-task b { font-size: .82rem; }
.mg-task.done { opacity: .6; }
.mg-pts { padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .15); font-weight: 900; white-space: nowrap; }
.mg-daily { font-size: .65rem; opacity: .8; }
.mg-body .pp-group { color: #ffd84a; }
.mg-body .rw-chip { background: rgba(255, 255, 255, .9); }

/* Treasure Map */
.dm-board { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); gap: 4px; aspect-ratio: 1; width: 100%; max-width: 460px; margin: 0 auto;
  padding: 6px; border-radius: 16px; background: radial-gradient(circle, #f4d9a0 0%, #d9a85b 70%, #a8742f 100%); }
.dm-sq { position: relative; display: grid; place-items: center; border-radius: 8px; background: #fff6e0; color: #6b3d00; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); min-width: 0; }
.dm-sq .rw-big i { font-size: 18px; }
.dm-sq .rw-big b { font-size: .55rem; }
.dm-sq.here { outline: 3px solid #ff3d8b; background: #ffe3ee; }
.dm-token { position: absolute; top: -12px; font-size: 22px; animation: bob 1s ease-in-out infinite; }
.dm-start { position: absolute; bottom: -2px; font-size: .5rem; font-weight: 900; color: #2f9e44; }
.dm-center { grid-row: 2 / 7; grid-column: 2 / 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #5a3200; }
.dm-house { font-size: 64px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }
.dm-laps, .dm-dice { font-weight: 900; }
.dm-stages { display: flex; gap: 6px; font-size: 20px; }
.dm-stages span { opacity: .35; }
.dm-stages span.on { opacity: 1; }
.dm-die { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); font-size: 90px; color: #fff; text-shadow: 0 4px 10px rgba(0, 0, 0, .5); animation: popIn .4s; z-index: 3; pointer-events: none; }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* Bingo */
.bg-tabs { display: flex; gap: 4px; }
.bg-tabs button { flex: 1; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800; }
.bg-tabs button.on { background: #fff; color: #2b8a3e; }
.bg-tabs button.done { box-shadow: inset 0 0 0 2px #8ce99a; }
.bg-full { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; }
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr) 54px; gap: 6px; }
.bg-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; background: #fff; color: #2b2b2b; text-align: center; min-height: 82px; }
.bg-cell > span { font-size: 20px; }
.bg-cell small { font-size: .62rem; font-weight: 700; line-height: 1.15; }
.bg-cell .mg-bar { width: 100%; background: #e9ecef; color: #2b2b2b; }
.bg-cell.done { background: #d3f9d8; box-shadow: inset 0 0 0 3px #40c057; }
.bg-side { display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.bg-side.paid { background: #40c057; }
.bg-side .rw-big i { font-size: 20px; }
.bg-side .rw-big b { font-size: .6rem; }

/* Potions */
.al-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.al-stage { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, .08); opacity: .6; text-align: center; }
.al-stage > span { font-size: 30px; }
.al-stage > small { font-weight: 800; font-size: .7rem; }
.al-stage.on { opacity: 1; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 2px #e599f7; }
.al-stage.done { opacity: 1; }
.al-pot { display: flex; align-items: center; justify-content: center; gap: 16px; }
.al-cauldron { position: relative; font-size: 70px; line-height: 1; }
.al-cauldron b { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: .9rem; background: #2a1250; padding: 0 6px; border-radius: 8px; }

/* event shops */
.sh-balance { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.4rem; }
.sh-balance small { font-size: .8rem; opacity: .8; }
.sh-switch { margin: 0; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.sh-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; background: #fff7e0; color: #5a3200; border: 2px solid #f5b301; }
.sh-item.out { filter: grayscale(1); opacity: .6; }
.sh-item .st-buy { min-width: 0; width: 100%; padding: 5px 4px; }
.sh-reload { align-self: center; background: linear-gradient(180deg, #ffe46b, #f5b301); color: #5a3200; font-weight: 900; }

/* Flirt Academy */
.ac-total { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ac-total b { font-size: 1.5rem; }
.ac-track { position: relative; width: 100%; height: 18px; border-radius: 999px; background: rgba(0, 0, 0, .35); margin: 10px 0; }
.ac-track > div { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #ff8fb1, #e64980); }
.ac-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #46288c; border: 2px solid #fff; font-size: .7rem; font-weight: 900; }
.ac-mark.on { background: #ffd84a; color: #5a3200; }
.ac-me { text-align: center; }
.ac-lv { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ffd84a; color: #5a3200; font-weight: 900; }
.ac-top { display: flex; flex-direction: column; gap: 4px; }
.ac-row { display: grid; grid-template-columns: 24px 30px 1fr auto; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.ac-row.me { background: rgba(255, 216, 74, .25); }
.ac-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ac-row em { font-style: normal; font-weight: 900; }
.ac-bands { display: grid; gap: 4px; font-size: .75rem; }
.ac-bands > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); }

/* the team goal's old window (teamgoal.css draws its side screen) */
.gg-days { display: flex; gap: 4px; overflow-x: auto; }
.gg-days span { flex: 1 0 auto; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .75rem; font-weight: 800; text-align: center; }
.gg-days span.on { background: #fff; color: #0b7285; }
.gg-days span.past { opacity: .6; }
.gg-goal { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); text-align: center; }
.gg-reward { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gg-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gg-step { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: .7rem; }
.gg-step.done { background: rgba(64, 192, 87, .45); }
.gh-info { text-align: center; }
.gh-info span { font-size: 64px; }

/* at the table */
.seat-fx { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; border-radius: inherit; pointer-events: none; }
.seat-fx.transform { background: rgba(232, 89, 12, .55); }
.seat-fx.transform span { font-size: calc(var(--u, 1px) * 60); animation: bob 1.2s ease-in-out infinite; }
.seat-fx.frozen { background: linear-gradient(180deg, rgba(165, 216, 255, .75), rgba(116, 192, 252, .6)); box-shadow: inset 0 0 18px #fff; }
.seat-fx.frozen span { font-size: calc(var(--u, 1px) * 40); }
.potato-on { position: absolute; top: -10px; inset-inline-start: -10px; z-index: 4; display: flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 999px; background: #e8590c; color: #fff; font-weight: 900; font-size: calc(var(--u, 1px) * 12); animation: shake .5s ease-in-out infinite; }
.potato-on span { font-size: calc(var(--u, 1px) * 18); }
@keyframes shake { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.fly-throw { position: absolute; z-index: 6; font-size: 34px; transform: translate(-50%, -50%); transition: left .7s ease-in, top .7s ease-in; pointer-events: none; }
.fly-throw.go { animation: spinThrow .7s linear; }
@keyframes spinThrow { to { transform: translate(-50%, -50%) rotate(720deg); } }
.snow-stack { position: absolute; bottom: 18%; left: 0; right: 0; z-index: 3; text-align: center; font-size: calc(var(--u, 1px) * 12); letter-spacing: -2px; pointer-events: none; }
/* the sack: the bag alone (no card around it), a golden glow and its time under it, sized with the seats */
.sack-btn { position: absolute; z-index: 7; pointer-events: auto; cursor: pointer; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0;
  background: none; border: 0; box-shadow: none; animation: bob 1s ease-in-out infinite; }
.sack-btn span { font-size: clamp(26px, calc(var(--u, 1px) * 44), 46px); line-height: 1; filter: drop-shadow(0 0 8px #ffd43b) drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.sack-btn b { padding: 1px 7px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #ffe066; font-size: .7rem; line-height: 1.4; }
.sack-btn b:empty { display: none; }
.icebreaker { position: absolute; left: 50%; top: 26%; transform: translate(-50%, -50%); z-index: 8; display: flex; align-items: center; gap: 6px; max-width: 70%; padding: 8px 14px; border-radius: 18px;
  background: #fff; color: #2a1250; font-weight: 800; font-size: .85rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); animation: popIn .35s; pointer-events: none; }
.tg-ghost { position: absolute; z-index: 8; pointer-events: auto; cursor: pointer; padding: 6px; border: 0; background: none; transform: translate(-50%, -50%); line-height: 1; }
.tg-ghost span { display: block; font-size: clamp(30px, calc(var(--u, 1px) * 50), 54px); filter: drop-shadow(0 0 10px rgba(124, 92, 255, .9)) drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); transition: transform .35s ease; }
.tg-ghost.left span { transform: scaleX(-1); }
.tg-ghost.caught { pointer-events: none; animation: tgGhostPuff .6s ease-out forwards; }
@keyframes tgGhostPuff { to { opacity: 0; transform: translate(-50%, -50%) scale(1.8); filter: blur(4px); } }
.throw-btn { display: inline-flex; align-items: center; gap: 4px; }

/* the hot potato's pictures (panel → the mini-game; img/potato by default): it bursts on the seat it hits, and the
   loser gets the mash in the face, the potato frame around the seat and the ring around their photos in the chat */
.fly-throw.potato { font-size: calc(var(--u, 1px) * 44); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.pot-splash { position: absolute; z-index: 7; width: calc(var(--u, 1px) * 150); height: auto; pointer-events: none; transform: translate(-50%, -50%) scale(.2); opacity: 0; animation: potBurst .95s ease-out forwards; }
.pot-splash.big { width: calc(var(--u, 1px) * 200); }
@keyframes potBurst {
  0% { transform: translate(-50%, -50%) scale(.2) rotate(-25deg); opacity: 0; }
  20% { opacity: 1; }
  55% { transform: translate(-50%, -50%) scale(1.1) rotate(4deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.3) rotate(8deg); opacity: 0; }
}
.seat-fx.mashed { background: radial-gradient(circle at 50% 45%, rgba(255, 214, 102, .35), transparent 70%); }
.pot-mash { width: 96%; height: auto; filter: drop-shadow(0 calc(var(--u, 1px) * 3) calc(var(--u, 1px) * 4) rgba(0, 0, 0, .35)); animation: potWobble 2.4s ease-in-out infinite; }
.seat-fx.mashed.fresh .pot-mash { animation: potSplat .5s cubic-bezier(.2, 1.7, .4, 1) both, potWobble 2.4s ease-in-out .5s infinite; }
@keyframes potSplat { 0% { transform: scale(2.2) rotate(-12deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes potWobble { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04, .96); } }
.pot-frame { position: absolute; left: 50%; top: 50%; z-index: 5; width: 145%; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.seat:has(.seat-fx.mashed.fresh) .pot-frame { animation: potFrame .55s cubic-bezier(.2, 1.5, .4, 1) .15s both; }
@keyframes potFrame { 0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

/* the hot potato's loser in the table chat (chat.js potatoCard): still, warm potato colours, the mash on their face */
.pc-card { align-self: stretch; flex: none; display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 9px 12px; border-radius: 16px; color: #5a3410;
  background: linear-gradient(135deg, #fff4dc, #ffd9a0); box-shadow: inset 0 0 0 1.5px #f0b45c, 0 4px 12px rgba(160, 90, 20, .18); }
.pc-ph { position: relative; flex: none; width: 54px; height: 54px; padding: 0; border: 0; background: none; cursor: pointer; }
.pc-face { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(120, 60, 10, .3); display: block; }
/* the mash splattered on the photo's lower edge: the face stays seen */
.pc-mash { position: absolute; right: -10px; bottom: -8px; width: 36px; height: 36px; object-fit: contain; transform: rotate(-14deg); filter: drop-shadow(0 2px 2px rgba(90, 50, 10, .4)); pointer-events: none; }
.pc-mash-emoji { position: absolute; right: -4px; bottom: -4px; font-size: 22px; line-height: 1; }
.pc-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-title { font-size: 14px; font-weight: 900; line-height: 1.2; color: #7a3d06; overflow-wrap: anywhere; }
.pc-tip { font-size: 11px; font-weight: 600; color: #a0611f; font-style: italic; }
.pc-by { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 2px 9px 2px 2px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .7); color: #7a3d06; font-size: 11px; font-weight: 800; }
.pc-by img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.pc-spud { flex: none; font-size: 30px; line-height: 1; transform: rotate(14deg); filter: drop-shadow(0 2px 2px rgba(90, 50, 10, .3)); }

/* the real throw (table.js fly / impact): the object and its shadow move by transform along an arc; the hit jolts the
   seat, throws juice drops and leaves a stain that drips */
.fly-throw.arc { left: 0; top: 0; transform: none; transition: none; animation: none; will-change: transform; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.fly-throw.arc.go { animation: none; }
.fly-shadow { position: absolute; z-index: 5; width: calc(var(--u, 1px) * 34); height: calc(var(--u, 1px) * 12); border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(3px); pointer-events: none; opacity: 0; }
.fly-throw.tomato { font-size: calc(var(--u, 1px) * 48); }
.juice-drop { position: absolute; z-index: 8; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; pointer-events: none; box-shadow: inset -1px -2px 2px rgba(0, 0, 0, .25), inset 1px 1px 1px rgba(255, 255, 255, .45); }
.juice-stain { position: absolute; inset: 8%; z-index: 4; border-radius: 50%; pointer-events: none; mix-blend-mode: multiply; opacity: .85; animation: stainDrip 1.7s ease-in forwards; }
@keyframes stainDrip { 0% { transform: scale(.3); opacity: 0; } 12% { transform: scale(1.08); opacity: .9; } 25% { transform: scale(1); } 100% { transform: translateY(14%) scaleY(1.15); opacity: 0; } }
.seat.hit-jolt { animation: hitJolt .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes hitJolt { 0% { transform: translate(0, 0) rotate(0); } 15% { transform: translate(-5px, 3px) rotate(-3deg) scale(.96); } 30% { transform: translate(5px, -2px) rotate(2.5deg); } 45% { transform: translate(-3px, 1px) rotate(-1.5deg); } 60% { transform: translate(2px, 0) rotate(1deg); } 100% { transform: none; } }
.pot-splash.tomato { width: calc(var(--u, 1px) * 170); }
.pot-splash.tomato.big { width: calc(var(--u, 1px) * 230); }
.gs-throw.tomato { background: linear-gradient(135deg, #ffe3dc, #ffd0c4); }
.pc-card.tomato .pc-title { color: #c62318; }
@media (prefers-reduced-motion: reduce) { .seat.hit-jolt, .juice-stain { animation: none; } }

/* a player put their own background on the table (chat.js bgCard): lilac and gold, the background framed on the side */
.bg-card { align-self: stretch; flex: none; display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.bg-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 16px; color: #3d2470;
  background: linear-gradient(135deg, #f6efff, #e3d4ff 60%, #ffe9c2); box-shadow: inset 0 0 0 1.5px #c7aef5, 0 4px 12px rgba(90, 50, 160, .18); }
.bg-ph { position: relative; flex: none; width: 52px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer; }
.bg-face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(80, 40, 140, .3); display: block; }
.bg-brush { position: absolute; right: -6px; bottom: -4px; font-size: 20px; line-height: 1; transform: rotate(-10deg); filter: drop-shadow(0 1px 2px rgba(60, 30, 110, .35)); }
.bg-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bg-title { font-size: 14px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.bg-did { font-size: 12px; font-weight: 700; color: #5b3aa6; line-height: 1.25; }
.bg-tip { font-size: 11px; font-weight: 600; color: #8a6bc9; font-style: italic; }
.bg-pic { position: relative; flex: none; width: 74px; height: 52px; border-radius: 10px; background: #2b1a55 center / cover no-repeat; border: 2.5px solid #fff;
  box-shadow: 0 0 0 1.5px #e0b44c, 0 3px 8px rgba(80, 40, 140, .3); transform: rotate(3deg); }
.bg-pic i { position: absolute; top: -9px; inset-inline-end: -8px; font-style: normal; font-size: 15px; animation: bgTwinkle 1.6s ease-in-out infinite; }
@keyframes bgTwinkle { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bg-pic i { animation: none; } }
/* the report flag beside the card: small and quiet, clearer on hover */
.bg-report { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 13px; cursor: pointer;
  background: rgba(255, 255, 255, .6); box-shadow: 0 1px 3px rgba(80, 40, 140, .18); opacity: .55; transition: opacity .15s, transform .15s; }
.bg-report:hover, .bg-report:focus-visible { opacity: 1; transform: scale(1.1); }
/* a player put their picture on the bottle (chat.js bottleCard): the background card's look in pink and gold, the
   table's bottle on the side swinging in with the picture shining on it, sparkles around */
.bq-box { background: linear-gradient(135deg, #fff0f7, #ffd6ea 55%, #ffe9c2); box-shadow: inset 0 0 0 1.5px #f5a8cc, 0 4px 12px rgba(200, 50, 120, .2); color: #6d1f4a; }
.bq-box .bg-did { color: #b0306e; }
.bq-stage { position: relative; flex: none; width: 74px; height: 58px; display: grid; place-items: center; border-radius: 12px;
  background: radial-gradient(circle at 50% 55%, #fff 0 30%, rgba(255, 255, 255, 0) 70%); }
.bq-art { position: relative; display: block; height: 70px; transform: rotate(-62deg); animation: blSwing 1.1s cubic-bezier(.2, 1.4, .4, 1) both; filter: drop-shadow(0 3px 4px rgba(120, 30, 80, .35)); }
.bq-art svg { display: block; height: 70px; width: 21px; }
.bq-art img { display: block; height: 70px; width: auto; }
.bq-art .bottle-label { box-shadow: 0 0 0 1.2px rgba(255, 255, 255, .95); overflow: hidden; }
.bq-shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%);
  transform: translateX(-120%); animation: blGlint 2.4s ease-in-out .9s infinite; }
.bq-spark { position: absolute; font-style: normal; font-size: 14px; line-height: 1; animation: bgTwinkle 1.6s ease-in-out infinite; pointer-events: none; }
.bq-spark.s1 { top: -6px; inset-inline-end: -4px; }
.bq-spark.s2 { bottom: -4px; inset-inline-start: -2px; font-size: 12px; animation-delay: .5s; }
.bq-spark.s3 { top: 10px; inset-inline-start: -6px; font-size: 11px; animation-delay: 1s; }
@keyframes blSwing { 0% { transform: rotate(-420deg) scale(.3); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-62deg) scale(1); } }
@keyframes blGlint { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .bq-art, .bq-shine::after, .bq-spark { animation: none; } }
.rp-prev.bg img { width: 100%; max-height: 150px; object-fit: cover; border-radius: 10px; display: block; }
/* the table chat's tip cards: the language card (in the phone's language) and the promo code card for a new player */
.lc-card, .pr-card { align-self: stretch; flex: none; display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 10px 12px; border-radius: 16px; background: #eeedfe; border: 1.5px solid #afa9ec; color: #26215c; }
.pr-card { background: #fff6e0; border-color: #f0c66a; color: #5a3b00; }
.lc-card .lc-ico, .pr-card .lc-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: #534ab7; }
.pr-card .lc-ico { background: #f0a500; }
.lc-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lc-title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.lc-sub { font-size: 12px; color: #534ab7; line-height: 1.3; }
.pr-card .lc-sub { color: #8a5a00; }
.lc-go { flex: none; padding: 7px 12px; border: 0; border-radius: 10px; background: #534ab7; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.pr-card .lc-go { background: #e08a00; }
/* the settings opened from the language card: the language choice glows a moment */
.st6-glow { animation: st6Glow 1.2s ease-in-out 2; border-radius: 12px; }
@keyframes st6Glow { 50% { box-shadow: 0 0 0 4px rgba(103, 65, 217, .45); background: #f1ecff; } }
/* what catching the sack or the ghost costs: a coin and the number under it (the owner, 2026-11-06) */
.sack-price { display: block; font-style: normal; pointer-events: none; }
.sack-price .price { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 4px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #ffe066; font-size: .72rem; font-weight: 800; line-height: 1.5; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.sack-price .price .coin { width: 14px; height: 14px; }
.tg-ghost .sack-price { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; }

/* ── the snowballs (table.js snowPile / snowHit / iceEl) ─────────────────── */
/* the pile over the bottle: ten real snowballs, 4-3-2-1, on a little drift of snow; "Take & throw" on it */
.snow-pile { position: absolute; left: 50%; bottom: calc(100% - 34 * var(--u)); z-index: 5; width: calc(80 * var(--u)); height: calc(66 * var(--u)); transform: translateX(-50%); pointer-events: none; }
.bottle-wrap:has(.snow-pile) .rent-name { margin-bottom: calc(26 * var(--u)); }
.sp-base { position: absolute; left: -14%; right: -14%; bottom: calc(-5 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #fff 0 40%, #e3f1fc 62%, rgba(190, 220, 245, .55) 78%, transparent 80%); filter: drop-shadow(0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(30, 60, 100, .35)); }
.sp-balls { position: absolute; inset: 0; }
.sp-ball { position: absolute; left: calc(var(--x) * var(--u)); bottom: calc(var(--y) * var(--u)); width: calc(22 * var(--u)); height: calc(22 * var(--u));
  background: url("../img/snow/ball.svg") center / contain no-repeat; transform: rotate(var(--r)); filter: drop-shadow(0 calc(1.5 * var(--u)) calc(1.5 * var(--u)) rgba(40, 80, 130, .35)); }
.sp-ball:last-child.taken { animation: spTaken 1.1s ease-out; }
@keyframes spTaken { 0% { opacity: 0; transform: rotate(var(--r)) translateY(-40%) scale(.6); } 25% { opacity: 0; } 100% { opacity: 1; transform: rotate(var(--r)); } }
.snow-pile.lifted .sp-ball:last-child { animation: spLift 1s ease-in-out infinite alternate; }
@keyframes spLift { to { transform: rotate(var(--r)) translateY(calc(-9 * var(--u))) scale(1.12); filter: drop-shadow(0 calc(8 * var(--u)) calc(5 * var(--u)) rgba(40, 80, 130, .3)); } }
.sp-take { position: absolute; left: 50%; bottom: calc(-19 * var(--u)); transform: translateX(-50%); pointer-events: auto; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: calc(4 * var(--u)); padding: calc(3 * var(--u)) calc(9 * var(--u)) calc(3 * var(--u)) calc(10 * var(--u)); border-radius: 999px;
  border: calc(1.5 * var(--u)) solid #fff; background: linear-gradient(180deg, #5cb8f5, #2a86d6); color: #fff; font-weight: 700; font-size: max(11px, calc(11 * var(--u))); line-height: 1.1; font-family: inherit;
  box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(10, 60, 120, .45), inset 0 calc(1 * var(--u)) 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 1px rgba(0, 40, 90, .5); }
.sp-take:hover { filter: brightness(1.08); }
.sp-take:active { transform: translateX(-50%) scale(.95); }
.snow-pile.lifted .sp-take { background: linear-gradient(180deg, #ff8a8a, #e0414f); }
.sp-price { display: inline-flex; align-items: center; gap: 2px; padding: 1px calc(5 * var(--u)) 1px calc(3 * var(--u)); border-radius: 999px; background: rgba(0, 0, 0, .28); font-style: normal; }
.sp-price .coin, .snow-target-price .coin { width: max(12px, calc(12 * var(--u))); height: max(12px, calc(12 * var(--u))); }

/* aiming: the others light up (a cold blue ring, a crosshair), each with what a throw at them costs */
.ring-box.snow-aim .seat:not(.snow-target):not(.empty) { opacity: .55; }
.seat.snow-target { cursor: crosshair; }
.seat.snow-target .seat-photo { outline: calc(2.5 * var(--u)) solid #9fd6ff; outline-offset: calc(2 * var(--u)); animation: snowTarget 1s ease-in-out infinite alternate; }
@keyframes snowTarget { from { box-shadow: 0 0 calc(6 * var(--u)) #7cc4ff; } to { box-shadow: 0 0 calc(18 * var(--u)) #c9e9ff, 0 0 calc(4 * var(--u)) #fff; } }
.snow-target-price { position: absolute; left: 50%; top: calc(-11 * var(--u)); transform: translateX(-50%); z-index: 8; display: inline-flex; align-items: center; gap: 2px;
  padding: 1px calc(6 * var(--u)) 1px calc(3 * var(--u)); border-radius: 999px; background: #1f6fb8; color: #fff; font-weight: 700; font-size: max(10px, calc(10 * var(--u))); line-height: 1.2; font-style: normal; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); pointer-events: none; }
.snow-target-price:empty { display: none; }
.snow-aim-hint { position: absolute; left: 50%; top: calc(50% + 100 * var(--u)); transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 6px 8px 6px 12px; border-radius: 999px; background: rgba(14, 44, 78, .88); color: #fff; font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.snow-aim-hint button { border: 0; border-radius: 999px; padding: 4px 10px; background: rgba(255, 255, 255, .18); color: #fff; font: inherit; cursor: pointer; }

/* the flight: the ball (it turns: its grain shows it), its shadow on the table, the powder it sheds */
.snowball { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; will-change: transform; background: url("../img/snow/ball.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(30, 70, 120, .35)); }
.snowball-shadow { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; will-change: transform, opacity; border-radius: 50%; background: radial-gradient(ellipse, rgba(10, 30, 60, .55), transparent 70%); }
.snow-dust { position: absolute; z-index: 7; pointer-events: none; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #d8ecfb 70%, rgba(200, 228, 250, 0)); }
/* the hit: a puff of powder, chunks of snow */
.snow-puff { position: absolute; z-index: 7; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 25%, rgba(225, 241, 253, .7) 48%, rgba(200, 228, 250, 0) 70%); animation: snowPuff .85s ease-out forwards; }
@keyframes snowPuff { from { transform: translate(-50%, -50%) scale(.25); opacity: 1; } 35% { opacity: .9; } to { transform: translate(-50%, -50%) scale(1.7); opacity: 0; filter: blur(3px); } }
.snow-chunk { position: absolute; z-index: 7; pointer-events: none; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 35% 30%, #fff 0 30%, #eef7ff 55%, #b9d8f2); box-shadow: 0 1px 1.5px rgba(30, 70, 120, .3); }
/* the thrower's wind-up, the target knocked back the way the ball came */
.seat.snow-windup { animation: snowWindup .45s cubic-bezier(.3, .1, .3, 1); }
@keyframes snowWindup { 0% { transform: none; } 35% { transform: translate(var(--wx), var(--wy)) rotate(-2deg) scale(.97); } 60% { transform: translate(calc(var(--wx) * -1.2), calc(var(--wy) * -1.2)) scale(1.02); } 100% { transform: none; } }
.seat.snow-jolt { animation: snowJolt .55s cubic-bezier(.2, .8, .3, 1); }
@keyframes snowJolt { 0% { transform: none; } 18% { transform: translate(var(--jx), var(--jy)) rotate(2.5deg) scale(.95); } 42% { transform: translate(calc(var(--jx) * -.35), calc(var(--jy) * -.35)) rotate(-1.5deg); } 70% { transform: translate(calc(var(--jx) * .12), calc(var(--jy) * .12)); } 100% { transform: none; } }
/* the snow that stays on the photo, a patch a hit, melting off */
.snow-splat { position: absolute; z-index: 4; width: 46%; aspect-ratio: 1; pointer-events: none; background: url("../img/snow/splat.svg") center / contain no-repeat;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s)); filter: drop-shadow(0 1px 1px rgba(30, 70, 120, .35)); animation: snowSplat .32s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes snowSplat { from { transform: translate(-50%, -50%) rotate(var(--r)) scale(calc(var(--s) * .2)); opacity: .3; } }
.snow-splat.melt { animation: snowMelt 1.2s ease-in forwards; }
@keyframes snowMelt { to { transform: translate(-50%, -30%) rotate(var(--r)) scale(calc(var(--s) * .55), calc(var(--s) * .4)); opacity: 0; filter: blur(1px); } }

/* frozen: the photo sealed under a sheet of ice */
.seat-fx.seat-ice { background: none; box-shadow: none; border-radius: inherit; overflow: visible; display: block; }
.seat-ice > i { position: absolute; pointer-events: none; }
.ice-glass { inset: 0; border-radius: inherit; background: linear-gradient(155deg, rgba(240, 250, 255, .62), rgba(176, 218, 248, .42) 45%, rgba(130, 190, 240, .55));
  -webkit-backdrop-filter: saturate(.3) brightness(1.12) blur(.6px); backdrop-filter: saturate(.3) brightness(1.12) blur(.6px);
  border: calc(1.5 * var(--u)) solid rgba(255, 255, 255, .85); box-shadow: inset 0 0 calc(12 * var(--u)) rgba(255, 255, 255, .9), inset 0 0 calc(26 * var(--u)) rgba(120, 190, 245, .55), 0 0 calc(10 * var(--u)) rgba(150, 210, 255, .7); }
.ice-frost { inset: 0; border-radius: inherit; background: url("../img/snow/frost.svg") center / 100% 100% no-repeat; opacity: .95; }
.ice-cap { left: -5%; right: -5%; top: calc(-9 * var(--u)); height: calc(17 * var(--u)); background: url("../img/snow/cap.svg") center / 100% 100% no-repeat; filter: drop-shadow(0 1px 1px rgba(40, 90, 140, .35)); }
.ice-icicles { left: 2%; right: 2%; bottom: calc(-15 * var(--u)); height: calc(17 * var(--u)); background: url("../img/snow/icicles.svg") center top / 100% 100% no-repeat; filter: drop-shadow(0 1px 1px rgba(40, 90, 140, .3)); }
.ice-glint { inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .75) 47%, transparent 56%) 150% 0 / 300% 100% no-repeat; animation: iceGlint 3.4s ease-in-out 1s infinite; }
@keyframes iceGlint { 0%, 55% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.ice-spark { width: calc(10 * var(--u)); height: calc(10 * var(--u)); left: 20%; top: 26%;
  background: linear-gradient(90deg, transparent 44%, #fff 47% 53%, transparent 56%), linear-gradient(0deg, transparent 44%, #fff 47% 53%, transparent 56%), radial-gradient(circle, #fff 0 14%, transparent 40%);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%); opacity: 0; animation: iceSpark 1.8s ease-in-out infinite; }
.ice-spark.s2 { left: 70%; top: 58%; animation-delay: .6s; }
.ice-spark.s3 { left: 40%; top: 80%; animation-delay: 1.2s; width: calc(8 * var(--u)); height: calc(8 * var(--u)); }
@keyframes iceSpark { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
/* sealing as the snowball lands (--d), thawing in its last seconds (--thaw) */
.seat-ice { animation: iceThaw 2.4s ease-in var(--thaw, 0ms) forwards; }
@keyframes iceThaw { to { opacity: 0; filter: blur(2px); } }
.seat-ice.fresh .ice-glass, .seat-ice.fresh .ice-frost { animation: iceSeal .7s cubic-bezier(.2, .8, .3, 1) var(--d, 0ms) both; }
@keyframes iceSeal { from { opacity: 0; transform: scale(1.12); filter: blur(3px); } 60% { opacity: 1; } to { opacity: 1; transform: none; filter: none; } }
.seat-ice.fresh .ice-cap { animation: iceCap .5s cubic-bezier(.2, 1.4, .4, 1) calc(var(--d, 0ms) + 150ms) both; }
@keyframes iceCap { from { opacity: 0; transform: translateY(-60%) scaleY(.4); } }
.seat-ice.fresh .ice-icicles { transform-origin: top; animation: iceGrow .8s cubic-bezier(.3, .9, .3, 1) calc(var(--d, 0ms) + 300ms) both; }
@keyframes iceGrow { from { opacity: 0; transform: scaleY(0); } }
.seat-ice.fresh .ice-glint { animation-delay: calc(var(--d, 0ms) + 900ms); }
.seat-ice.fresh .ice-spark { animation-delay: calc(var(--d, 0ms) + 700ms); }
.seat-ice.fresh .ice-spark.s2 { animation-delay: calc(var(--d, 0ms) + 1300ms); }
.seat-ice.fresh .ice-spark.s3 { animation-delay: calc(var(--d, 0ms) + 1900ms); }
@media (prefers-reduced-motion: reduce) { .seat.snow-windup, .seat.snow-jolt, .ice-glint, .ice-spark, .snow-pile.lifted .sp-ball:last-child { animation: none; } }

/* a snowball milestone card in the table chat (chat.js sackCard kind 'snow') */
.sk-event.sk-snow { background: linear-gradient(135deg, #f6fbff, #dcecfb 60%, #bcd8f2); border-color: #9cc3e8; box-shadow: 0 3px 10px rgba(80, 140, 200, .25), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.sk-snow .sk-text b { color: #1f4f7a; }
.sk-snow .sk-bag img { width: 30px; height: 30px; display: block; filter: drop-shadow(0 2px 3px rgba(60, 110, 170, .45)); }

/* ── the whip (table.js whipProp / whipHit, the owner 2026-11-06): the whip coiled over the bottle, "Take the whip";
      the lash across the table, its crack; the player redder with each lash; ash, and the soul flying up ── */
.whip-prop { position: absolute; left: 50%; bottom: calc(100% - 30 * var(--u)); z-index: 5; width: calc(84 * var(--u)); height: calc(70 * var(--u)); transform: translateX(-50%); pointer-events: none; }
.bottle-wrap:has(.whip-prop) .rent-name { margin-bottom: calc(26 * var(--u)); }
.wp-whip { position: absolute; inset: 0; background: url("../img/whip/whip.svg") center bottom / contain no-repeat; filter: drop-shadow(0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, .45)); transform-origin: 50% 90%; }
.whip-prop.lifted .wp-whip { animation: wpLift .9s ease-in-out infinite alternate; }
@keyframes wpLift { from { transform: rotate(-3deg); } to { transform: translateY(calc(-7 * var(--u))) rotate(4deg) scale(1.08); filter: drop-shadow(0 calc(8 * var(--u)) calc(5 * var(--u)) rgba(0, 0, 0, .35)) drop-shadow(0 0 calc(6 * var(--u)) rgba(255, 90, 60, .6)); } }
.sp-take.wp-take { bottom: calc(-17 * var(--u)); background: linear-gradient(180deg, #a5582a, #5e2a0e); border-color: #f1c27d; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(60, 20, 0, .55), inset 0 calc(1 * var(--u)) 0 rgba(255, 220, 170, .45); }
.whip-prop.lifted .wp-take { background: linear-gradient(180deg, #ff6b5a, #b3261e); }

/* aiming with the whip: the others lit red */
.ring-box.whip-aim .seat.snow-target { cursor: crosshair; }
.ring-box.whip-aim .seat.snow-target .seat-photo { outline-color: #ff7b6b; animation-name: whipTarget; }
@keyframes whipTarget { from { box-shadow: 0 0 calc(6 * var(--u)) #ff5a4a; } to { box-shadow: 0 0 calc(18 * var(--u)) #ffb4a8, 0 0 calc(4 * var(--u)) #fff; } }
.ring-box.whip-aim .snow-target-price { background: #9c2a1c; }
.ring-box.whip-aim .snow-aim-hint { background: rgba(70, 18, 10, .9); }

/* the lash in the air (an SVG over the table) */
.whip-lash { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; overflow: visible; }
.whip-lash path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wl-shade { stroke: rgba(0, 0, 0, .22); stroke-width: calc(4px * var(--u)); }
.wl-body { stroke: #3a1a07; stroke-width: calc(2.6px * var(--u)); }
.wl-thick { stroke: #6e3a17; stroke-width: calc(5.5px * var(--u)); stroke-dasharray: .4 1; }
.wl-hl { stroke: rgba(255, 214, 170, .45); stroke-width: calc(1.3px * var(--u)); stroke-dasharray: .36 1; }
.wl-grip { stroke: #2b1406; stroke-width: calc(8px * var(--u)); }

/* the crack on the photo: a white-hot star and red sparks */
.whip-crack { position: absolute; z-index: 8; pointer-events: none; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 10%, rgba(255, 236, 170, .95) 18%, rgba(255, 120, 60, .7) 34%, rgba(200, 30, 20, 0) 62%),
              conic-gradient(from 10deg, transparent 0 6%, rgba(255, 255, 255, .95) 7% 8%, transparent 9% 31%, rgba(255, 230, 180, .9) 32% 33%, transparent 34% 56%, rgba(255, 255, 255, .95) 57% 58%, transparent 59% 81%, rgba(255, 230, 180, .9) 82% 83%, transparent 84%);
  -webkit-mask: radial-gradient(circle, #000 40%, transparent 70%); mask: radial-gradient(circle, #000 40%, transparent 70%);
  animation: whipCrack .5s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes whipCrack { 0% { transform: translate(-50%, -50%) scale(.2) rotate(0); opacity: 1; } 35% { transform: translate(-50%, -50%) scale(1.1) rotate(20deg); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.35) rotate(35deg); opacity: 0; } }
.whip-spark { position: absolute; z-index: 8; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, #fff3c4, #ff5a2a 55%, #a3120a); box-shadow: 0 0 4px #ff5a2a; }

/* a whipped seat: redder with each lash (--k: lashes so far / lashes to ash), swollen at the edges, welts across it */
.seat-fx.welts { display: block; overflow: hidden; }
.seat-fx.welts > i { position: absolute; pointer-events: none; }
.welt-tint { inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 50% 45%, #ff3b2f, #b3000a 75%); mix-blend-mode: multiply;
  opacity: calc(var(--k0) * .7); animation: weltTint .35s ease-out var(--d, 0ms) forwards; }
@keyframes weltTint { to { opacity: calc(var(--k) * .7); } }
.welt-swell { inset: 0; border-radius: inherit; box-shadow: inset 0 0 calc(var(--k) * 26 * var(--u)) rgba(190, 0, 10, .9); opacity: .9; }
.welt { width: 74%; height: calc(5 * var(--u)); transform: translate(-50%, -50%) rotate(var(--r)); border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 170, 160, .9), #d6182a 35%, #7a0010 60%, rgba(255, 120, 110, .8));
  box-shadow: 0 0 calc(3 * var(--u)) rgba(255, 40, 40, .9), 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(80, 0, 0, .6); opacity: .92; }
.welt.new { animation: weltIn .32s cubic-bezier(.2, .9, .3, 1) var(--d, 0ms) both; }
@keyframes weltIn { from { width: 0; opacity: 0; } 40% { opacity: 1; } to { width: 74%; opacity: .92; } }

/* burnt to ash: the photo grey under ash and cracks, embers glowing, ash falling; it blows away in its last seconds */
.seat-fx.ash { display: block; overflow: hidden; animation: ashGone 2s ease-in var(--gone, 0ms) forwards; }
.seat-fx.ash > i { position: absolute; pointer-events: none; }
.ash-grey { inset: 0; border-radius: inherit; background: #6d6a66; mix-blend-mode: saturation; }
.ash-tex { inset: 0; border-radius: inherit; background: url("../img/whip/ash.svg") center / 100% 100% no-repeat; mix-blend-mode: multiply; opacity: .95; }
.ash-glow { inset: 0; border-radius: inherit; background: radial-gradient(circle at 30% 70%, rgba(255, 110, 20, .55), transparent 22%), radial-gradient(circle at 72% 40%, rgba(255, 90, 10, .45), transparent 18%), radial-gradient(circle at 55% 85%, rgba(255, 140, 40, .4), transparent 20%);
  mix-blend-mode: screen; animation: ashEmber 1.6s ease-in-out infinite alternate; }
@keyframes ashEmber { from { opacity: .35; } to { opacity: .9; } }
.ash-fall { inset: -20% 0 0; background-image: radial-gradient(circle, #4a4644 0 1.2px, transparent 1.6px), radial-gradient(circle, #8a8580 0 1px, transparent 1.4px);
  background-size: calc(19 * var(--u)) calc(23 * var(--u)), calc(13 * var(--u)) calc(17 * var(--u)); animation: ashFall 3.2s linear infinite; opacity: .8; }
.ash-fall.f2 { background-position: calc(7 * var(--u)) calc(5 * var(--u)), calc(3 * var(--u)) calc(9 * var(--u)); animation-duration: 4.6s; opacity: .55; }
@keyframes ashFall { to { transform: translateY(18%); } }
.seat-fx.ash.fresh { animation: ashIn .7s ease-out var(--d, 0ms) both, ashGone 2s ease-in var(--gone, 0ms) forwards; }
@keyframes ashIn { 0% { opacity: 0; filter: brightness(2.2) sepia(1) saturate(4) hue-rotate(-20deg); } 45% { opacity: 1; filter: brightness(1.6) sepia(1) saturate(3) hue-rotate(-25deg); } 100% { opacity: 1; filter: none; } }
@keyframes ashGone { to { opacity: 0; transform: translateY(calc(-6 * var(--u))); filter: blur(2px); } }
.seat:has(> .seat-fx.ash) .seat-name { filter: grayscale(1); opacity: .75; }
.ash-ember { position: absolute; z-index: 8; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, #fff1b0, #ff7a1a 55%, #9c1d00); box-shadow: 0 0 6px #ff7a1a; }

/* the soul leaving the seat: a pale ghost rising out of it, swaying, fading away above it */
.ash-soul { position: absolute; z-index: 9; pointer-events: none; transform: translate(-50%, -50%); background: url("../img/whip/soul.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 calc(10 * var(--u, 1px)) rgba(200, 225, 255, .95)); animation: soulRise 3.2s cubic-bezier(.3, .1, .4, 1) forwards; }
@keyframes soulRise {
  0% { transform: translate(-50%, -30%) scale(.35); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(.85); opacity: .95; }
  35% { transform: translate(calc(-50% + var(--sway)), calc(-50% + var(--rise) * .3)) scale(1); opacity: .95; }
  60% { transform: translate(calc(-50% - var(--sway)), calc(-50% + var(--rise) * .62)) scale(1.04); opacity: .85; }
  100% { transform: translate(calc(-50% + var(--sway) * .6), calc(-50% + var(--rise))) scale(1.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .whip-prop.lifted .wp-whip, .ash-glow, .ash-fall { animation: none; } }

/* the whip's milestone card in the table chat (chat.js sackCard kind 'whip') */
.sk-event.sk-whip { background: linear-gradient(135deg, #fff4ec, #f6d2bd 60%, #e9a98a); border-color: #c46a3c; box-shadow: 0 3px 10px rgba(140, 50, 20, .25), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.sk-whip .sk-text b { color: #6a1f0c; }
.sk-whip .sk-bag img { width: 34px; height: 30px; display: block; }

/* Cupid's arrow (cupid.js): the bow left of the bottle, two taps to aim, threads of hearts between two seats */
/* (the whip's place over the bottle — the owner, 2026-11-06: Cupid, the whip and the snowballs take turns there, one at a time) */
.cupid-prop { position: absolute; left: 50%; bottom: calc(100% - 30 * var(--u)); z-index: 5; width: calc(84 * var(--u)); height: calc(70 * var(--u)); transform: translateX(-50%); pointer-events: none; }
.bottle-wrap:has(.cupid-prop) .rent-name { margin-bottom: calc(26 * var(--u)); }
.cp-bow { position: absolute; inset: 0; background: url("../img/cupid/bow.webp") center / contain no-repeat; filter: drop-shadow(0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(80, 0, 30, .45)); transform-origin: 50% 80%; }
.cupid-prop.lifted .cp-bow { animation: cpLift .9s ease-in-out infinite alternate; }
@keyframes cpLift { from { transform: rotate(-4deg); } to { transform: translateY(calc(-6 * var(--u))) rotate(5deg) scale(1.08); filter: drop-shadow(0 0 calc(8 * var(--u)) rgba(255, 80, 150, .8)); } }
.sp-take.cp-take { bottom: calc(-17 * var(--u)); background: linear-gradient(180deg, #ff7fb0, #d81b60); border-color: #ffe0ec; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(120, 0, 50, .5), inset 0 calc(1 * var(--u)) 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 1px rgba(100, 0, 40, .5); }
.cupid-prop.lifted .cp-take { background: linear-gradient(180deg, #ffd166, #f08a00); }
.ring-box.cupid-aim .seat.snow-target { cursor: pointer; }
.ring-box.cupid-aim .seat.snow-target .seat-photo { outline-color: #ff8fc0; animation-name: cupidTarget; }
@keyframes cupidTarget { from { box-shadow: 0 0 calc(6 * var(--u)) #ff4f9a; } to { box-shadow: 0 0 calc(18 * var(--u)) #ffc2dc, 0 0 calc(4 * var(--u)) #fff; } }
.ring-box.cupid-aim .seat.cupid-first { opacity: 1 !important; }
.ring-box.cupid-aim .seat.cupid-first .seat-photo { outline: calc(3 * var(--u)) solid #ff2d7a; outline-offset: calc(2 * var(--u)); box-shadow: 0 0 calc(16 * var(--u)) #ff2d7a; }
.ring-box.cupid-aim .seat.cupid-first::after { content: "💘"; position: absolute; left: 50%; top: calc(-14 * var(--u)); transform: translateX(-50%); font-size: calc(18 * var(--u)); z-index: 8; pointer-events: none; }
.ring-box.cupid-aim .snow-target-price { background: #c2185b; }
.ring-box.cupid-aim .snow-aim-hint { background: rgba(110, 10, 50, .9); }
.cupid-threads { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.cupid-thread path { fill: none; stroke-linecap: round; }
.cupid-thread .ct-glow { stroke: rgba(255, 120, 180, .35); stroke-width: calc(7px * var(--u)); }
.cupid-thread .ct-line { stroke: #ff3d8b; stroke-width: calc(2.4px * var(--u)); stroke-dasharray: 3 2.2; animation: ctFlow 1.6s linear infinite; }
.cupid-thread.born path { animation: ctGrow .8s ease-out; }
.cupid-thread.born .ct-line { stroke-dasharray: 100 100; }
@keyframes ctGrow { from { stroke-dasharray: 0 100; stroke-dashoffset: -50; } to { stroke-dasharray: 100 0; stroke-dashoffset: 0; } }
@keyframes ctFlow { to { stroke-dashoffset: -10.4; } }
.cupid-thread .ct-heart { fill: #ff2d7a; stroke: #fff; stroke-width: .6px; paint-order: stroke; animation: ctBeat 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ctBeat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3); } }
.cupid-thread.paired .ct-line { stroke: #f5b301; }
.cupid-thread.paired .ct-glow { stroke: rgba(255, 210, 80, .55); stroke-width: calc(10px * var(--u)); }
.cupid-thread.paired .ct-heart { fill: #ffcc00; }
.cupid-arrow { position: absolute; z-index: 8; pointer-events: none; background: url("../img/cupid/arrow.webp") center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(255, 60, 140, .8)); }
.cupid-pop { position: absolute; z-index: 8; pointer-events: none; line-height: 1; }
.sk-event.sk-cupid { background: linear-gradient(135deg, #fff2f7, #ffd3e4 60%, #ffadc9); border-color: #f06292; box-shadow: 0 3px 10px rgba(200, 30, 90, .25), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.sk-cupid .sk-text b { color: #8a0f3d; }
.sk-cupid .sk-bag img { width: 34px; height: 30px; display: block; }
/* Cupid's how-to-play: "?" on the bow, the card */
.cp-help { position: absolute; right: calc(-6 * var(--u)); top: calc(2 * var(--u)); pointer-events: auto; cursor: pointer; width: max(18px, calc(20 * var(--u))); height: max(18px, calc(20 * var(--u))); border-radius: 50%;
  border: calc(1.5 * var(--u)) solid #fff; background: #d81b60; color: #fff; font: 700 max(11px, calc(12 * var(--u)))/1 inherit; display: grid; place-items: center; padding: 0; box-shadow: 0 2px 5px rgba(100, 0, 40, .45); }
.cp-help:hover { filter: brightness(1.1); }
.dialog.cupid-guide { max-width: 360px; text-align: center; background: linear-gradient(180deg, #fff5f9, #ffe3ee); border: 2px solid #f8a5c6; }
.cg-bow { width: 120px; height: auto; margin: -6px auto 2px; display: block; filter: drop-shadow(0 4px 8px rgba(200, 30, 90, .3)); }
.cg-title { display: block; font-size: 20px; color: #a0124c; margin-bottom: 10px; }
.cg-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; text-align: start; }
.cg-step { display: grid; grid-template-columns: 22px 26px 1fr; align-items: start; gap: 6px; background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: 0 1px 4px rgba(200, 30, 90, .12); }
.cg-step p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #3b1424; }
.cg-n { width: 22px; height: 22px; border-radius: 50%; background: #d81b60; color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.cg-ico { font-size: 18px; line-height: 22px; text-align: center; }
.cg-ok { min-width: 140px; background: linear-gradient(180deg, #ff6fa5, #d81b60) !important; border-color: #d81b60 !important; }

/* the kiss meter (kissmeter.js): the scene's split heart fills with gold as the two tap it; the percent under it */
.kheart.km-on { position: relative; }
.km-fill { position: absolute; inset: 0; pointer-events: none; --km: 0%; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(to top, #ff9f1a 0, #ffd23f calc(var(--km) - 4%), #fff3b0 var(--km), transparent var(--km)); transition: background .15s linear; opacity: .96; }
.kheart.km-full .km-fill { background: linear-gradient(to top, #ff8a00, #ffd23f 70%, #fff6c2); }
/* (the empty part of the heart dims a little, so the gold rising in it shows) */
.kheart.km-on svg { filter: saturate(.8) brightness(.85); }
.kheart.km-full { filter: drop-shadow(0 0 22px rgba(255, 210, 60, .95)) !important; }
.kheart.km-mine { cursor: pointer; animation: kmPulse .8s ease-in-out infinite !important; touch-action: manipulation; }
@keyframes kmPulse { 50% { transform: scale(1.08); } }
.kheart.km-hit { animation: kmHit .18s ease-out !important; }
@keyframes kmHit { 50% { transform: scale(1.16); } }
.km-spark { position: absolute; bottom: 40%; font-style: normal; font-size: calc(18 * var(--u)); pointer-events: none; animation: kmSpark .7s ease-out forwards; }
@keyframes kmSpark { to { transform: translateY(calc(-60 * var(--u))) scale(1.3); opacity: 0; } }
.km-box { display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); flex-wrap: wrap; margin-top: calc(4 * var(--u)); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); font-size: max(12px, calc(13 * var(--u))); }
.km-pct { font-size: max(16px, calc(20 * var(--u))); color: #ffe27a; }
.km-label { font-weight: 700; }
.km-prize { display: inline-flex; }

/* the compatibility meter (compat.js): in the middle of the table, inside the bottle's circle and at its size (sizes in em:
   the circle's diameter / 19) — the two photos, "Your match", the percent on a ring counting up, the word for it */
.cm-meter { position: absolute; z-index: 8; transform: translate(-50%, -50%) scale(.7); opacity: 0; pointer-events: none; animation: cmIn .4s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes cmIn { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.cm-meter.out { transition: opacity .45s, transform .45s; opacity: 0 !important; transform: translate(-50%, -50%) scale(.85) !important; animation: none; }
.cm-ring { position: absolute; inset: 0; border-radius: 50%; --p: 0; background: conic-gradient(from -90deg, #ff2d7a calc(var(--p) * 1%), rgba(255, 255, 255, .3) 0); box-shadow: 0 .6em 1.8em rgba(100, 0, 40, .45); }
.cm-ring::after { content: ""; position: absolute; inset: .9em; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #fff 0, #fff3f8 55%, #ffd9e8 100%); box-shadow: inset 0 0 0 .2em rgba(255, 255, 255, .8); }
.cm-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05; gap: .25em; }
.cm-pair { display: flex; align-items: center; gap: .2em; margin-bottom: .2em; }
.cm-ph { width: 3.6em; height: 3.6em; border-radius: 50%; background: #fff center / cover no-repeat; border: .25em solid #fff; box-shadow: 0 0 0 .15em #ff7fb0; }
.cm-heart { font-style: normal; font-size: 1.8em; animation: ntKmBeat 1.4s ease-in-out infinite; }
.cm-lbl { max-width: 12em; font-size: 1.2em; color: #a0124c; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.cm-num { font-size: 3.4em; color: #d81b60; letter-spacing: -.02em; }
.cm-word { max-width: 11.5em; min-height: 1.2em; font-size: 1.15em; font-weight: 700; color: #7a0f3d; line-height: 1.15; text-wrap: balance; opacity: 0; transition: opacity .3s; }
.cm-meter.done .cm-word { opacity: 1; }
.cm-meter.perfect .cm-ring { background: conic-gradient(#ffc400 100%, transparent 0); box-shadow: 0 0 2.2em rgba(255, 196, 0, .9); }
@keyframes ntKmBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } }
.seat.cm-glow .seat-photo { box-shadow: 0 0 calc(16 * var(--u)) #ff4f9a; }
.sk-event.sk-compat { background: linear-gradient(135deg, #fff2f7, #ffd3e4 60%, #ffadc9); border-color: #f06292; }
.sk-compat .sk-text b { color: #8a0f3d; }
.sk-compat .cm-cardword { display: block; font-size: 12px; color: #a0124c; margin-top: 2px; }
.cm-pics { display: flex; flex: none; }
.cm-pics img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.cm-pics img + img { margin-inline-start: -10px; }
.gs-compat { display: inline-flex; align-items: center; gap: 4px; }
/* the kiss meter's full heart in the table chat */
.sk-event.sk-km { background: linear-gradient(135deg, #fffaf0, #ffecb3 60%, #ffd76a); border-color: #f5b301; }
.sk-km .sk-text b { color: #7a4b00; }
.km-each { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; font-size: 12px; color: #7a4b00; }

/* Memory hearts (memory.js): a small window at the top of the chat — the face-down hearts, the price of a turn, the time */
.mem-win { flex: none; margin: 6px 8px 4px; padding: 8px 8px 10px; border-radius: 14px; background: linear-gradient(160deg, #fff4f9, #ffe1ee 70%, #ffd0e4); border: 1px solid #f7a8c8; box-shadow: 0 4px 14px rgba(190, 20, 90, .18); transition: opacity .4s; }
.mem-win.over { opacity: .45; }
.mem-head { display: flex; align-items: center; gap: 8px; }
.mem-title { flex: 1; color: #a0124c; font-size: 14px; }
.mem-price { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #8a1846; font-weight: 700; }
.mem-time { font-size: 12px; color: #d81b60; min-width: 42px; text-align: end; }
.mem-min { width: 24px; height: 24px; border-radius: 50%; border: 0; background: #fff; color: #d81b60; font-weight: 700; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.mem-hint { margin: 4px 2px 6px; font-size: 11.5px; color: #8a1846; }
.mem-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 6px; }
.mem-card { position: relative; aspect-ratio: 4 / 5; max-height: 64px; border: 0; padding: 0; border-radius: 10px; cursor: pointer; perspective: 400px; background: transparent; }
.mem-card > span { position: absolute; inset: 0; border-radius: 10px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .35s ease; }
.mem-back { background: linear-gradient(145deg, #ff5c9a, #d81b60); color: rgba(255, 255, 255, .85); font-size: 22px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 2px 5px rgba(150, 0, 60, .3); }
.mem-face { background: #fff; transform: rotateY(180deg); box-shadow: inset 0 0 0 2px #ffc2dc, 0 2px 5px rgba(150, 0, 60, .2); }
.mem-face i { font-style: normal; font-size: 22px; }
.mem-card.up .mem-back { transform: rotateY(180deg); }
.mem-card.up .mem-face { transform: rotateY(0); }
.mem-card.won .mem-face { background: linear-gradient(160deg, #fffaf0, #ffe39a); box-shadow: inset 0 0 0 2px #f5b301; }
.mem-by { position: absolute; inset-inline-end: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; }
.mem-card:not(.up):hover .mem-back { filter: brightness(1.08); }
.mem-card:disabled { cursor: default; }
.sk-event.sk-mem { background: linear-gradient(135deg, #fff2f7, #ffd3e4 60%, #ffadc9); border-color: #f06292; }
.sk-mem .sk-text b { color: #8a0f3d; }
.sk-mem .sk-bag { font-size: 24px; }

/* Hearts rain (heartrain.js): hearts falling over the whole table, left and right of the bottle (the middle stays free); my count at the top */
.rain-layer { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
/* the fall (heartrain.js sets left, --fall, --dur, --delay): from above the table's top edge to below its bottom */
.rain-heart { position: absolute; left: 0; top: 0; padding: 6px; margin: -6px; border: 0; background: none; line-height: 1; cursor: pointer; pointer-events: auto; filter: drop-shadow(0 2px 3px rgba(120, 0, 50, .45)); touch-action: manipulation;
  transform: translateY(calc(-1 * var(--s, 50px))); animation: rainFall var(--dur, 4500ms) linear var(--delay, 0ms) both; }
.rain-heart > span { display: block; animation: rainSway 1.1s ease-in-out infinite alternate; }
@keyframes rainFall { from { transform: translateY(calc(-1 * var(--s, 50px))); } to { transform: translateY(var(--fall, 600px)); } }
@keyframes rainSway { from { transform: translateX(calc(-8px * var(--sway, 1))) rotate(calc(-16deg * var(--sway, 1))); } to { transform: translateX(calc(8px * var(--sway, 1))) rotate(calc(16deg * var(--sway, 1))); } }
.rain-heart.pop { animation: rainPop .35s ease-out forwards; pointer-events: none; }
.rain-heart.gone { animation: rainGone .35s ease-out forwards; pointer-events: none; }
@keyframes rainPop { to { scale: 1.8; opacity: 0; } }
@keyframes rainGone { to { opacity: 0; } }
.rain-badge { position: absolute; z-index: 8; left: 50%; top: 4px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(160, 10, 70, .85); color: #fff; font-size: 14px; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.rain-badge.bump { animation: rainBump .3s ease-out; }
@keyframes rainBump { 50% { transform: translateX(-50%) scale(1.25); } }
/* Heartbeat (heartpulse.js): a heart in the table's freest spot; a ring closes in before each beat; one tap each */
.hb-box { --hb: 72px; position: absolute; z-index: 7; width: var(--hb); height: var(--hb); transform: translate(-50%, -50%); pointer-events: none; animation: hbIn .35s ease-out; }
.hb-heart { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .35), rgba(255, 64, 129, .18) 60%, transparent 72%); cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.hb-heart > span { display: block; font-size: calc(var(--hb) * .78); line-height: 1; filter: drop-shadow(0 3px 6px rgba(140, 0, 60, .5)); }
.hb-heart.beat > span { animation: hbBeat .3s ease-out; }
.hb-ring { position: absolute; inset: -4px; border: 4px solid #ff4081; border-radius: 50%; opacity: 0; pointer-events: none; box-shadow: 0 0 10px rgba(255, 64, 129, .7); }
.hb-ring.go { animation: hbRing .65s linear forwards; }
.hb-label { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); width: max-content; max-width: 150px; text-align: center; line-height: 1.25; padding: 3px 10px; border-radius: 999px; background: rgba(160, 10, 70, .88); color: #fff; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.hb-box.g-perfect .hb-label { background: linear-gradient(135deg, #ffb300, #ff6f00); }
.hb-box.g-good .hb-label { background: #2e7d32; }
.hb-box.g-miss .hb-label { background: rgba(60, 60, 60, .85); }
.hb-box.tapped .hb-heart { cursor: default; }
.hb-taps { position: absolute; left: 50%; top: calc(100% + 30px); transform: translateX(-50%); display: flex; gap: 3px; }
.hb-tap img { display: block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9e9e9e; object-fit: cover; }
.hb-tap.g-perfect img { border-color: #ffb300; }
.hb-tap.g-good img { border-color: #43a047; }
.hb-box.over { animation: hbOut .8s ease-in forwards; }
@keyframes hbIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes hbOut { to { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
@keyframes hbBeat { 0% { transform: scale(1); } 37% { transform: scale(1.38); } 100% { transform: scale(1); } }
@keyframes hbRing { 0% { opacity: 0; transform: scale(2.4); } 20% { opacity: .9; } 100% { opacity: 1; transform: scale(1); } }
.sk-event.sk-beat { background: linear-gradient(135deg, #fff2f7, #ffd3e4 60%, #ff9ebf); border-color: #e91e63; }
.sk-beat .sk-text b { color: #8a0f3d; }
/* Hearts duel (duel.js): the window for the two at the top of the chat; ❤️ against 💜 */
.du-win { flex: none; margin: 4px 8px 4px; padding: 6px 10px 8px; border-radius: 14px; background: linear-gradient(160deg, #fff4f9, #ffe1ee 70%, #f3d6ff); border: 1px solid #f7a8c8; box-shadow: 0 4px 14px rgba(190, 20, 90, .18); color: #4a0d2a; text-align: center; animation: hbIn .3s ease-out; }
.du-time { font-style: normal; font-weight: 700; color: #ad1457; min-width: 28px; }
.du-time.low { color: #e53935; animation: rainBump .5s ease-in-out infinite; }
.du-vs { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 4px; padding: 0 30px; }
.du-vs .du-time { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); }
.du-face { display: flex; align-items: center; gap: 4px; max-width: 120px; font-size: 12px; opacity: .65; transition: opacity .2s, transform .2s; }
.du-face b { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-face.on { opacity: 1; transform: scale(1.08); }
.du-face img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #f06292; }
.du-x { font-weight: 800; color: #c2185b; }
.du-msg { font-weight: 700; margin: 4px 0; }
.du-entry, .du-rules { font-size: 12px; margin: 2px 0; }
.du-btns { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.du-btns button { border: 0; border-radius: 999px; padding: 7px 16px; font-weight: 700; cursor: pointer; }
.du-yes { background: linear-gradient(135deg, #ec407a, #c2185b); color: #fff; }
.du-no { background: #eee; color: #555; }
.du-turn { font-weight: 700; font-size: 13px; margin: 0 0 4px; }
.du-grid { direction: ltr; display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; justify-content: center; }
.du-cell { width: 44px; height: 44px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 2px #f8bbd0; font-size: 26px; line-height: 1; cursor: pointer; }
.du-cell:disabled { cursor: default; }
.du-cell:not(:disabled):hover { background: #fff; box-shadow: inset 0 0 0 2px #ec407a; }
.du-cell.on { animation: hbIn .2s ease-out; }
.du-cell.win { background: #fff59d; box-shadow: inset 0 0 0 3px #ffb300; }
.du-win.won { background: linear-gradient(160deg, #fffde7, #ffe082); }
.du-win.lost { opacity: .85; }
.sk-event.sk-duel { background: linear-gradient(135deg, #fff2f7, #f3d6ff); border-color: #ab47bc; }
.sk-duel .sk-text b { color: #6a1b9a; }
/* Message in a bottle (msgbottle.js): the bottle floating in the table's freest spot; the reading / writing windows */
.mb-float { --mb: 72px; position: absolute; z-index: 7; width: var(--mb); height: var(--mb); transform: translate(-50%, -50%); pointer-events: none; animation: mbIn .6s ease-out; }
.mb-bottle { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(178, 235, 242, .55), rgba(2, 136, 209, .18) 60%, transparent 72%); cursor: pointer; pointer-events: auto; touch-action: manipulation; animation: mbBob 2.2s ease-in-out infinite; }
.mb-svg { display: block; width: 92%; height: 92%; filter: drop-shadow(0 5px 6px rgba(0, 50, 90, .45)); }
.mb-svg svg { width: 100%; height: 100%; display: block; }
.mb-sparkle { position: absolute; right: 2%; top: 2%; font-style: normal; font-size: calc(var(--mb) * .26); animation: rainBump 1.4s ease-in-out infinite; }
.mb-bottle::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4%; height: 14%; border-radius: 50%; background: radial-gradient(ellipse, rgba(129, 212, 250, .75), rgba(2, 136, 209, 0) 70%); animation: mbRipple 2.2s ease-in-out infinite; z-index: -1; }
@keyframes mbRipple { 0%, 100% { transform: scaleX(.8); opacity: .6; } 50% { transform: scaleX(1.15); opacity: 1; } }
.mb-label { position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(1, 87, 155, .9); color: #fff; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.mb-float.found .mb-bottle, .mb-float.gone { opacity: 0; transition: opacity .6s; }
.mb-float.found .mb-label { background: #2e7d32; }
@keyframes mbIn { from { opacity: 0; transform: translate(-50%, -20%) scale(.5); } }
@keyframes mbBob { 0%, 100% { transform: translate(-6px, 0) rotate(-6deg); } 50% { transform: translate(6px, -6px) rotate(6deg); } }
.mb-dlg { max-width: 360px; text-align: center; }
.mb-dlg .dialog-actions { flex-wrap: wrap; justify-content: center; gap: 8px; }
.mb-dlg .dialog-actions .btn { white-space: nowrap; padding-inline: 14px; font-size: 14px; }
.mb-head { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; }
.mb-big { font-size: 40px; line-height: 1; }
.mb-art { width: 64px; height: 64px; animation: mbBob 2.2s ease-in-out infinite; }
.mb-art svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 6px rgba(0, 50, 90, .35)); }
.mb-letter { padding: 14px 16px; border-radius: 12px; background: linear-gradient(160deg, #fffaf0, #f5e6c8); border: 1px solid #e0c99a; color: #4e342e; font-size: 16px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; box-shadow: inset 0 0 18px rgba(160, 120, 60, .18); }
.mb-from { margin: 6px 0 10px; font-size: 12px; color: #777; }
.mb-trn { margin-top: 6px; font-size: 12px; color: #0277bd; }
.mb-orig { border: 0; background: none; padding: 0; color: #0277bd; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.mb-note { font-size: 13px; color: #666; margin: 0 0 8px; }
.mb-text { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 10px; border: 1px solid #b3e5fc; font: inherit; resize: vertical; }
.mb-count { display: block; text-align: end; color: #999; margin-top: 2px; }
.mb-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 2px; }
.mb-kinds button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 6px; border-radius: 10px; border: 2px solid #e1f5fe; background: #fff; cursor: pointer; font: inherit; color: #37474f; }
.mb-kinds button.on { border-color: #0288d1; background: #e1f5fe; }
.mb-kinds b { font-size: 13px; white-space: nowrap; }
.mb-kinds small { font-size: 11px; color: #78909c; line-height: 1.2; }
.mb-anon { margin: 4px 0 8px; padding: 8px 10px; border-radius: 10px; background: #eceff1; color: #546e7a; font-size: 13px; }
.mb-text.short { border-color: #e53935; box-shadow: 0 0 0 2px rgba(229, 57, 53, .2); }
.mb-text.short + .mb-count { color: #e53935; }
.mb-sent { position: relative; height: 90px; overflow: hidden; }
.mb-fly { position: absolute; left: 50%; bottom: 18px; font-size: 44px; transform: translateX(-50%) rotate(-30deg); animation: mbFly 1.8s ease-in forwards; }
.mb-waves { position: absolute; left: 0; right: 0; bottom: 0; font-size: 24px; letter-spacing: 4px; animation: mbBob 2.2s ease-in-out infinite; }
@keyframes mbFly { 0% { transform: translateX(-50%) rotate(-30deg) scale(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(120px, -20px) rotate(20deg) scale(.35); opacity: 0; } }
.sk-event.sk-mb { background: linear-gradient(135deg, #e1f5fe, #b3e5fc); border-color: #0288d1; }
.sk-mb .sk-text b { color: #01579b; }
/* Wish bubbles (bubbles.js): soap bubbles rising over the whole table, left and right of the bottle; a prize in each */
.bub-layer { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.bub { position: absolute; left: 0; top: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer; pointer-events: auto; touch-action: manipulation;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 9%, rgba(255, 255, 255, .25) 16%, transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 54%, rgba(129, 212, 250, .55) 66%, rgba(240, 98, 146, .45) 78%, rgba(255, 241, 118, .55) 88%, rgba(255, 255, 255, .7) 96%);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .55), 0 2px 10px rgba(0, 90, 140, .25);
  transform: translateY(var(--rise, 600px)); animation: bubRise var(--dur, 5500ms) linear var(--delay, 0ms) both; }
.bub .bub-shine { position: absolute; left: 22%; top: 18%; width: 22%; height: 14%; border-radius: 50%; background: rgba(255, 255, 255, .85); transform: rotate(-30deg); }
.bub .bub-gift { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: calc(var(--s, 50px) * .36); opacity: .9; animation: bubTwinkle 1.6s ease-in-out infinite; }
@keyframes bubTwinkle { 50% { scale: 1.25; opacity: 1; } }
.bub.burst { animation: bubBurst .38s ease-out forwards; pointer-events: none; }
@keyframes bubRise { from { transform: translateY(var(--rise, 600px)) translateX(0); } 25% { transform: translateY(calc(var(--rise, 600px) * .75)) translateX(calc(10px * var(--sway, 1))); } 50% { transform: translateY(calc(var(--rise, 600px) * .5)) translateX(calc(-10px * var(--sway, 1))); } 75% { transform: translateY(calc(var(--rise, 600px) * .25)) translateX(calc(10px * var(--sway, 1))); } to { transform: translateY(calc(-1 * var(--s, 50px))) translateX(0); } }
@keyframes bubBurst { to { scale: 1.7; opacity: 0; filter: blur(1px); } }
.bub-prize { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 8px; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); pointer-events: none; animation: bubPrize 2.2s ease-out forwards; white-space: nowrap; }
.bub-prize small { font-size: 11px; color: #555; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
@keyframes bubPrize { 0% { opacity: 0; scale: .6; } 12% { opacity: 1; scale: 1.08; } 20% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: 0 -40px; } }
.sk-event.sk-bub { background: linear-gradient(135deg, #e0f7fa, #fce4ec); border-color: #26c6da; }
.sk-bub .sk-text b { color: #00838f; }
.bub-rows { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.bub-row { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.bub-row img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
/* Shooting star (meteor.js): a glowing star with a long tail streaking across the table, above the bottle's circle */
.star { position: absolute; left: 0; top: 0; z-index: 8; width: 68px; height: 68px; margin: -34px 0 0 -34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; touch-action: manipulation;
  transform: translate(var(--x0), var(--y0)); animation: starFly var(--dur, 2200ms) linear var(--delay, 0ms) both; }
@keyframes starFly { from { transform: translate(var(--x0), var(--y0)); } to { transform: translate(var(--x1), var(--y1)); } }
.star-head { position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; line-height: 1; filter: drop-shadow(0 0 6px #fffde7) drop-shadow(0 0 14px #ffd54f) drop-shadow(0 0 26px #ff9800); animation: starSpin .7s linear infinite; }
@keyframes starSpin { to { rotate: 360deg; } }
.star-tail { position: absolute; left: 50%; top: 50%; width: 190px; height: 8px; margin-top: -4px; transform-origin: 0 50%; transform: rotate(calc(var(--a, 0deg) + 180deg)); border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 253, 231, .95), rgba(255, 213, 79, .65) 30%, rgba(255, 152, 0, .25) 65%, transparent); filter: blur(.6px); }
.star.caught { animation: none; pointer-events: none; }
.star.caught .star-tail { opacity: 0; transition: opacity .3s; }
.star.caught .star-head { animation: starBurst .6s ease-out forwards; }
@keyframes starBurst { 50% { scale: 2.2; } to { scale: 1.4; opacity: .25; } }
.star.gone { opacity: 0; transition: opacity .3s; }
.star-prize { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 10px; border-radius: 12px; background: rgba(26, 35, 126, .9); color: #fff; white-space: nowrap; box-shadow: 0 0 14px rgba(255, 213, 79, .7); animation: bubPrize 2.6s ease-out forwards; }
.star-prize small { font-size: 11px; opacity: .9; }
.sk-event.sk-star { background: linear-gradient(135deg, #1a237e, #3949ab 60%, #5c6bc0); border-color: #ffd54f; }
.sk-star .sk-text b { color: #fff59d; }
.sk-star .sk-text { color: #fff; }
/* Target heart (target.js): a track with a golden middle; the heart slides along it; each tap leaves a mark */
.tgt-box { position: absolute; z-index: 7; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; animation: hbIn .35s ease-out; }
.tgt-hit { padding: 6px; border: 0; background: none; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.tgt-box.tapped .tgt-hit { cursor: default; }
.tgt-track { position: relative; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 228, 236, .9)); box-shadow: inset 0 0 0 2px #f48fb1, 0 3px 10px rgba(120, 0, 50, .3); overflow: visible; }
.tgt-good { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: rgba(129, 199, 132, .45); }
.tgt-bull { position: absolute; top: 2px; bottom: 2px; border-radius: 999px; background: linear-gradient(180deg, #ffe082, #ffb300); box-shadow: 0 0 8px rgba(255, 179, 0, .8); }
.tgt-mid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: #c62828; border-radius: 1px; }
.tgt-heart { position: absolute; left: 0; top: 4px; display: grid; place-items: center; font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(120, 0, 50, .45)); animation: tgtSlide var(--half, 800ms) linear var(--delay, 0ms) infinite alternate both; }
@keyframes tgtSlide { from { transform: translateX(0); } to { transform: translateX(var(--run, 200px)); } }
.tgt-box.tapped .tgt-heart, .tgt-box.over .tgt-heart { animation-play-state: paused; }
.tgt-mark { position: absolute; top: 100%; width: 0; height: 0; }
.tgt-mark::before { content: ""; position: absolute; left: -1px; top: -6px; width: 2px; height: 8px; background: #555; }
.tgt-mark img { position: absolute; left: -9px; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9e9e9e; object-fit: cover; }
.tgt-mark.g-bull img, .tgt-mark.g-bull::before { border-color: #ffb300; background: #ffb300; }
.tgt-mark.g-good img { border-color: #43a047; }
.tgt-mark.mine::before { left: -2px; width: 4px; height: 12px; top: -10px; background: #c62828; }
.tgt-label { white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(160, 10, 70, .88); color: #fff; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); margin-top: 14px; }
.tgt-box.g-bull .tgt-label { background: linear-gradient(135deg, #ffb300, #ff6f00); }
.tgt-box.g-good .tgt-label { background: #2e7d32; }
.tgt-box.g-miss .tgt-label { background: rgba(60, 60, 60, .85); }
.tgt-box.over { animation: hbOut 1.4s ease-in forwards; }
.sk-event.sk-tgt { background: linear-gradient(135deg, #fff8e1, #ffe082 60%, #ffcc80); border-color: #ff8f00; }
.sk-tgt .sk-text b { color: #bf360c; }
/* Heart drawing (drawheart.js): the pad in the duel window; both drawings side by side at the end */
.dr-padwrap { display: flex; justify-content: center; }
.dr-pad { display: block; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px #f8bbd0; touch-action: none; cursor: crosshair; }
.dr-mini { display: block; width: 90px; height: 90px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #f8bbd0; margin: 4px auto; }
.dr-both { display: flex; justify-content: center; gap: 10px; }
.dr-res { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; font-size: 12px; max-width: 120px; }
.dr-res b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-res.win { background: linear-gradient(160deg, #fffde7, #ffe082); box-shadow: 0 0 0 2px #ffb300; }
.dr-res > i { position: absolute; top: -6px; inset-inline-end: -4px; font-style: normal; font-size: 18px; }
.dr-score { font-size: 18px; font-weight: 800; color: #ad1457; }
.sk-event.sk-draw { background: linear-gradient(135deg, #f3e5f5, #fce4ec); border-color: #8e24aa; }
.sk-draw .sk-text b { color: #6a1b9a; }
/* Valentine's box (valentine.js): a heart piece floating in a free spot; my heart filling up; the frame won */
/* Winter snowflake (snowflake.js): a snowflake drifting down slowly, swaying and turning; my set as a ring of flakes */
/* Ramadan lantern (lantern.js, mini-game 21) */
.ln-float { --ln: 72px; position: absolute; z-index: 4; /* under the kiss scene (5) */ width: var(--ln); height: calc(var(--ln) * 1.25); transform: translate(-50%, -50%); pointer-events: none; animation: mbIn .5s ease-out; }
.ln-lamp { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 40%; background: radial-gradient(circle at 50% 58%, rgba(255, 213, 79, .55), rgba(255, 152, 0, .18) 55%, transparent 72%); cursor: pointer; pointer-events: auto; touch-action: manipulation; transform-origin: 50% 0; animation: lnSway 3.4s ease-in-out infinite; }
.ln-lamp > span { display: block; height: 100%; filter: drop-shadow(0 4px 8px rgba(120, 60, 0, .55)) drop-shadow(0 0 10px rgba(255, 193, 7, .6)); }
.ln-lamp svg { width: 100%; height: 100%; display: block; }
.ln-label { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(74, 20, 140, .92); color: #ffe082; font-size: var(--lnf, 13px); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.ln-float.mine .ln-lamp { cursor: default; animation-duration: 5s; }
.ln-float.mine .ln-lamp > span { filter: drop-shadow(0 0 14px rgba(255, 213, 79, .95)); }
.ln-float.mine .ln-label { background: #2e7d32; color: #fff; }
.ln-float.gone { opacity: 0; transition: opacity .5s; }
@keyframes lnSway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.ln-dlg { max-width: 340px; text-align: center; background: linear-gradient(180deg, #311b92, #4a148c 70%, #6a1b9a); color: #fff8e1; }
.ln-dlg > b { color: #ffe082; }
.ln-moon { position: relative; width: 70px; height: 80px; margin: 0 auto 6px; }
.ln-moon::before { content: ''; position: absolute; left: -6px; top: 0; width: 34px; height: 34px; border-radius: 50%; box-shadow: 8px 4px 0 0 #ffd54f; transform: rotate(-20deg); }
.ln-moon > span { position: absolute; right: 6px; top: 6px; width: 46px; height: 74px; filter: drop-shadow(0 0 10px rgba(255, 193, 7, .7)); }
.ln-moon svg { width: 100%; height: 100%; }
.ln-dlg.whole .ln-moon { animation: hbBeat .6s ease-out 2; }
.ln-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin: 8px 0; direction: ltr; }
.ln-row svg { display: block; }
.ln-frame { display: block; width: 96px; margin: 8px auto 4px; padding: 8px 14px; border-radius: 14px; background: radial-gradient(circle at 50% 45%, #fff8e1, #ffe082 55%, rgba(255, 193, 7, .25) 80%); filter: drop-shadow(0 3px 8px rgba(255, 193, 7, .5)); }
.sk-event.sk-lantern { background: linear-gradient(135deg, #ede7f6, #d1c4e9 60%, #ffe082); border-color: #6a1b9a; }
.sk-lantern .sk-text b { color: #4a148c; }
.sf-float { --sf: 72px; position: absolute; z-index: 4; /* under the kiss scene (5) */ width: var(--sf); height: var(--sf); transform: translate(-50%, -50%); pointer-events: none; animation: mbIn .5s ease-out; }
.sf-flake { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(225, 245, 254, .75), rgba(79, 195, 247, .18) 60%, transparent 72%); cursor: pointer; pointer-events: auto; touch-action: manipulation; animation: sfDrift 3.2s ease-in-out infinite; }
.sf-flake > span { display: block; width: 86%; height: 86%; margin: 7%; filter: drop-shadow(0 3px 6px rgba(1, 87, 155, .5)); animation: sfSpin 6s linear infinite; }
.sf-flake svg { width: 100%; height: 100%; display: block; }
@keyframes sfDrift { 0% { transform: translate(-10%, -14%); } 50% { transform: translate(10%, 6%); } 100% { transform: translate(-10%, -14%); } }
@keyframes sfSpin { to { transform: rotate(360deg); } }
.sf-label { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(2, 136, 209, .92); color: #fff; font-size: var(--sff, 13px); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.sf-float.taken .sf-flake, .sf-float.gone { opacity: 0; transition: opacity .5s; }
.sf-float.taken .sf-label { background: #2e7d32; }
.sf-dlg { max-width: 320px; text-align: center; }
.sf-dlg .sf-ring { display: flex; justify-content: center; margin-bottom: 6px; }
.sf-dlg.whole .sf-ring { animation: hbBeat .6s ease-out 2; }
.sf-frame { display: block; width: 90px; margin: 8px auto 0; filter: drop-shadow(0 3px 8px rgba(2, 136, 209, .45)); }
.sk-event.sk-sflake { background: linear-gradient(135deg, #e1f5fe, #b3e5fc 60%, #81d4fa); border-color: #0288d1; }
.sk-sflake .sk-text b { color: #01579b; }
.vd-float { --vd: 72px; position: absolute; z-index: 7; width: var(--vd); height: var(--vd); transform: translate(-50%, -50%); pointer-events: none; animation: mbIn .5s ease-out; }
.vd-piece { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 205, 210, .7), rgba(255, 64, 129, .15) 60%, transparent 72%); cursor: pointer; pointer-events: auto; touch-action: manipulation; animation: mbBob 2.4s ease-in-out infinite; }
.vd-piece > span { display: block; width: 86%; height: 86%; margin: 7%; filter: drop-shadow(0 4px 6px rgba(150, 0, 40, .45)); }
.vd-piece svg { width: 100%; height: 100%; display: block; }
.vd-label { position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(197, 17, 98, .92); color: #fff; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.vd-float.taken .vd-piece, .vd-float.gone { opacity: 0; transition: opacity .5s; }
.vd-float.taken .vd-label { background: #2e7d32; }
.vd-dlg { max-width: 320px; text-align: center; }
.vd-dlg .vd-pie { display: flex; justify-content: center; margin-bottom: 6px; }
.vd-dlg.whole .vd-pie { animation: hbBeat .6s ease-out 2; }
.vd-frame { display: block; width: 90px; margin: 8px auto 0; filter: drop-shadow(0 3px 8px rgba(197, 17, 98, .4)); }
.sk-event.sk-vday { background: linear-gradient(135deg, #fce4ec, #f8bbd0 60%, #ff80ab); border-color: #c51162; }
.sk-vday .sk-text b { color: #880e4f; }
/* Halloween pumpkins (pumpkins.js): a glowing pumpkin on a seat; treat (sweets + prize) or trick (a spooky mark on the
   opener's seat: .seat-fx.trick, drawn by table.js from the seat's mark) */
.pk-box { position: absolute; z-index: 8; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; animation: mbIn .45s ease-out; }
.pk-pumpkin { width: calc(52 * var(--u, 1px)); height: calc(52 * var(--u, 1px)); min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; pointer-events: auto; touch-action: manipulation;
  background: radial-gradient(circle, rgba(255, 213, 79, .75), rgba(255, 111, 0, .25) 55%, transparent 70%); animation: pkWobble 1.1s ease-in-out infinite; }
.pk-pumpkin span { font-size: calc(40 * var(--u, 1px)); line-height: 1; filter: drop-shadow(0 0 8px rgba(255, 145, 0, .9)); }
@keyframes pkWobble { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.08); } }
.pk-label { white-space: nowrap; padding: 2px 9px; border-radius: 999px; background: rgba(62, 39, 35, .92); color: #ffcc80; font-size: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.pk-box.open .pk-pumpkin { animation: hbBeat .5s ease-out; pointer-events: none; }
.pk-box.treat .pk-label { background: #2e7d32; color: #fff; }
.pk-box.trick .pk-label { background: #4a148c; color: #fff; }
.pk-box.gone { opacity: 0; transition: opacity .5s; }
.seat-fx.trick { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; border-radius: inherit; background: radial-gradient(circle, rgba(118, 255, 3, .18), rgba(74, 20, 140, .35)); animation: pkTrick 1.6s ease-in-out infinite; }
.seat-fx.trick span { font-size: calc(46 * var(--u, 1px)); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); animation: pkWobble 1.3s ease-in-out infinite; }
@keyframes pkTrick { 50% { background: radial-gradient(circle, rgba(118, 255, 3, .3), rgba(74, 20, 140, .5)); } }
.sk-event.sk-pk { background: linear-gradient(135deg, #3e2723, #6d4c41 60%, #ff6f00); border-color: #ffb74d; }
.sk-pk .sk-text b { color: #ffcc80; }
.sk-pk .sk-text { color: #fff; }
.sk-event.sk-pk.treat { background: linear-gradient(135deg, #fff3e0, #ffcc80 60%, #ff9800); border-color: #ef6c00; }
.sk-pk.treat .sk-text b { color: #bf360c; }
.sk-pk.treat .sk-text { color: inherit; }
/* Table rainbow (rainbow.js): a coloured frame around each seat card (its own layer, under the kiss scene) and the
   card at the top of the table chat */
.rb-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: visible; }
.rb-glow { position: absolute; border-radius: calc(12 * var(--u, 1px)); border: 4px solid var(--rb); box-shadow: 0 0 14px 4px var(--rb), inset 0 0 10px var(--rb); transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.rb-glow.me { border-width: 5px; }
.rb-win { margin: 6px 8px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(120deg, #ffebee, #fff8e1, #e8f5e9, #e3f2fd, #f3e5f5); border: 1px solid #ce93d8; box-shadow: 0 3px 10px rgba(123, 31, 162, .18); text-align: center; }
.rb-head { display: flex; align-items: center; gap: 6px; justify-content: center; }
.rb-head b { color: #6a1b9a; }
.rb-ico { font-size: 20px; }
.rb-want { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0; font-size: 14px; }
.rb-want b { font-size: 16px; }
.rb-sw { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); vertical-align: middle; transition: background .15s; }
.rb-sw.big { width: 24px; height: 24px; }
.rb-mine { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #555; margin-bottom: 6px; }
.rb-go { width: 100%; height: 46px; border: 0; border-radius: 23px; font: inherit; font-size: 20px; font-weight: 800; color: #fff; cursor: pointer; touch-action: manipulation; user-select: none;
  background: var(--rb); box-shadow: 0 4px 0 rgba(0, 0, 0, .25), 0 0 14px var(--rb); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.rb-go:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.rb-go:disabled { opacity: .55; }
.rb-res { font-weight: 800; font-size: 15px; margin: 4px 0; }
.rb-res.hit { color: #2e7d32; }
.rb-res.miss { color: #c62828; }
.rb-hits { margin-top: 4px; font-size: 12px; color: #2e7d32; font-weight: 700; }
.rb-prize { justify-content: center; }
.sk-event.sk-rb { background: linear-gradient(120deg, #ffcdd2, #fff9c4, #c8e6c9, #bbdefb, #e1bee7); border-color: #ba68c8; }
.sk-rb .sk-text b { color: #6a1b9a; }
/* Number puzzle (numguess.js): the card at the top of the table chat */
/* Heart chain (heartchain.js, mini-game 28): a card at the top of the table chat */
.hc-win { margin: 6px 8px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(160deg, #fce4ec, #f3e5f5); border: 1px solid #f48fb1; box-shadow: 0 3px 10px rgba(173, 20, 87, .15); text-align: center; }
.hc-win.won { background: linear-gradient(160deg, #fffde7, #fff3c4); border-color: #ffca28; }
.hc-win.broke { background: #f5f5f5; border-color: #cfd8dc; }
.hc-head { display: flex; align-items: center; gap: 6px; }
.hc-head b { flex: 1; color: #880e4f; font-size: 13px; text-align: start; }
.hc-ico { font-size: 18px; }
.hc-n { font-weight: 800; color: #ad1457; }
.hc-len { font-size: 11px; color: #8e24aa; margin-top: 2px; }
.hc-chain { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; margin: 5px 0; direction: ltr; }
.hc-chain i { font-style: normal; font-size: 14px; line-height: 1; opacity: .55; }
.hc-chain i.on { opacity: 1; animation: hcPop .3s ease-out; }
@keyframes hcPop { from { transform: scale(1.6); } to { transform: scale(1); } }
.hc-bar { height: 6px; margin: 4px 0 6px; border-radius: 3px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.hc-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ec407a, #ab47bc); transition: width .1s linear; }
.hc-bar i.low { background: #e53935; }
.hc-go { min-width: 140px; touch-action: manipulation; }
.hc-note { margin-top: 4px; font-size: 12px; color: #6a1b9a; }
.hc-res { font-weight: 800; color: #ad1457; }
.hc-prize { justify-content: center; margin-top: 4px; }
.sk-event.sk-hc { background: linear-gradient(135deg, #fce4ec, #f8bbd0 60%, #e1bee7); border-color: #ec407a; }
.sk-hc .sk-text b { color: #880e4f; }
.sk-hc .hc-names { font-size: 12px; color: #6a1b9a; }
/* Cups game (cups.js, mini-game 27): a card at the top of the table chat */
.cups-win { margin: 6px 8px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(160deg, #fff3e0, #ffe0b2); border: 1px solid #ffb74d; box-shadow: 0 3px 10px rgba(230, 81, 0, .15); }
.cups-win.done { background: linear-gradient(160deg, #fffde7, #fff3c4); border-color: #ffca28; }
.cups-head { display: flex; align-items: center; gap: 6px; }
.cups-head b { flex: 1; color: #bf360c; font-size: 14px; }
.cups-ico { font-size: 18px; }
.cups-time { font-style: normal; font-weight: 700; color: #d84315; }
.cups-stage { position: relative; height: 92px; margin: 4px 0; }
.cups-heart { position: absolute; z-index: 2; bottom: 2px; transform: translateX(-50%); font-size: 28px; line-height: 1; transition: left .4s; filter: drop-shadow(0 2px 3px rgba(183, 28, 28, .4)); }
.cups-cup { position: absolute; bottom: 0; width: 56px; height: 62px; margin-left: -28px; padding: 0; border: 0; background: none; cursor: default; transition: left .4s ease-in-out, transform .35s ease; touch-action: manipulation; }
.cups-cup svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.cups-stage.open .cups-cup { transform: translateY(-36px); }
.cups-stage.reveal .cups-cup.heart { transform: translateY(-40px) rotate(-12deg); }
.cups-stage.reveal .cups-cup:not(.heart) { transform: none; opacity: .55; }
.cups-win.picking .cups-cup:not(:disabled) { cursor: pointer; animation: cupsWiggle 1.2s ease-in-out infinite; }
.cups-cup.mine svg { filter: drop-shadow(0 0 6px #ffca28) drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.cups-cup .cups-x { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 26px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); pointer-events: none; }
@keyframes cupsWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.cups-note { text-align: center; color: #6d4c41; font-size: 13px; }
.cups-prize { justify-content: center; margin-top: 4px; }
.sk-event.sk-cups { background: linear-gradient(135deg, #fff3e0, #ffe0b2 60%, #ffcc80); border-color: #fb8c00; }
.sk-cups .sk-text b { color: #bf360c; }
/* Love dice (lovedice.js, mini-game 26): the two's card at the top of the chat, the dice in the chat */
.lvd-win { margin: 6px 8px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(160deg, #fff8e1, #fce4ec); border: 1px solid #f48fb1; box-shadow: 0 3px 10px rgba(173, 20, 87, .15); text-align: center; }
.lvd-head { display: flex; align-items: center; gap: 6px; }
.lvd-head b { flex: 1; color: #880e4f; font-size: 13px; text-align: start; }
.lvd-ico { font-size: 18px; }
.lvd-time { font-style: normal; font-weight: 700; color: #c2185b; }
.lvd-sub { margin: 3px 0 6px; color: #6a1b9a; font-size: 12px; }
.lvd-go { min-width: 120px; }
.lvd-dice { display: flex; gap: 8px; margin: 4px 0 2px; }
.lvd-die { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2), inset 0 -3px 0 rgba(0, 0, 0, .08); font-size: 22px; animation: lvdTumble .35s linear infinite; }
.lvd-die.landed { animation: lvdLand .45s ease-out; }
@keyframes lvdTumble { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(180deg) translateY(-6px); } 100% { transform: rotate(360deg) translateY(0); } }
@keyframes lvdLand { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
.lvd-res { font-weight: 800; color: #ad1457; }
.sk-event.sk-lvd { background: linear-gradient(135deg, #fff8e1, #fce4ec 60%, #f8bbd0); border-color: #ec407a; }
.sk-lvd .sk-text b { color: #880e4f; }
/* Love locks (lovelocks.js, mini-game 25): the lovers' bridge — a strip at the top of the table chat, the bridge window */
.ll-strip { display: flex; align-items: center; gap: 6px; width: calc(100% - 16px); margin: 6px 8px; padding: 5px 10px; border: 1px solid #bcaaa4; border-radius: 14px; background: linear-gradient(180deg, #efebe9, #d7ccc8); cursor: pointer; text-align: start; }
.ll-strip > b { color: #4e342e; font-size: 13px; white-space: nowrap; }
.ll-ico { font-size: 18px; }
.ll-row { flex: 1; display: flex; gap: 6px; overflow: hidden; justify-content: flex-end; }
.ll-mini { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ll-mini small { font-size: 10px; font-weight: 700; color: #4e342e; direction: ltr; }
.ll-mini i svg { display: block; }
.ll-more { font-size: 12px; font-weight: 700; color: #6d4c41; }
.ll-dlg { max-width: 380px; text-align: center; }
.ll-title { display: block; color: #4e342e; font-size: 16px; }
.ll-note { margin: 6px 0; color: #6d4c41; font-size: 13px; }
.ll-bridge { position: relative; margin: 10px 0 4px; padding: 22px 6px 10px; border-radius: 12px; background: linear-gradient(180deg, #e3f2fd 0, #e3f2fd 55%, #90caf9 100%); }
.ll-bridge::before { content: ''; position: absolute; left: 6px; right: 6px; top: 12px; height: 6px; border-radius: 3px; background: #6d4c41; box-shadow: 0 10px 0 -1px #8d6e63; }
.ll-rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-height: 300px; overflow: auto; }
.ll-lock { position: relative; display: flex; flex-direction: column; align-items: center; width: 72px; padding-top: 8px; }
.ll-chain { position: absolute; top: -6px; width: 2px; height: 14px; background: #9e9e9e; }
.ll-lock span svg { display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); animation: llSwing 3s ease-in-out infinite; transform-origin: 50% 0; }
.ll-lock b { margin-top: 2px; font-size: 13px; color: #3e2723; direction: ltr; }
.ll-lock small { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #5d4037; }
.ll-lock em { font-size: 10px; color: #1565c0; font-style: normal; }
@keyframes llSwing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.ll-colors { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }
.ll-color { padding: 4px; border: 2px solid transparent; border-radius: 12px; background: #fafafa; cursor: pointer; }
.ll-color.on { border-color: #6d4c41; background: #efebe9; }
.ll-face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.ll-big { display: block; margin: -14px auto 4px; width: 48px; }
.ll-time { display: block; margin: 4px 0; font-style: normal; font-weight: 700; color: #c2185b; }
.sk-event.sk-lock { background: linear-gradient(135deg, #efebe9, #d7ccc8 60%, #ffe0b2); border-color: #8d6e63; }
.sk-lock .sk-text b { color: #4e342e; }
/* Couple's question (couplequestion.js, mini-game 24): a card at the top of the table chat for the two who kissed */
.cq-win { margin: 6px 8px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(160deg, #fff0f6, #f3e5f5); border: 1px solid #f48fb1; box-shadow: 0 3px 10px rgba(173, 20, 87, .15); }
.cq-win.match { background: linear-gradient(160deg, #fffde7, #ffecb3); border-color: #ffb300; }
.cq-head { display: flex; align-items: center; gap: 6px; }
.cq-head b { flex: 1; color: #880e4f; font-size: 13px; }
.cq-ico { font-size: 18px; }
.cq-time { font-style: normal; font-weight: 700; color: #c2185b; }
.cq-q { margin: 4px 0 6px; text-align: center; font-weight: 800; font-size: 16px; color: #4a148c; }
.cq-row { display: flex; gap: 8px; }
.cq-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 6px 8px; border: 2px solid #f8bbd0; border-radius: 12px; background: #fff; color: #4a148c; font-weight: 700; font-size: 14px; cursor: pointer; touch-action: manipulation; }
.cq-btn:active { transform: scale(.97); }
.cq-emo { font-size: 20px; }
.cq-note, .cq-res { text-align: center; color: #6a1b9a; font-size: 13px; }
.cq-res.match { color: #e65100; font-weight: 800; font-size: 15px; }
.cq-lp { text-align: center; color: #2e7d32; font-weight: 700; font-size: 13px; margin-top: 2px; }
.sk-event.sk-cq { background: linear-gradient(135deg, #fff0f6, #f8bbd0 60%, #e1bee7); border-color: #ad1457; }
.sk-cq .sk-text b { color: #880e4f; }
.sk-cq .cq-said { font-size: 12px; color: #6a1b9a; }
.sk-cq .cq-chose { font-weight: 800; color: #ad1457; }
/* Secret rose (secretrose.js, mini-game 23): the rose on a seat (under the kiss scene), the receiver's window */
.rose-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: visible; }
.rose-seat { position: absolute; transform: translate(-50%, -70%); line-height: 1; filter: drop-shadow(0 3px 6px rgba(136, 14, 79, .5)); animation: roseIn .6s ease-out, roseBob 2.4s ease-in-out .6s infinite; transition: opacity .4s; }
.rose-seat.out { opacity: 0; }
.rose-q { position: absolute; right: -.45em; top: -.25em; font-size: .45em; font-weight: 800; color: #fff; background: #c2185b; border-radius: 50%; width: 1.4em; height: 1.4em; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
@keyframes roseIn { from { transform: translate(-50%, -20%) scale(.2); opacity: 0; } to { transform: translate(-50%, -70%) scale(1); opacity: 1; } }
@keyframes roseBob { 0%, 100% { transform: translate(-50%, -70%) rotate(-6deg); } 50% { transform: translate(-50%, -78%) rotate(6deg); } }
.rose-dlg { max-width: 340px; text-align: center; background: linear-gradient(180deg, #fff0f5, #fce4ec); }
.rose-big { font-size: 56px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(194, 24, 91, .4)); animation: hbBeat 1.2s ease-in-out infinite; }
.rose-dlg > b { display: block; margin-top: 6px; color: #880e4f; font-size: 16px; }
.rose-sub { margin: 4px 0 10px; color: #ad1457; font-size: 13px; }
.rose-opts { display: flex; justify-content: center; gap: 10px; }
.rose-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 6px 4px; border: 2px solid #f8bbd0; border-radius: 14px; background: #fff; cursor: pointer; touch-action: manipulation; }
.rose-opt img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.rose-opt span { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #4a148c; }
.rose-opt.on { border-color: #c2185b; background: #fce4ec; }
.rose-opt:disabled:not(.on) { opacity: .5; }
.rose-time { display: block; margin-top: 8px; color: #c2185b; font-style: normal; font-weight: 700; }
.sk-event.sk-rose { background: linear-gradient(135deg, #fff0f5, #f8bbd0 60%, #f48fb1); border-color: #c2185b; }
.sk-rose .sk-text b { color: #880e4f; }
/* Bottle guess (bottleguess.js, mini-game 22): a slim strip at the top of the table chat */
.bgs-win { margin: 6px 8px; padding: 6px 10px; border-radius: 14px; background: linear-gradient(160deg, #e8f5e9, #f1f8e9); border: 1px solid #81c784; box-shadow: 0 3px 10px rgba(46, 125, 50, .15); }
.bgs-win.won { background: linear-gradient(160deg, #fffde7, #fff3c4); border-color: #ffca28; }
.bgs-win.lost { background: #f5f5f5; border-color: #cfd8dc; }
.bgs-head { display: flex; align-items: center; gap: 6px; }
.bgs-head b { flex: 1; color: #1b5e20; font-size: 14px; }
.bgs-win.lost .bgs-head b { color: #546e7a; }
.bgs-ico { font-size: 18px; }
.bgs-price { font-size: 13px; font-weight: 700; color: #33691e; white-space: nowrap; }
.bgs-row { display: flex; gap: 6px; margin-top: 5px; overflow-x: auto; scrollbar-width: none; }
.bgs-row:empty { display: none; }
.bgs-pick { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 54px; padding: 3px 2px; border: 2px solid transparent; border-radius: 12px; background: #fff; cursor: pointer; touch-action: manipulation; }
.bgs-pick img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.bgs-pick span { max-width: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #37474f; }
.bgs-pick.on { border-color: #43a047; background: #e8f5e9; }
.bgs-pick:disabled:not(.on) { opacity: .45; cursor: default; }
.bgs-prize { margin-top: 4px; justify-content: center; }
.sk-event.sk-bgs { background: linear-gradient(135deg, #e8f5e9, #c8e6c9 60%, #a5d6a7); border-color: #43a047; }
.sk-bgs .sk-text b { color: #1b5e20; }
.ng-win { margin: 6px 8px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(160deg, #f3e5f5, #ede7f6); border: 1px solid #b39ddb; box-shadow: 0 3px 10px rgba(94, 53, 177, .18); }
.ng-win.done .ng-time { visibility: hidden; }
.ng-win.done { background: linear-gradient(160deg, #fffde7, #fff3c4); border-color: #ffca28; }
.ng-head { display: flex; align-items: center; gap: 6px; }
.ng-head b { flex: 1; color: #4527a0; }
.ng-ico { font-size: 20px; }
.ng-time { font-style: normal; font-weight: 800; color: #6a1b9a; min-width: 34px; text-align: end; }
.ng-range { margin: 6px 0; text-align: center; font-size: 17px; font-weight: 800; color: #311b92; }
.ng-range.won { color: #e65100; }
.ng-row { display: flex; gap: 6px; }
.ng-in { flex: 1; min-width: 0; height: 36px; border: 2px solid #b39ddb; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 17px; font-weight: 700; text-align: center; background: #fff; }
.ng-in.bad { border-color: #e53935; }
.ng-go { white-space: nowrap; }
.ng-note { margin-top: 3px; font-size: 12px; color: #7e57c2; text-align: center; }
.ng-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.ng-line { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 6px; border-radius: 8px; background: rgba(255, 255, 255, .7); }
.ng-line b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-n { font-weight: 800; min-width: 26px; text-align: center; }
.ng-line.up .ng-hint { color: #2e7d32; }
.ng-line.down .ng-hint { color: #c62828; }
.ng-line.hit { background: #ffe082; }
.ng-prize { justify-content: center; }
.sk-event.sk-ng { background: linear-gradient(135deg, #ede7f6, #d1c4e9); border-color: #9575cd; }
.sk-ng .sk-text b { color: #4527a0; }
/* Message pigeon (pigeon.js): the window, the bird in flight, the bubble over the receiver's seat */
.pg-dlg { max-width: 360px; }
.pg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pg-big { font-size: 30px; }
.pg-label { display: block; margin: 6px 0 4px; color: #8a5a78; }
.pg-greets { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; }
.pg-greets button { border: 1px solid #f3c1d9; background: #fff; border-radius: 14px; padding: 5px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.pg-emojis { display: flex; flex-wrap: wrap; gap: 4px; }
.pg-emojis button { border: 1px solid transparent; background: #fff4f9; border-radius: 10px; width: 38px; height: 38px; font-size: 22px; cursor: pointer; padding: 0; }
.pg-greets button.on, .pg-emojis button.on { border-color: #e91e63; background: #ffe3ef; box-shadow: 0 0 0 2px rgba(233, 30, 99, .25); }
.pg-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: visible; }
.pg-bird { position: absolute; left: 0; top: 0; pointer-events: none; line-height: 1; font-style: normal; filter: drop-shadow(0 0 2px rgba(40, 60, 90, .9)) drop-shadow(0 6px 5px rgba(0, 0, 0, .35)); }
.pg-letter { position: absolute; right: -4px; bottom: -6px; font-size: .55em; }
.pg-bubble { position: absolute; pointer-events: none; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 4px; max-width: 150px;
  padding: 4px 9px; border-radius: 14px; background: #fff; color: #6a1b4d; font-size: 12px; font-weight: 700; line-height: 1.2; box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
  animation: pgIn .3s ease-out both; transition: opacity .35s, transform .35s; }
.pg-bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.pg-bubble.out { opacity: 0; transform: translate(-50%, -120%); }
.pg-emo { font-size: 18px; }
.pg-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes pgIn { from { opacity: 0; transform: translate(-50%, -80%) scale(.6); } to { opacity: 1; transform: translate(-50%, -100%) scale(1); } }
.sk-event.sk-pg { background: linear-gradient(135deg, #f1f8ff, #e3f2fd); border-color: #90caf9; }
.sk-pg .sk-text b { color: #1565c0; }
/* Quick challenge (quick.js): a big round button — red "Get ready…", green "Now!" — in the duel window */
.qk-wrap { display: flex; justify-content: center; padding: 4px 0 2px; }
.qk-btn { width: 128px; height: 128px; border: 0; border-radius: 50%; font: inherit; font-size: 20px; font-weight: 800; color: #fff; cursor: pointer; touch-action: manipulation; user-select: none;
  background: radial-gradient(circle at 35% 30%, #ff8a80, #c62828 70%); box-shadow: 0 6px 0 #8e0000, 0 10px 20px rgba(0, 0, 0, .3); transition: transform .05s; }
.qk-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #8e0000, 0 6px 12px rgba(0, 0, 0, .3); }
.qk-btn.go { background: radial-gradient(circle at 35% 30%, #b9f6ca, #00c853 70%); box-shadow: 0 6px 0 #00701a, 0 0 26px rgba(0, 200, 83, .8); animation: hbIn .12s ease-out; }
.qk-btn.done { background: radial-gradient(circle at 35% 30%, #e1bee7, #7b1fa2 70%); box-shadow: 0 4px 0 #4a0072; font-size: 22px; }
.qk-both { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.qk-res { display: flex; flex-direction: column; align-items: center; padding: 4px 10px; border-radius: 10px; font-size: 12px; }
.qk-res span { font-size: 18px; font-weight: 800; color: #ad1457; }
.qk-res.win { background: linear-gradient(160deg, #fffde7, #ffe082); box-shadow: 0 0 0 2px #ffb300; }
.sk-event.sk-qk { background: linear-gradient(135deg, #fffde7, #fff59d 60%, #ffd54f); border-color: #f9a825; }
.sk-qk .sk-text b { color: #e65100; }
.sk-event.sk-rain { background: linear-gradient(135deg, #fff2f7, #ffd3e4 60%, #ffadc9); border-color: #f06292; }
.sk-rain .sk-text b { color: #8a0f3d; }

/* the couple's chest (couplechest.js): between the two who kissed, outside the bottle's circle; a ring running out,
   both photos (ticked when tapped); it opens into a gift and its prize */
.ch-box { position: absolute; z-index: 8; width: 88px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: none; animation: chIn .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes chIn { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } }
.ch-box.gone { transition: opacity .4s, transform .4s; opacity: 0; transform: translate(-50%, -50%) scale(.7); }
.ch-ring { position: absolute; top: -6px; width: 70px; height: 70px; border-radius: 50%; background: conic-gradient(#ff2d7a var(--deg, 360deg), rgba(255, 255, 255, .35) 0); animation: chRing var(--ms, 3000ms) linear forwards; -webkit-mask: radial-gradient(circle, transparent 29px, #000 30px); mask: radial-gradient(circle, transparent 29px, #000 30px); }
@property --deg { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
@keyframes chRing { to { --deg: 0deg; } }
.ch-chest { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #fff7fb, #ffd0e4); box-shadow: 0 4px 12px rgba(150, 0, 60, .4); font-size: 32px; padding: 0; }
.ch-box.mine .ch-chest { pointer-events: auto; cursor: pointer; animation: chPulse .7s ease-in-out infinite alternate; }
@keyframes chPulse { to { transform: scale(1.1); box-shadow: 0 0 16px #ff4f9a; } }
.ch-lock { position: absolute; right: 2px; bottom: 2px; font-size: 16px; }
.ch-box.open .ch-chest { animation: chOpen .6s ease-out; }
.ch-box.open .ch-lock { display: none; }
@keyframes chOpen { 40% { transform: scale(1.35) rotate(-8deg); } }
.ch-faces { display: flex; gap: 22px; margin-top: -8px; }
.ch-face { position: relative; width: 24px; height: 24px; }
.ch-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; filter: grayscale(.6); }
.ch-face i { position: absolute; right: -5px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%; background: #2ecc71; color: #fff; font: 700 9px/14px inherit; text-align: center; font-style: normal; opacity: 0; transition: opacity .2s; }
.ch-face.on img { filter: none; box-shadow: 0 0 0 2px #2ecc71; }
.ch-face.on i { opacity: 1; }
.ch-label { white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: rgba(120, 10, 50, .85); color: #fff; font-size: 11px; }
.ch-prize { display: inline-flex; }
.sk-event.sk-chest { background: linear-gradient(135deg, #fffaf0, #ffe3ef 60%, #ffc4dc); border-color: #f06292; }
.sk-chest .sk-text b { color: #8a0f3d; }

/* the person-to-person mini-games in the conversations (mgcard.js, 2026-11-08): the 🎮 button, its list, the result card */
.dm-games { width: 32px; height: 32px; border-radius: 50%; background: none; font-size: 16px; flex: none; }
.dm-games:hover { background: rgba(0, 0, 0, .06); }
.mg-menu { max-width: 340px; width: calc(100vw - 32px); }
.mg-menu-title { display: block; text-align: center; font-size: 16px; color: #880e4f; margin-bottom: 8px; }
.mg-menu-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.mg-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(160deg, #fff4f9, #ffe1ee); border: 1px solid #f7c3d8; color: #4a0d2a; font-weight: 700; text-align: start; }
.mg-menu-item:hover { background: linear-gradient(160deg, #ffe9f2, #ffd3e6); }
.mg-menu-ico { font-size: 20px; width: 26px; text-align: center; }
.dm-mgcard { display: flex; align-items: center; gap: 10px; margin: 6px auto; max-width: min(92%, 380px); padding: 8px 12px; border-radius: 14px; background: linear-gradient(160deg, #fff4f9, #ffe1ee 70%, #f3d6ff); border: 1px solid #f7a8c8; color: #4a0d2a; box-shadow: 0 2px 8px rgba(190, 20, 90, .12); }
.dm-mg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.3; }
.dm-mg-text span { opacity: .85; }
.dm-mg-sign { font-size: 22px; flex: none; }

/* Fireworks (fireworks.js, 2026-11-08 — mini-game 29): rockets burst and golden sparks fall in the table's side lanes
   (never over the bottle's circle or the kiss scene); the buyer's own sparks are not tappable */
.fw-layer { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.fw-rocket { position: absolute; width: 0; height: 0; pointer-events: none; }
.fw-trail { position: absolute; left: -2px; top: 0; width: 4px; height: 40px; border-radius: 4px; background: linear-gradient(var(--c, #ffd740), transparent); opacity: 0;
  animation: fwRise 700ms ease-out var(--delay, 0ms) both; }
@keyframes fwRise { 0% { transform: translateY(var(--rise, 400px)); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
.fw-burst { position: absolute; left: 0; top: 0; }
.fw-burst b { position: absolute; left: -5px; top: -2px; width: 18px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--c, #ffd740) 40%, #fff); box-shadow: 0 0 10px 2px var(--c, #ffd740); opacity: 0;
  transform: rotate(var(--a)) translateX(0); animation: fwBurst 1600ms cubic-bezier(.12, .8, .3, 1) calc(var(--delay, 0ms) + 700ms) both; }
@keyframes fwBurst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1.3); } 65% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(calc(var(--size, 90px) * .6 * var(--d, 1))) translateY(10px) scale(.4); } }
.fw-flash { position: absolute; left: calc(var(--size, 90px) * -.35); top: calc(var(--size, 90px) * -.35); width: calc(var(--size, 90px) * .7); height: calc(var(--size, 90px) * .7); border-radius: 50%; background: radial-gradient(circle, #fff 0, var(--c, #ffd740) 22%, transparent 55%); opacity: 0;
  animation: fwFlash 450ms ease-out calc(var(--delay, 0ms) + 700ms) both; }
@keyframes fwFlash { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: .8; } 100% { opacity: 0; transform: scale(1.1); } }
.fw-spark { position: absolute; left: 0; top: 0; padding: 6px; margin: -6px; border: 0; background: none; line-height: 1; cursor: pointer; pointer-events: auto; touch-action: manipulation;
  filter: drop-shadow(0 0 6px rgba(255, 196, 0, .9)); transform: translateY(-60px); animation: rainFall var(--dur, 4000ms) linear var(--delay, 0ms) both; }
.fw-spark > span { display: block; animation: rainSway 1s ease-in-out infinite alternate; }
.fw-spark:disabled { cursor: default; pointer-events: none; opacity: .85; }
.fw-spark.pop { animation: rainPop .35s ease-out forwards; pointer-events: none; }
.fw-spark.gone { animation: rainGone .35s ease-out forwards; pointer-events: none; }
.fw-badge { position: absolute; z-index: 8; left: 50%; top: 4px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(40, 20, 90, .88); color: #ffe082; font-size: 14px; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.fw-badge.bump { animation: rainBump .3s ease-out; }
.fw-dlg { max-width: 340px; text-align: center; background: linear-gradient(180deg, #1d1145, #3a1c71 70%, #5b2a86); color: #fff; }
.fw-big { font-size: 54px; line-height: 1.1; filter: drop-shadow(0 0 12px rgba(255, 215, 64, .7)); }
.fw-title { display: block; margin: 4px 0 6px; font-size: 18px; color: #ffe082; }
.fw-text { margin: 0 0 6px; font-size: 14px; line-height: 1.45; opacity: .95; }
.fw-lp { margin: 0 0 6px; font-size: 13px; color: #b9f6ca; }
.fw-note { margin: 4px 0; font-size: 13px; color: #ffab91; }
.fw-dlg .dialog-actions .btn:not(.primary) { color: #fff; }
.sk-fw .sk-text span { display: block; opacity: .85; font-size: .9em; }

/* Cake tower (cake.js, 2026-11-08 — mini-game 30): a card at the top of the table chat; each one's cake on a stage */
.cake-win { margin: 6px 8px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(160deg, #fff0f6, #fde4ef); border: 1px solid #f48fb1; box-shadow: 0 3px 10px rgba(173, 20, 87, .15); }
.cake-win.done { background: linear-gradient(160deg, #fffde7, #fff3c4); border-color: #ffca28; }
.cake-head { display: flex; align-items: center; gap: 6px; }
.cake-head b { flex: 1; color: #ad1457; font-size: 14px; }
.cake-ico { font-size: 20px; }
.cake-time { font-style: normal; font-weight: 800; color: #c2185b; }
.cake-board { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.cake-row { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 12px; color: #4a0d2a; }
.cake-row b { color: #c2185b; }
.cake-row i { font-style: normal; font-weight: 700; }
.cake-row.me { box-shadow: inset 0 0 0 2px #ec407a; }
.cake-row.done { opacity: .7; }
.cake-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; font-size: 13px; color: #6a1b4d; text-align: center; }
.cake-note .cake-count { min-width: 30px; padding: 1px 8px; border-radius: 999px; background: #ec407a; color: #fff; }
.cake-join { padding: 6px 14px; }
.cake-stage { position: relative; display: block; width: 100%; height: 150px; margin-top: 6px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; touch-action: manipulation;
  background: linear-gradient(180deg, #fce4ec, #fff8fb 70%); box-shadow: inset 0 0 0 1px rgba(236, 64, 122, .25); }
.cake-stage[disabled] { cursor: default; }
.cake-layer { position: absolute; height: 14px; border-radius: 5px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .15); }
.cake-layer.plate { height: 6px; background: linear-gradient(90deg, #bdbdbd, #eeeeee, #bdbdbd); border-radius: 6px; }
.cake-layer.moving { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 0 0 2px rgba(236, 64, 122, .5); }
.cake-layer.fall { transition: transform .7s ease-in, opacity .7s ease-in; transform: translateY(160px) rotate(18deg); opacity: 0; }
.cake-stage.perfect { animation: cakePerfect .5s ease-out; }
@keyframes cakePerfect { 0% { box-shadow: inset 0 0 0 3px #ffd54f; } 100% { box-shadow: inset 0 0 0 1px rgba(236, 64, 122, .25); } }
.sk-cake .sk-text b { display: block; }

/* Daily scratch card (scratch.js, 2026-11-08 — mini-game 31): the card, its prize under a silver layer */
.sc-dlg { max-width: 360px; text-align: center; background: linear-gradient(180deg, #fff8e1, #ffecb3); }
.sc-big { font-size: 54px; line-height: 1.1; }
.sc-title { display: block; margin: 2px 0 6px; font-size: 18px; color: #e65100; }
.sc-of { display: block; margin-bottom: 6px; color: #8d6e63; }
.sc-text { margin: 8px 0 4px; font-size: 14px; color: #5d4037; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.sc-next { margin: 4px 0; color: #6d4c41; }
.sc-when { color: #e65100; }
.sc-card { position: relative; max-width: 100%; margin: 4px auto; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(230, 81, 0, .25), inset 0 0 0 3px #ffb300;
  background: radial-gradient(circle at 50% 40%, #fffde7, #ffe082 70%, #ffca28); }
.sc-prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.sc-party { font-size: 34px; }
.sc-prize .sc-chips { transform: scale(1.5); }
.sc-cover { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .6s ease-out; }
.sc-cover.gone { opacity: 0; pointer-events: none; }
.sc-card.won { animation: scWon .6s ease-out; }
@keyframes scWon { 40% { transform: scale(1.06); } }
.dialog.sc-dlg p.sc-text, .dialog.sc-dlg p.sc-next { color: #5d4037; font-size: 14px; font-weight: 600; text-shadow: none; -webkit-text-stroke: 0; line-height: 1.5; }

/* the odds of a paid-chance mini-game (odds.js, 2026-11-08 — Google Play: shown before paying) */
.odds-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #5f3dc4; font-size: 15px; font-weight: 900; line-height: 1; cursor: pointer; pointer-events: auto; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); flex: none; }
.odds-btn:hover { background: #fff; transform: scale(1.08); }
.sack-odds { position: absolute; z-index: 8; transform: translate(calc(-50% + clamp(26px, calc(var(--u, 1px) * 38), 40px)), calc(-50% - clamp(20px, calc(var(--u, 1px) * 30), 32px))); }
.bl-odds { position: absolute; z-index: 9; top: 8px; inset-inline-start: 8px; }
.pk-odds { margin-top: 2px; }
.mem-odds { width: 22px; height: 22px; font-size: 13px; }
/* the prizes' chances beside a free table game (2026-11-09, the owner: a % for each prize) */
.tgt-odds { width: 22px; height: 22px; font-size: 13px; }
.hb-odds, .mb-odds { position: absolute; z-index: 2; top: -4px; inset-inline-end: -10px; width: 22px; height: 22px; font-size: 13px; }
.mb-prize { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 4px; font-size: 14px; }
.mg-odds { margin-inline-end: 4px; }
.odds-box { display: grid; gap: 8px; margin: 6px 0 10px; }
.odds-head { margin: 0; font-size: 13px; opacity: .95; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.odds-list > div > span:last-child { font-weight: 900; min-width: 48px; text-align: end; }
.odds-prize, .odds-range, .odds-empty { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.odds-empty { opacity: .9; font-weight: 700; }
.odds-rare { padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .25); font-size: 11px; font-weight: 800; }

/* the cookie notice (consent.js): a card at the bottom, above everything, never over the whole game */
.ck { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 9000; max-width: 440px; margin-inline: auto; padding: 14px 16px; background: #fff; color: #2b2140;
  border-radius: 18px; box-shadow: 0 18px 50px -12px rgba(30, 10, 70, .45); font-size: 13.5px; line-height: 1.5; }
.ck-top b { font-size: 15px; }
.ck p { margin: 6px 0 10px; } .ck p a { color: #6b2ff8; font-weight: 700; }
.ck-opts { display: none; gap: 8px; flex-direction: column; margin-bottom: 10px; }
.ck.more .ck-opts { display: flex; }
.ck-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: #f6f2ff; }
.ck-opt input { margin-top: 3px; } .ck-opt span { display: grid; } .ck-opt small { color: #6b6a92; font-size: 12px; }
.ck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ck-btns button { height: 40px; border-radius: 12px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(45, 31, 133, .2); color: #38299a; font-weight: 800; cursor: pointer; }
.ck-btns .ck-yes { background: linear-gradient(90deg, #d5157c, #6b2ff8 50%, #2a5ff0); color: #fff; box-shadow: none; }
.ck-btns .ck-more { grid-column: span 2; background: transparent; }
.ck.more .ck-more { display: none; } .ck-save { display: none; grid-column: span 2; } .ck.more .ck-save { display: block; }
/* Rock Paper Scissors (rps.js): the duel window — the score between the two, three big hands to choose, both shown together.
   The play row (faces, score, hands) is never mirrored in Arabic: a's hand stays under a's face. */
.rps-vs, .rps-picks, .rps-reveal { direction: ltr; }
.rps-score { font-weight: 900; font-size: 18px; color: #c2185b; min-width: 54px; letter-spacing: 1px; }
.rps-win .du-face.rps-chose img { box-shadow: 0 0 0 3px #66bb6a; }
.rps-picks { display: flex; justify-content: center; gap: 8px; margin: 4px 0 2px; }
.rps-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 70px; height: 70px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 2px #f8bbd0, 0 3px 0 #f48fb1; color: #4a0d2a; font: inherit; cursor: pointer; touch-action: manipulation; transition: transform .12s, box-shadow .12s, opacity .2s; }
.rps-btn .rps-emo { font-size: 32px; line-height: 1.1; }
.rps-btn small { font-size: 11px; font-weight: 700; }
.rps-btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px #ec407a, 0 5px 0 #ec407a; }
.rps-btn:not(:disabled):active { transform: translateY(2px); box-shadow: inset 0 0 0 2px #ec407a, 0 1px 0 #ec407a; }
.rps-btn:disabled { cursor: default; opacity: .45; }
.rps-btn.on { opacity: 1; background: linear-gradient(160deg, #fff, #ffe082); box-shadow: inset 0 0 0 3px #ffb300, 0 3px 0 #ffa000; transform: scale(1.06); }
.rps-status { min-height: 16px; color: #2e7d32; font-weight: 700; }
.rps-how { opacity: .8; }
.rps-reveal { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 2px 0; }
.rps-hand { font-size: 46px; line-height: 1.15; animation: rpsShake .5s ease-out; }
.rps-hand.win { filter: drop-shadow(0 0 8px #ffca28); transform: scale(1.15); }
.rps-hand.lose { opacity: .55; }

.rps-mid { font-size: 18px; color: #c2185b; }
@keyframes rpsShake { 0% { transform: translateY(-14px) rotate(-12deg); opacity: .2; } 40% { transform: translateY(4px) rotate(6deg); opacity: 1; } 100% { transform: none; } }
.rps-prize { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; font-weight: 700; font-size: 13px; }
.rps-prize .rw-chips { margin: 0; }
.rps-odds { margin-inline-start: 2px; vertical-align: middle; }
.sk-event.sk-rps { background: linear-gradient(135deg, #fff2f7, #ffe0b2 70%); border-color: #fb8c00; }
.sk-rps .sk-text b { color: #bf360c; }
.sk-rps .rw-chips { margin-top: 2px; }
/* Mystery gift (secretgift.js, 2026-11-12): the wrapped box on a seat (under the kiss scene), the holder's window, the card */
.mbx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: visible; }
.mbx-seat { position: absolute; transform: translate(-50%, -70%); line-height: 1; filter: drop-shadow(0 3px 7px rgba(74, 20, 140, .55)); animation: mbxIn .55s cubic-bezier(.2, 1.4, .4, 1), mbxShake 2.2s ease-in-out .6s infinite; transition: opacity .4s; }
.mbx-seat.out { opacity: 0; }
.mbx-seat.burst { animation: mbxBurst .7s ease-out forwards; }
.mbx-q { position: absolute; right: -.4em; top: -.25em; font-size: .45em; font-weight: 800; color: #fff; background: linear-gradient(135deg, #8e24aa, #d81b60); border-radius: 50%; width: 1.4em; height: 1.4em; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
@keyframes mbxIn { from { transform: translate(-50%, -10%) scale(.2) rotate(-25deg); opacity: 0; } to { transform: translate(-50%, -70%) scale(1); opacity: 1; } }
@keyframes mbxShake { 0%, 70%, 100% { transform: translate(-50%, -70%) rotate(0); } 76% { transform: translate(-50%, -74%) rotate(-9deg); } 82% { transform: translate(-50%, -74%) rotate(9deg); } 88% { transform: translate(-50%, -72%) rotate(-5deg); } 94% { transform: translate(-50%, -71%) rotate(4deg); } }
@keyframes mbxBurst { 0% { transform: translate(-50%, -70%) scale(1); opacity: 1; } 40% { transform: translate(-50%, -80%) scale(1.45); opacity: 1; } 100% { transform: translate(-50%, -90%) scale(2.1); opacity: 0; } }
.mbx-dlg { max-width: 340px; text-align: center; background: linear-gradient(180deg, #f8f0ff, #fce4ec); }
.mbx-big { font-size: 58px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(142, 36, 170, .45)); animation: hbBeat 1.2s ease-in-out infinite; }
.mbx-dlg > b { display: block; margin-top: 6px; color: #6a1b9a; font-size: 17px; }
.mbx-from { margin: 4px 0 10px; color: #ad1457; font-size: 13px; }
.mbx-btns { display: flex; justify-content: center; gap: 10px; }
.mbx-btns button { min-width: 112px; padding: 10px 14px; border: 0; border-radius: 22px; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer; touch-action: manipulation; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.mbx-open { background: linear-gradient(135deg, #43a047, #2e7d32); }
.mbx-pass { background: linear-gradient(135deg, #7e57c2, #5e35b1); }
.mbx-btns button:disabled { opacity: .6; }
.mbx-sub { margin: 8px 0 0; color: #6a1b9a; font-size: 12px; }
.mbx-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; max-height: 210px; overflow-y: auto; }
.mbx-person { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 78px; padding: 6px 4px; border: 2px solid #e1bee7; border-radius: 14px; background: #fff; cursor: pointer; touch-action: manipulation; }
.mbx-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.mbx-person span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #4a148c; }
.mbx-person:disabled { opacity: .5; }
.mbx-back { margin-top: 8px; border: 0; background: none; color: #6a1b9a; font-size: 13px; text-decoration: underline; cursor: pointer; }
.mbx-time { display: block; margin-top: 8px; color: #8e24aa; font-style: normal; font-weight: 700; }
.mbx-banner { display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #f3e5f5, #fce4ec); color: #4a148c; }
.mbx-banner-ico { font-size: 20px; }
.sk-event.sk-mbox { background: linear-gradient(135deg, #f8f0ff, #e1bee7 60%, #f8bbd0); border-color: #8e24aa; }
.sk-mbox .sk-text b { color: #4a148c; }
.sk-mbox .sk-text small { color: #6a1b9a; }
.mbx-gift .mbx-pic { width: 34px; height: 34px; object-fit: contain; }
.mbx-banner b { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.mbx-coin { width: 16px; height: 16px; flex: none; }
/* Lucky wheel (wheel.js, 2026-11-12): the window before paying, the wheel over a seat (under the kiss scene), the burst, the card */
.whl-dlg { max-width: 340px; text-align: center; background: linear-gradient(180deg, #fff8e1, #fce4ec); }
.whl-big { font-size: 54px; line-height: 1; animation: whlTurn 6s linear infinite; display: inline-block; }
@keyframes whlTurn { to { transform: rotate(360deg); } }
.whl-dlg > b { display: block; margin-top: 6px; color: #6a1b9a; font-size: 17px; }
.whl-for { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 2px; color: #4a148c; font-weight: 700; }
.whl-for img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.whl-sub { margin: 4px 0 8px; color: #ad1457; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.whl-again { margin: 0 0 8px; color: #e65100; font-size: 12px; font-weight: 700; }
.whl-btns { display: flex; justify-content: center; gap: 10px; }
.whl-go { display: inline-flex; align-items: center; gap: 4px; padding: 10px 18px; border: 0; border-radius: 22px; font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff7043, #d81b60); cursor: pointer; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.whl-go .price { color: #fff; }
.whl-no { padding: 10px 14px; border: 0; border-radius: 22px; background: #ede7f6; color: #4a148c; font-weight: 700; cursor: pointer; }
.whl-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: visible; }
.whl { position: absolute; transform: translate(-50%, -50%); animation: whlIn .35s ease-out; transition: opacity .45s, transform .45s; }
.whl.out { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.whl-disc { position: absolute; inset: 0; border-radius: 50%; border: .18em solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 0 0 .08em rgba(255, 255, 255, .5); }
.whl-face { position: absolute; left: 50%; top: 50%; width: 1.4em; height: 1.4em; margin: -.7em 0 0 -.7em; display: grid; place-items: center; line-height: 1; }
.whl-face { transform-origin: center; }
.whl-pin { position: absolute; left: 50%; top: -.35em; width: 0; height: 0; margin-left: -.35em; border-left: .35em solid transparent; border-right: .35em solid transparent; border-top: .6em solid #fff; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); z-index: 2; }
.whl-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1.5em; height: 1.5em; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .8em; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); }
.whl.done .whl-disc { box-shadow: 0 0 0 .12em #ffd54f, 0 4px 18px rgba(255, 193, 7, .7); }
@keyframes whlIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.whl-hit { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; line-height: 1; animation: whlHit .6s cubic-bezier(.2, 1.5, .4, 1); transition: opacity .5s; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.whl-hit.out { opacity: 0; }
.whl-hit-txt { margin-top: 6px; padding: 3px 10px; border-radius: 12px; background: rgba(74, 20, 140, .9); color: #fff; font-size: 15px; font-weight: 800; white-space: nowrap; }
/* the seat's ring of light when the slice lands (2026-11-12: bigger and longer, seen on a phone) */
.whl-ring { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 4px solid #ffd54f; box-shadow: 0 0 18px #ffca28, inset 0 0 12px #fff59d; animation: whlRing 1.2s ease-out forwards; }
@keyframes whlRing { to { transform: scale(4.2); opacity: 0; } }
.whl-hit.gold .whl-hit-emo { filter: drop-shadow(0 0 10px #ffd54f) drop-shadow(0 0 18px #ffb300); animation: hbBeat 1s ease-in-out infinite; }
.whl-hit.gold .whl-hit-txt { background: linear-gradient(135deg, #ffb300, #f57f17); }
@keyframes whlHit { from { transform: translate(-50%, -50%) scale(.2); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.whl-bit { position: absolute; transform: translate(-50%, -50%); animation: whlBit 1.25s ease-out forwards; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
@keyframes whlBit { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4); opacity: 0; } }
.sk-event.sk-whl { background: linear-gradient(135deg, #fff8e1, #ffe082 60%, #ffca28); border-color: #f57f17; }
.sk-whl .sk-text b { color: #6d4c41; }
.odds-slice b { font-size: 1.15em; }
.dialog-wrap.whl-wrap { z-index: 55; } /* under the odds window (z 60) that its «ⓘ» opens */


/* ───────────────────────────────────────────────────────────────────────────────────────────────────────────── */
/* «الفتيل» — the burning fuse (fuse.js, mini-game 35, 2026-11-15, the owner): Cupid's own shape — the lit heart   */
/* over the bottle, two taps to aim, and the heart passed from seat to seat until it bursts on whoever holds it.   */
.fuse-prop { position: absolute; left: 50%; bottom: calc(100% - 30 * var(--u)); z-index: 5; width: calc(76 * var(--u)); height: calc(72 * var(--u)); transform: translateX(-50%); pointer-events: none; }
.bottle-wrap:has(.fuse-prop) .rent-name { margin-bottom: calc(26 * var(--u)); }
.fs-heart { position: absolute; inset: 0; background: url("../img/fuse/heart.webp") center / contain no-repeat; filter: drop-shadow(0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(90, 20, 0, .45)); transform-origin: 50% 85%; animation: fsIdle 2.4s ease-in-out infinite alternate; }
@keyframes fsIdle { from { transform: scale(1); } to { transform: scale(1.04); filter: drop-shadow(0 0 calc(7 * var(--u)) rgba(255, 140, 40, .6)); } }
.fuse-prop.lifted .fs-heart { animation: fsLift .8s ease-in-out infinite alternate; }
@keyframes fsLift { from { transform: rotate(-4deg); } to { transform: translateY(calc(-6 * var(--u))) rotate(5deg) scale(1.1); filter: drop-shadow(0 0 calc(9 * var(--u)) rgba(255, 150, 40, .9)); } }
.sp-take.fs-take { bottom: calc(-17 * var(--u)); background: linear-gradient(180deg, #ff8a5c, #d1361b); border-color: #ffe2d6; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(110, 30, 0, .5), inset 0 calc(1 * var(--u)) 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 1px rgba(90, 20, 0, .5); }
.fuse-prop.lifted .fs-take { background: linear-gradient(180deg, #ffd166, #f08a00); }
.fs-help { position: absolute; right: calc(-6 * var(--u)); top: calc(2 * var(--u)); pointer-events: auto; cursor: pointer; width: max(18px, calc(20 * var(--u))); height: max(18px, calc(20 * var(--u))); border-radius: 50%;
  border: calc(1.5 * var(--u)) solid #fff; background: #d1361b; color: #fff; font: 700 max(11px, calc(12 * var(--u)))/1 inherit; display: grid; place-items: center; padding: 0; box-shadow: 0 2px 5px rgba(110, 30, 0, .45); }
.fs-help:hover { filter: brightness(1.1); }
/* aiming: the seats one may pick light up, the first one keeps its mark */
.ring-box.fuse-aim .seat.fs-target { cursor: pointer; }
.ring-box.fuse-aim .seat.fs-target .seat-photo { outline: calc(2 * var(--u)) solid #ffa552; outline-offset: calc(2 * var(--u)); animation: fsTarget 1.1s ease-in-out infinite alternate; }
@keyframes fsTarget { from { box-shadow: 0 0 calc(6 * var(--u)) #ff7a1a; } to { box-shadow: 0 0 calc(18 * var(--u)) #ffd9b0, 0 0 calc(4 * var(--u)) #fff; } }
.ring-box.fuse-aim .seat.fs-first { opacity: 1 !important; }
.ring-box.fuse-aim .seat.fs-first .seat-photo { outline: calc(3 * var(--u)) solid #ff4d1a; outline-offset: calc(2 * var(--u)); box-shadow: 0 0 calc(16 * var(--u)) #ff4d1a; }
.ring-box.fuse-aim .seat.fs-first::after { content: "🧨"; position: absolute; left: 50%; top: calc(-14 * var(--u)); transform: translateX(-50%); font-size: calc(18 * var(--u)); z-index: 8; pointer-events: none; }
.ring-box.fuse-aim .snow-target-price.fs-price { background: #d1361b; }
.ring-box.fuse-aim .snow-aim-hint { background: rgba(110, 40, 10, .9); }
/* the heart with its burning cord, standing on the seat that holds it */
.fs-fuse { position: absolute; z-index: 9; width: calc(46 * var(--u, 1px)); height: calc(52 * var(--u, 1px)); transform: translate(-50%, -50%); pointer-events: none; }
.fs-fuse .fs-body { position: absolute; left: 0; right: 0; bottom: 0; height: calc(38 * var(--u, 1px)); background: url("../img/fuse/heart.webp") center bottom / contain no-repeat; filter: drop-shadow(0 calc(2 * var(--u, 1px)) calc(3 * var(--u, 1px)) rgba(60, 10, 0, .55)); }
.fs-fuse.mine { pointer-events: auto; cursor: pointer; }
.fs-fuse.mine .fs-body { animation: fsMine .7s ease-in-out infinite alternate; }
@keyframes fsMine { from { transform: scale(1); } to { transform: scale(1.12); filter: drop-shadow(0 0 calc(9 * var(--u, 1px)) rgba(255, 170, 60, .95)); } }
/* the cord: a bar that runs down over the NOMINAL length of the fuse (the real moment is the server's secret) */
.fs-cord { position: absolute; left: 50%; top: 0; width: calc(26 * var(--u, 1px)); height: calc(6 * var(--u, 1px)); transform: translateX(-50%); border-radius: 999px; background: rgba(60, 40, 20, .35); }
.fs-burn { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #f6e2b8, #d9b170); width: calc(var(--fs-k, 1) * 100%); animation: fsBurn var(--fs-ms, 25000ms) linear forwards; }
@keyframes fsBurn { to { width: 0; } }
.fs-flame { position: absolute; top: 50%; left: calc(var(--fs-k, 1) * 100%); width: calc(9 * var(--u, 1px)); height: calc(9 * var(--u, 1px)); border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff6c2 0 30%, #ffb300 60%, rgba(255, 90, 0, 0) 72%); animation: fsFlameX var(--fs-ms, 25000ms) linear forwards, fsFlame .35s ease-in-out infinite alternate; }
@keyframes fsFlameX { to { left: 0; } }
@keyframes fsFlame { from { transform: translate(-50%, -50%) scale(.85); } to { transform: translate(-50%, -50%) scale(1.25); } }
/* the fuse reached the end of its drawn length: it sputters until the burst really comes */
.fs-fuse.sputter .fs-burn { width: 0; }
.fs-fuse.sputter .fs-flame { left: 0; animation: fsSputter .22s steps(2) infinite; }
@keyframes fsSputter { from { opacity: 1; transform: translate(-50%, -50%) scale(1.3); } to { opacity: .45; transform: translate(-50%, -50%) scale(.8); } }
.fs-fuse.flying { pointer-events: none; }
.fs-fuse.flying .fs-body { animation: fsSpin .6s linear; }
@keyframes fsSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.fs-fuse.bursting { opacity: 0; transition: opacity .2s linear; }
.fs-spark { position: absolute; z-index: 9; pointer-events: none; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff3c0, #ff8a00 60%, #c23b00); box-shadow: 0 0 4px #ff8a00; }
.fs-pop { position: absolute; z-index: 9; pointer-events: none; line-height: 1; }
.fs-burst { position: absolute; z-index: 10; pointer-events: none; background: url("../img/fuse/burst.webp") center / contain no-repeat; }
/* the soot the burst leaves on that seat (table.js sootEl): it is wiped off in its last seconds */
.seat-fx.soot { display: block; overflow: hidden; animation: sootGone 1.6s ease-in var(--gone, 0ms) forwards; }
.seat-fx.soot > i { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
/* (a SMUDGE, not a blackout: the player must stay recognisable under it — seen on the table 2026-11-15) */
.soot-tex { background: url("../img/fuse/soot.webp") center / 112% 112% no-repeat; mix-blend-mode: multiply; opacity: .62; }
.seat-fx.soot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .22), transparent 46%); pointer-events: none; }
.soot-ember { background: radial-gradient(circle at 34% 72%, rgba(255, 120, 20, .5), transparent 20%), radial-gradient(circle at 66% 44%, rgba(255, 90, 10, .35), transparent 16%); animation: sootEmber 2.6s ease-in-out infinite alternate; }
@keyframes sootEmber { from { opacity: .45; } to { opacity: .9; } }
@keyframes sootGone { to { opacity: 0; filter: blur(calc(2 * var(--u))); } }
.seat-fx.soot.fresh { animation: sootIn .55s ease-out both, sootGone 1.6s ease-in var(--gone, 0ms) forwards; }
@keyframes sootIn { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: scale(1); } }
.seat:has(> .seat-fx.soot) .seat-name { filter: grayscale(.7); opacity: .8; }
/* the card in the table chat, and the how-to-play card */
.sk-event.sk-fuse { background: linear-gradient(135deg, #fff6ef, #ffe0cd 60%, #ffc2a3); border-color: #ef7043; box-shadow: 0 3px 10px rgba(180, 60, 10, .25), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.sk-fuse .sk-text b { color: #8a2f0f; }
.sk-fuse .sk-bag img { width: 32px; height: 32px; display: block; }
.dialog.fuse-guide { max-width: 360px; text-align: center; background: linear-gradient(180deg, #fff8f3, #ffe7d8); border: 2px solid #f8b795; }
.dialog.fuse-guide .cg-title { color: #a8390f; }
.dialog.fuse-guide .cg-n { background: #d1361b; }
.dialog.fuse-guide .cg-ok { background: linear-gradient(180deg, #ff9a6b, #d1361b) !important; border-color: #d1361b !important; }
@media (prefers-reduced-motion: reduce) { .fs-heart, .fs-fuse .fs-body, .fs-flame, .soot-ember { animation: none; } }

/* ── The magic mirror (lovemirror.js, 2026-11-15, the owner — Cupid's shape with a vote of the whole table) ───── */
.lovemirror-prop { position: absolute; left: 50%; bottom: calc(100% - 34 * var(--u)); z-index: 5; width: calc(48 * var(--u)); height: calc(90 * var(--u)); transform: translateX(-50%); pointer-events: none; }
.bottle-wrap:has(.lovemirror-prop) .rent-name { margin-bottom: calc(26 * var(--u)); }
.lm-glass { position: absolute; inset: 0; display: block; background: url("../img/lovemirror/mirror.webp") center / contain no-repeat; filter: drop-shadow(0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(80, 40, 0, .45)); transform-origin: 50% 85%; }
.lovemirror-prop.lifted .lm-glass { animation: lmLift .9s ease-in-out infinite alternate; }
@keyframes lmLift { from { transform: rotate(-4deg); } to { transform: translateY(calc(-6 * var(--u))) rotate(5deg) scale(1.08); filter: drop-shadow(0 0 calc(8 * var(--u)) rgba(255, 215, 120, .9)); } }
.sp-take.lm-take { bottom: calc(-14 * var(--u)); background: linear-gradient(180deg, #ffd98a, #c98b14); border-color: #fff3d6; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(90, 55, 0, .5), inset 0 calc(1 * var(--u)) 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 1px rgba(90, 50, 0, .5); }
.lovemirror-prop.lifted .lm-take { background: linear-gradient(180deg, #ffe9a8, #f0a000); }
.lm-help { position: absolute; right: calc(-6 * var(--u)); top: calc(2 * var(--u)); pointer-events: auto; cursor: pointer; width: max(18px, calc(20 * var(--u))); height: max(18px, calc(20 * var(--u))); border-radius: 50%;
  border: calc(1.5 * var(--u)) solid #fff; background: #b4791a; color: #fff; font: 700 max(11px, calc(12 * var(--u)))/1 inherit; display: grid; place-items: center; padding: 0; box-shadow: 0 2px 5px rgba(90, 50, 0, .45); }
.lm-help:hover { filter: brightness(1.1); }
/* aiming: the lit seats and the first one picked */
.ring-box.lovemirror-aim .seat.lm-target { cursor: pointer; }
.ring-box.lovemirror-aim .seat.lm-target .seat-photo { outline-color: #ffd98a; animation-name: lmTarget; }
@keyframes lmTarget { from { box-shadow: 0 0 calc(6 * var(--u)) #f0b429; } to { box-shadow: 0 0 calc(18 * var(--u)) #ffe9b0, 0 0 calc(4 * var(--u)) #fff; } }
.ring-box.lovemirror-aim .seat.lm-first { opacity: 1 !important; }
.ring-box.lovemirror-aim .seat.lm-first .seat-photo { outline: calc(3 * var(--u)) solid #e8a200; outline-offset: calc(2 * var(--u)); box-shadow: 0 0 calc(16 * var(--u)) #ffc83d; }
.ring-box.lovemirror-aim .seat.lm-first::after { content: "🪞"; position: absolute; left: 50%; top: calc(-14 * var(--u)); transform: translateX(-50%); font-size: calc(18 * var(--u)); z-index: 8; pointer-events: none; }
.ring-box.lovemirror-aim .lm-price { background: #a9700d; }
.ring-box.lovemirror-aim .snow-aim-hint { background: rgba(80, 48, 0, .92); }
/* the frame with the two faces and the vote bar, over the table */
.lm-frame { position: absolute; z-index: 9; transform: translate(-50%, -50%); pointer-events: auto; display: grid; gap: calc(4 * var(--u)); justify-items: center;
  padding: calc(8 * var(--u)) calc(10 * var(--u)) calc(7 * var(--u)); border-radius: calc(14 * var(--u));
  border: calc(3 * var(--u)) solid #e3b24a; background: linear-gradient(170deg, rgba(42, 16, 36, .93), rgba(20, 8, 24, .95));
  box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, .55), inset 0 0 calc(10 * var(--u)) rgba(255, 215, 130, .25); }
.lm-frame.born { animation: lmBorn .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes lmBorn { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.lm-frame.closing { opacity: .6; }
.lm-faces { display: flex; align-items: center; gap: calc(5 * var(--u)); }
.lm-face { display: grid; justify-items: center; gap: calc(2 * var(--u)); width: calc(46 * var(--u)); }
.lm-face img { width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: 50%; object-fit: cover; border: calc(2 * var(--u)) solid #ffd98a; background: #2a1024; }
.lm-face b { font-size: calc(9 * var(--u)); color: #ffe9c0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-vs { font-size: calc(16 * var(--u)); line-height: 1; filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(255, 215, 130, .8)); }
.lm-ask { font-size: calc(9.5 * var(--u)); color: #ffd3e8; }
.lm-meter { position: relative; width: calc(104 * var(--u)); height: calc(9 * var(--u)); border-radius: calc(5 * var(--u)); overflow: hidden; background: linear-gradient(90deg, #6d2740, #3a1030); border: 1px solid rgba(255, 215, 130, .5); }
.lm-bar { position: absolute; inset: 0 auto 0 0; width: calc(var(--lm-pct, 50) * 1%); background: linear-gradient(90deg, #ff4d84, #ff9ec4); transition: width .3s ease; }
.lm-counts { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(4 * var(--u)); font-size: calc(7.5 * var(--u)); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.lm-counts b.bump { animation: lmBump .35s ease; }
@keyframes lmBump { 50% { transform: scale(1.5); } }
.lm-btns { display: flex; gap: calc(8 * var(--u)); }
.lm-btn { cursor: pointer; border: calc(2 * var(--u)) solid #fff3d6; border-radius: calc(9 * var(--u)); padding: calc(2 * var(--u)) calc(9 * var(--u)); font-size: calc(14 * var(--u)); line-height: 1.2; background: linear-gradient(180deg, #ff7fb0, #c2185b); }
.lm-btn.lm-bad { background: linear-gradient(180deg, #8d9db5, #46556b); }
.lm-btn:hover { filter: brightness(1.12); }
.lm-frame.voted .lm-btns { display: none; }
.lm-sand { position: absolute; left: 0; bottom: 0; height: calc(3 * var(--u)); width: calc(var(--lm-left, 100) * 1%); background: linear-gradient(90deg, #ffd98a, #ff4d84); border-radius: 0 0 0 calc(10 * var(--u)); transition: width .3s linear; }
.lm-result { font-size: calc(10 * var(--u)); font-weight: 700; color: #ffe9c0; }
.lm-frame.won { border-color: #ffd700; box-shadow: 0 0 calc(22 * var(--u)) rgba(255, 215, 0, .7), inset 0 0 calc(12 * var(--u)) rgba(255, 215, 130, .4); }
.lm-frame.lost { border-color: #6b7280; }
.lm-frame.lost .lm-result { color: #cbd5e1; }
.lm-pop { position: absolute; z-index: 10; pointer-events: none; line-height: 1; }
/* «ثنائي الجلسة»: the badge on both avatars */
.seat.lm-couple .seat-photo { outline: calc(2 * var(--u)) solid #ff4d84; outline-offset: calc(1 * var(--u)); }
.lm-badge { position: absolute; right: calc(-2 * var(--u)); top: calc(-4 * var(--u)); z-index: 9; font-size: calc(14 * var(--u)); line-height: 1; pointer-events: none; filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(255, 90, 150, .9)); animation: lmBadge 1.8s ease-in-out infinite; }
@keyframes lmBadge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
/* the card in the table chat, and the how-to-play card */
.sk-event.sk-lovemirror { background: linear-gradient(135deg, #f8f4ff, #e8dcff 60%, #d9c7ff); border-color: #9575cd; }
.sk-event.sk-lovemirror.won { background: linear-gradient(135deg, #fff7e6, #ffe3b0 60%, #ffd27a); border-color: #e8a200; box-shadow: 0 3px 10px rgba(180, 120, 0, .3); }
.sk-lovemirror .sk-text b { color: #4a2d7a; }
.sk-lovemirror.won .sk-text b { color: #7a4a00; }
.sk-lovemirror .sk-bag { font-size: 26px; }
.dialog.lovemirror-guide { max-width: 360px; text-align: center; background: linear-gradient(180deg, #fff9ef, #ffeccd); border: 2px solid #e8c88a; }
.lovemirror-guide .cg-mirror { display: block; width: 92px; height: auto; margin: -6px auto 2px; filter: drop-shadow(0 4px 8px rgba(160, 90, 30, .3)); }
.lovemirror-guide .cg-title { color: #8a5a00; }
