diff --git a/apps/web/src/games/halli-galli/index.tsx b/apps/web/src/games/halli-galli/index.tsx index 60ca314..cdb667f 100644 --- a/apps/web/src/games/halli-galli/index.tsx +++ b/apps/web/src/games/halli-galli/index.tsx @@ -50,6 +50,7 @@ const CSS = ` padding: 4px 5px 5px; border-radius: 16px; background: rgba(0,0,0,.2); color: #fff; border: 3px solid transparent; z-index: 2; transition: background .3s ease; } .hg-seat[data-me='true'] { background: rgba(0,0,0,.34); } .hg-seat[data-turn='true'] { border-color: #fde047; animation: hg-blink 1.1s ease-in-out infinite; } +.hg-seat .nm { margin-top: 6px; } .hg-seat[data-out='true'] { opacity: .55; } .hg-seat[data-win='true'] { background: rgba(250,204,21,.38); } .hg-seat .nm { display: flex; align-items: center; gap: 4px; max-width: 100%; font-weight: 800; font-size: .86rem; line-height: 1.2; } @@ -69,12 +70,12 @@ const CSS = ` .hg-pile .face > .b { transform: rotateY(180deg); } .hg-pile .face[data-anim='true'] { animation: hg-flipin .5s cubic-bezier(.3,.7,.3,1) both; } .hg-pile .gauge { position: absolute; right: -12px; bottom: -8px; width: 30px; height: 30px; z-index: 2; } -.hg-turnchip { position: absolute; top: -21px; left: 50%; transform: translateX(-50%); background: #fde047; color: #422006; font-weight: 900; font-size: .72rem; border-radius: 999px; +.hg-turnchip { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: #fde047; color: #422006; font-weight: 900; font-size: .72rem; border-radius: 999px; padding: 1px 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); animation: hg-bob 1.1s ease-in-out infinite; pointer-events: none; } .hg-float { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-weight: 900; font-size: 1.35rem; color: #fde047; text-shadow: 0 2px 0 #713f12, 0 0 8px rgba(0,0,0,.5); pointer-events: none; animation: hg-float 1.3s ease-out forwards; z-index: 4; white-space: nowrap; } .hg-float.bad { color: #fecaca; text-shadow: 0 2px 0 #7f1d1d, 0 0 8px rgba(0,0,0,.5); } -.hg-hand { position: absolute; width: calc(var(--bell) * .5); height: calc(var(--bell) * .5); transform: translate(-50%, -50%); z-index: 6; pointer-events: none; +.hg-hand { position: absolute; width: calc(var(--bell) * .5); height: calc(var(--bell) * .5); transform: translate(-50%, -50%); z-index: 8; pointer-events: none; animation: hg-slap .42s cubic-bezier(.5,.05,.4,1) forwards; left: var(--fx); top: var(--fy); } .hg-hand svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); } .hg-wave { position: absolute; left: 50%; top: 50%; width: var(--bell); height: var(--bell); border-radius: 50%; transform: translate(-50%, -50%) scale(.9); border: 6px solid #fde047; @@ -564,7 +565,7 @@ function HalliGalliBoard({ view: v, me, players, act, pending }: BoardProps= 5; const cw = phone ? (many ? 40 : 50) : many ? 64 : 80; const sw = Math.round(cw * 1.72 + 6 + 12); - const pos = seatPositions(rot.length, { w: sw, h: cw * 1.4 + (phone ? 50 : 58) + 34 }, phone ? 400 : 400, phone); + const pos = seatPositions(rot.length, { w: sw, h: cw * 1.4 + (phone ? 50 : 58) + 8 }, phone ? 400 : 400, phone); const posOf = (id: string) => pos[rot.findIndex((s) => s.id === id)] ?? CENTER; const mine = v.seats.find((s) => s.id === me) ?? null; const playing = v.phase === 'playing';