diff --git a/client/src/views/DemoGame.vue b/client/src/views/DemoGame.vue index ad2dbe7..2cbb559 100644 --- a/client/src/views/DemoGame.vue +++ b/client/src/views/DemoGame.vue @@ -54,6 +54,15 @@ + + +
@@ -232,4 +241,11 @@ function leaveGame() { .spinner { width:40px; height:40px; border: 4px solid #eee; border-top:4px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 8px; } @keyframes spin { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} } .outcome-box { display:flex; gap: 24px; background:#f5f5f5; padding: 12px; border-radius: 8px; } + +/* Full-screen overlay while paused */ +.pause-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display:flex; align-items:center; justify-content:center; z-index: 1000; } +.pause-box { background: white; color:#333; border-radius: 16px; padding: 24px 32px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.4); } +.pause-box .icon { font-size: 48px; margin-bottom: 8px; } +.pause-box .title { font-weight: 800; font-size: 20px; } +.pause-box .hint { margin-top: 6px; color:#666; font-size: 14px; } diff --git a/server/src/rooms/GameRoom.ts b/server/src/rooms/GameRoom.ts index 14cdb21..7e840d9 100644 --- a/server/src/rooms/GameRoom.ts +++ b/server/src/rooms/GameRoom.ts @@ -252,7 +252,24 @@ export class GameRoom extends Room