dvc890 commited on
Commit
d3d03bf
·
verified ·
1 Parent(s): c7f931f

Upload 45 files

Browse files
components/Emoji.tsx ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import React, { memo } from 'react';
3
+
4
+ interface EmojiProps {
5
+ symbol: string;
6
+ className?: string;
7
+ size?: number | string;
8
+ }
9
+
10
+ // 将 Unicode 转换为 Twemoji 兼容的 Hex 文件名
11
+ const getEmojiHex = (emoji: string) => {
12
+ try {
13
+ const codePoints = Array.from(emoji).map(char => char.codePointAt(0)!.toString(16));
14
+ // Twemoji 文件名规范:小写,去除 fe0f (变体选择符),用 - 连接
15
+ return codePoints.filter(c => c !== 'fe0f').join('-');
16
+ } catch (e) {
17
+ return null;
18
+ }
19
+ };
20
+
21
+ export const Emoji: React.FC<EmojiProps> = memo(({ symbol, className = '', size }) => {
22
+ // 如果不是 Emoji (比如纯数字或字母),直接渲染文本
23
+ const isEmoji = /\p{Emoji}/u.test(symbol);
24
+
25
+ if (!isEmoji) {
26
+ return <span className={className} style={{ fontSize: size }}>{symbol}</span>;
27
+ }
28
+
29
+ const hex = getEmojiHex(symbol);
30
+
31
+ // 备用方案:如果转换失败,回退到原生显示
32
+ if (!hex) {
33
+ return <span className={className} style={{ fontSize: size }}>{symbol}</span>;
34
+ }
35
+
36
+ const url = `https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${hex}.svg`;
37
+
38
+ return (
39
+ <img
40
+ src={url}
41
+ alt={symbol}
42
+ className={`inline-block align-middle select-none pointer-events-none object-contain ${className}`}
43
+ style={{
44
+ width: size || '1em',
45
+ height: size || '1em',
46
+ verticalAlign: '-0.1em' // 微调对齐
47
+ }}
48
+ onError={(e) => {
49
+ // 加载失败时隐藏图片,显示原生字符
50
+ e.currentTarget.style.display = 'none';
51
+ const span = document.createElement('span');
52
+ span.innerText = symbol;
53
+ span.className = className || '';
54
+ e.currentTarget.parentElement?.insertBefore(span, e.currentTarget);
55
+ }}
56
+ />
57
+ );
58
+ });
pages/AchievementStudent.tsx CHANGED
@@ -3,6 +3,7 @@ import React, { useState, useEffect } from 'react';
3
  import { api } from '../services/api';
4
  import { AchievementConfig, AchievementItem, Student, StudentAchievement, SystemConfig } from '../types';
5
  import { Award, ShoppingBag, Loader2, Calendar, Lock } from 'lucide-react';
 
6
 
7
  export const AchievementStudent: React.FC = () => {
8
  const [loading, setLoading] = useState(true);
@@ -123,7 +124,7 @@ export const AchievementStudent: React.FC = () => {
123
  <div className="flex items-center gap-4 bg-white p-3 rounded-xl shadow-sm border border-orange-100">
124
  <div className="text-right">
125
  <div className="text-xs text-gray-500 font-bold uppercase">当前小红花</div>
126
- <div className="text-2xl font-black text-amber-600">{student.flowerBalance || 0} 🌺</div>
127
  </div>
128
  </div>
129
  </div>
@@ -161,7 +162,7 @@ export const AchievementStudent: React.FC = () => {
161
  return (
162
  <div key={ach.id} className={`relative aspect-square rounded-xl border flex flex-col items-center justify-center p-4 transition-all ${isUnlocked ? 'bg-white border-amber-200 shadow-sm' : 'bg-gray-50 border-gray-200 grayscale opacity-70'}`}>
163
  <div className={`text-5xl mb-3 transition-transform ${isUnlocked ? 'scale-110 drop-shadow-md' : 'scale-90 opacity-50'}`}>
164
- {ach.icon}
165
  </div>
166
  <div className={`font-bold text-center ${isUnlocked ? 'text-gray-800' : 'text-gray-400'}`}>
167
  {ach.name}
@@ -176,7 +177,7 @@ export const AchievementStudent: React.FC = () => {
176
  </div>
177
  )}
178
  <div className={`mt-1 text-xs font-medium px-2 rounded ${isHistoric ? 'text-gray-500 bg-gray-100' : 'text-amber-600 bg-amber-50'}`}>
179
- {isHistoric ? '历史记录' : `${ach.points} 🌺`}
180
  </div>
181
  </div>
182
  );
@@ -193,7 +194,7 @@ export const AchievementStudent: React.FC = () => {
193
  return (
194
  <div key={rule.id} className="bg-white rounded-xl border border-gray-200 shadow-sm p-5 flex flex-col items-center text-center hover:shadow-md transition-shadow relative overflow-hidden">
195
  <div className="w-16 h-16 bg-gradient-to-br from-green-100 to-emerald-100 rounded-full flex items-center justify-center mb-3 text-3xl shadow-inner">
196
- {rule.rewardType === 'DRAW_COUNT' ? '🎲' : '🎁'}
197
  </div>
198
  <h3 className="font-bold text-gray-800 text-lg mb-1">{rule.rewardName}</h3>
199
  <p className="text-sm text-gray-500 mb-4">包含数量: x{rule.rewardValue}</p>
@@ -204,7 +205,7 @@ export const AchievementStudent: React.FC = () => {
204
  className={`mt-auto w-full py-2.5 rounded-lg font-bold flex items-center justify-center gap-2 transition-all ${canAfford ? 'bg-amber-500 text-white hover:bg-amber-600 shadow-md hover:shadow-lg active:scale-95' : 'bg-gray-100 text-gray-400 cursor-not-allowed'}`}
205
  >
206
  <ShoppingBag size={16}/>
207
- {rule.cost} 🌺 兑换
208
  </button>
209
  </div>
210
  );
@@ -219,4 +220,4 @@ export const AchievementStudent: React.FC = () => {
219
  </div>
220
  </div>
221
  );
222
- };
 
3
  import { api } from '../services/api';
4
  import { AchievementConfig, AchievementItem, Student, StudentAchievement, SystemConfig } from '../types';
5
  import { Award, ShoppingBag, Loader2, Calendar, Lock } from 'lucide-react';
6
+ import { Emoji } from '../components/Emoji';
7
 
8
  export const AchievementStudent: React.FC = () => {
9
  const [loading, setLoading] = useState(true);
 
124
  <div className="flex items-center gap-4 bg-white p-3 rounded-xl shadow-sm border border-orange-100">
125
  <div className="text-right">
126
  <div className="text-xs text-gray-500 font-bold uppercase">当前小红花</div>
127
+ <div className="text-2xl font-black text-amber-600">{student.flowerBalance || 0} <Emoji symbol="🌺" size={20}/></div>
128
  </div>
129
  </div>
130
  </div>
 
162
  return (
163
  <div key={ach.id} className={`relative aspect-square rounded-xl border flex flex-col items-center justify-center p-4 transition-all ${isUnlocked ? 'bg-white border-amber-200 shadow-sm' : 'bg-gray-50 border-gray-200 grayscale opacity-70'}`}>
164
  <div className={`text-5xl mb-3 transition-transform ${isUnlocked ? 'scale-110 drop-shadow-md' : 'scale-90 opacity-50'}`}>
165
+ <Emoji symbol={ach.icon} size={48} />
166
  </div>
167
  <div className={`font-bold text-center ${isUnlocked ? 'text-gray-800' : 'text-gray-400'}`}>
168
  {ach.name}
 
177
  </div>
178
  )}
179
  <div className={`mt-1 text-xs font-medium px-2 rounded ${isHistoric ? 'text-gray-500 bg-gray-100' : 'text-amber-600 bg-amber-50'}`}>
180
+ {isHistoric ? '历史记录' : <span>{ach.points} <Emoji symbol="🌺" size={10}/></span>}
181
  </div>
182
  </div>
183
  );
 
194
  return (
195
  <div key={rule.id} className="bg-white rounded-xl border border-gray-200 shadow-sm p-5 flex flex-col items-center text-center hover:shadow-md transition-shadow relative overflow-hidden">
196
  <div className="w-16 h-16 bg-gradient-to-br from-green-100 to-emerald-100 rounded-full flex items-center justify-center mb-3 text-3xl shadow-inner">
197
+ <Emoji symbol={rule.rewardType === 'DRAW_COUNT' ? '🎲' : '🎁'} size={32} />
198
  </div>
199
  <h3 className="font-bold text-gray-800 text-lg mb-1">{rule.rewardName}</h3>
200
  <p className="text-sm text-gray-500 mb-4">包含数量: x{rule.rewardValue}</p>
 
205
  className={`mt-auto w-full py-2.5 rounded-lg font-bold flex items-center justify-center gap-2 transition-all ${canAfford ? 'bg-amber-500 text-white hover:bg-amber-600 shadow-md hover:shadow-lg active:scale-95' : 'bg-gray-100 text-gray-400 cursor-not-allowed'}`}
206
  >
207
  <ShoppingBag size={16}/>
208
+ {rule.cost} <Emoji symbol="🌺" size={14} /> 兑换
209
  </button>
210
  </div>
211
  );
 
220
  </div>
221
  </div>
222
  );
223
+ };
pages/AchievementTeacher.tsx CHANGED
@@ -3,6 +3,7 @@ import React, { useState, useEffect } from 'react';
3
  import { api } from '../services/api';
4
  import { AchievementConfig, AchievementItem, ExchangeRule, Student, SystemConfig } from '../types';
5
  import { Plus, Trash2, Edit, Save, Gift, Award, Coins, Users, Search, Loader2, CheckCircle } from 'lucide-react';
 
6
 
7
  const PRESET_ICONS = [
8
  { icon: '🏆', label: '冠军杯' }, { icon: '🥇', label: '金牌' }, { icon: '🥈', label: '银牌' }, { icon: '🥉', label: '铜牌' },
@@ -178,10 +179,10 @@ export const AchievementTeacher: React.FC = () => {
178
  <div className="grid grid-cols-2 md:grid-cols-4 gap-4">
179
  {config?.achievements.map(ach => (
180
  <div key={ach.id} className="border border-gray-200 rounded-xl p-4 flex flex-col items-center relative group hover:shadow-md transition-all bg-white">
181
- <div className="text-4xl mb-2">{ach.icon}</div>
182
  <div className="font-bold text-gray-800 text-center">{ach.name}</div>
183
  <div className="text-xs text-amber-600 font-bold bg-amber-50 px-2 py-0.5 rounded-full mt-1 border border-amber-100">
184
- {ach.points} 🌺
185
  </div>
186
  <button onClick={() => deleteAchievement(ach.id)} className="absolute top-2 right-2 text-gray-300 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity">
187
  <Trash2 size={16}/>
@@ -231,9 +232,9 @@ export const AchievementTeacher: React.FC = () => {
231
  onClick={() => setSelectedAchieveId(ach.id)}
232
  className={`p-4 rounded-xl border cursor-pointer text-center transition-all ${selectedAchieveId === ach.id ? 'bg-amber-50 border-amber-400 ring-2 ring-amber-200' : 'bg-white border-gray-200 hover:bg-gray-50'}`}
233
  >
234
- <div className="text-3xl mb-1">{ach.icon}</div>
235
  <div className="font-bold text-sm text-gray-800">{ach.name}</div>
236
- <div className="text-xs text-gray-500">+{ach.points} 🌺</div>
237
  </div>
238
  ))}
239
  </div>
@@ -257,7 +258,7 @@ export const AchievementTeacher: React.FC = () => {
257
  <div className="bg-green-50 p-4 rounded-xl border border-green-100 flex flex-col md:flex-row gap-4 items-end">
258
  <div className="w-full md:w-32">
259
  <label className="text-xs font-bold text-gray-500 uppercase mb-1 block">消耗小红花</label>
260
- <input type="number" className="w-full border rounded p-2" value={newRule.cost} onChange={e => setNewRule({...newRule, cost: Number(e.target.value)})}/>
261
  </div>
262
  <div className="w-full md:w-32">
263
  <label className="text-xs font-bold text-gray-500 uppercase mb-1 block">奖励类型</label>
@@ -282,11 +283,11 @@ export const AchievementTeacher: React.FC = () => {
282
  <div key={rule.id} className="flex items-center justify-between p-4 bg-white border border-gray-200 rounded-xl hover:shadow-sm">
283
  <div className="flex items-center gap-4">
284
  <div className="bg-amber-100 text-amber-700 font-bold px-3 py-1 rounded-lg border border-amber-200">
285
- {rule.cost} 🌺
286
  </div>
287
  <div className="text-gray-400">➡️</div>
288
  <div className="flex items-center gap-2">
289
- <span className="text-2xl">{rule.rewardType === 'DRAW_COUNT' ? '🎲' : '🎁'}</span>
290
  <div>
291
  <div className="font-bold text-gray-800">{rule.rewardName}</div>
292
  <div className="text-xs text-gray-500">x{rule.rewardValue}</div>
@@ -317,7 +318,7 @@ export const AchievementTeacher: React.FC = () => {
317
  <td className="p-4 font-bold text-gray-700">{s.seatNo ? s.seatNo+'.':''}{s.name}</td>
318
  <td className="p-4">
319
  <span className="text-amber-600 font-bold bg-amber-50 px-2 py-1 rounded border border-amber-100">
320
- {s.flowerBalance || 0} 🌺
321
  </span>
322
  </td>
323
  <td className="p-4 text-right">
 
3
  import { api } from '../services/api';
4
  import { AchievementConfig, AchievementItem, ExchangeRule, Student, SystemConfig } from '../types';
5
  import { Plus, Trash2, Edit, Save, Gift, Award, Coins, Users, Search, Loader2, CheckCircle } from 'lucide-react';
6
+ import { Emoji } from '../components/Emoji';
7
 
8
  const PRESET_ICONS = [
9
  { icon: '🏆', label: '冠军杯' }, { icon: '🥇', label: '金牌' }, { icon: '🥈', label: '银牌' }, { icon: '🥉', label: '铜牌' },
 
179
  <div className="grid grid-cols-2 md:grid-cols-4 gap-4">
180
  {config?.achievements.map(ach => (
181
  <div key={ach.id} className="border border-gray-200 rounded-xl p-4 flex flex-col items-center relative group hover:shadow-md transition-all bg-white">
182
+ <div className="text-4xl mb-2"><Emoji symbol={ach.icon} /></div>
183
  <div className="font-bold text-gray-800 text-center">{ach.name}</div>
184
  <div className="text-xs text-amber-600 font-bold bg-amber-50 px-2 py-0.5 rounded-full mt-1 border border-amber-100">
185
+ {ach.points} <Emoji symbol="🌺" size={14}/>
186
  </div>
187
  <button onClick={() => deleteAchievement(ach.id)} className="absolute top-2 right-2 text-gray-300 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity">
188
  <Trash2 size={16}/>
 
232
  onClick={() => setSelectedAchieveId(ach.id)}
233
  className={`p-4 rounded-xl border cursor-pointer text-center transition-all ${selectedAchieveId === ach.id ? 'bg-amber-50 border-amber-400 ring-2 ring-amber-200' : 'bg-white border-gray-200 hover:bg-gray-50'}`}
234
  >
235
+ <div className="text-3xl mb-1"><Emoji symbol={ach.icon} /></div>
236
  <div className="font-bold text-sm text-gray-800">{ach.name}</div>
237
+ <div className="text-xs text-gray-500">+{ach.points} <Emoji symbol="🌺" size={12}/></div>
238
  </div>
239
  ))}
240
  </div>
 
258
  <div className="bg-green-50 p-4 rounded-xl border border-green-100 flex flex-col md:flex-row gap-4 items-end">
259
  <div className="w-full md:w-32">
260
  <label className="text-xs font-bold text-gray-500 uppercase mb-1 block">消耗小红花</label>
261
+ <input type="number" className="w-full border rounded p-2" value={newRule.cost} onChange={e => setNewRule({...newRule,cost: Number(e.target.value)})}/>
262
  </div>
263
  <div className="w-full md:w-32">
264
  <label className="text-xs font-bold text-gray-500 uppercase mb-1 block">奖励类型</label>
 
283
  <div key={rule.id} className="flex items-center justify-between p-4 bg-white border border-gray-200 rounded-xl hover:shadow-sm">
284
  <div className="flex items-center gap-4">
285
  <div className="bg-amber-100 text-amber-700 font-bold px-3 py-1 rounded-lg border border-amber-200">
286
+ {rule.cost} <Emoji symbol="🌺" size={14}/>
287
  </div>
288
  <div className="text-gray-400">➡️</div>
289
  <div className="flex items-center gap-2">
290
+ <span className="text-2xl"><Emoji symbol={rule.rewardType === 'DRAW_COUNT' ? '🎲' : '🎁'} /></span>
291
  <div>
292
  <div className="font-bold text-gray-800">{rule.rewardName}</div>
293
  <div className="text-xs text-gray-500">x{rule.rewardValue}</div>
 
318
  <td className="p-4 font-bold text-gray-700">{s.seatNo ? s.seatNo+'.':''}{s.name}</td>
319
  <td className="p-4">
320
  <span className="text-amber-600 font-bold bg-amber-50 px-2 py-1 rounded border border-amber-100">
321
+ {s.flowerBalance || 0} <Emoji symbol="🌺" size={14}/>
322
  </span>
323
  </td>
324
  <td className="p-4 text-right">
pages/GameLucky.tsx CHANGED
@@ -4,6 +4,7 @@ import { createPortal } from 'react-dom';
4
  import { api } from '../services/api';
5
  import { LuckyDrawConfig, Student, LuckyPrize } from '../types';
6
  import { Gift, Settings, Loader2, Save, Trash2, X, UserCircle, RefreshCcw, HelpCircle, Maximize, Minimize } from 'lucide-react';
 
7
 
8
  const FlipCard = ({ index, prize, onFlip, isRevealed, activeIndex }: { index: number, prize: string, onFlip: (idx: number) => void, isRevealed: boolean, activeIndex: number | null }) => {
9
  const showBack = isRevealed && activeIndex === index;
@@ -14,13 +15,13 @@ const FlipCard = ({ index, prize, onFlip, isRevealed, activeIndex }: { index: nu
14
  {/* Front */}
15
  <div className="absolute w-full h-full backface-hidden bg-gradient-to-br from-red-500 to-red-600 rounded-xl flex flex-col items-center justify-center border-4 border-yellow-400 shadow-inner">
16
  <div className="w-10 h-10 md:w-14 md:h-14 bg-yellow-100 rounded-full flex items-center justify-center mb-2 shadow-lg border-2 border-yellow-300">
17
- <span className="text-xl md:text-2xl">🧧</span>
18
  </div>
19
  <span className="text-yellow-100 font-black text-lg md:text-xl tracking-widest drop-shadow-md">開</span>
20
  </div>
21
  {/* Back */}
22
  <div className="absolute w-full h-full backface-hidden bg-white rounded-xl flex flex-col items-center justify-center border-4 border-red-200 rotate-y-180 shadow-inner p-2">
23
- <span className="text-3xl mb-2 animate-bounce">🎁</span>
24
  <span className="text-red-600 font-bold text-xs md:text-sm break-words leading-tight text-center px-1">{prize}</span>
25
  </div>
26
  </div>
 
4
  import { api } from '../services/api';
5
  import { LuckyDrawConfig, Student, LuckyPrize } from '../types';
6
  import { Gift, Settings, Loader2, Save, Trash2, X, UserCircle, RefreshCcw, HelpCircle, Maximize, Minimize } from 'lucide-react';
7
+ import { Emoji } from '../components/Emoji';
8
 
9
  const FlipCard = ({ index, prize, onFlip, isRevealed, activeIndex }: { index: number, prize: string, onFlip: (idx: number) => void, isRevealed: boolean, activeIndex: number | null }) => {
10
  const showBack = isRevealed && activeIndex === index;
 
15
  {/* Front */}
16
  <div className="absolute w-full h-full backface-hidden bg-gradient-to-br from-red-500 to-red-600 rounded-xl flex flex-col items-center justify-center border-4 border-yellow-400 shadow-inner">
17
  <div className="w-10 h-10 md:w-14 md:h-14 bg-yellow-100 rounded-full flex items-center justify-center mb-2 shadow-lg border-2 border-yellow-300">
18
+ <span className="text-xl md:text-2xl"><Emoji symbol="🧧"/></span>
19
  </div>
20
  <span className="text-yellow-100 font-black text-lg md:text-xl tracking-widest drop-shadow-md">開</span>
21
  </div>
22
  {/* Back */}
23
  <div className="absolute w-full h-full backface-hidden bg-white rounded-xl flex flex-col items-center justify-center border-4 border-red-200 rotate-y-180 shadow-inner p-2">
24
+ <span className="text-3xl mb-2 animate-bounce"><Emoji symbol="🎁"/></span>
25
  <span className="text-red-600 font-bold text-xs md:text-sm break-words leading-tight text-center px-1">{prize}</span>
26
  </div>
27
  </div>
pages/GameMonster.tsx CHANGED
@@ -1,8 +1,10 @@
 
1
  import React, { useState, useEffect, useRef, useMemo } from 'react';
2
  import { createPortal } from 'react-dom';
3
  import { api } from '../services/api';
4
  import { AchievementConfig, Student } from '../types';
5
  import { Play, Pause, Settings, Maximize, Minimize, Gift, Trophy, Package, Volume2, Keyboard, Award, RotateCcw, UserX } from 'lucide-react';
 
6
 
7
  // Monster visual assets
8
  const MONSTER_TYPES = ['👾', '👹', '👺', '👻', '💀', '👽'];
@@ -218,12 +220,6 @@ export const GameMonster: React.FC = () => {
218
  analyserRef.current.getByteFrequencyData(dataArrayRef.current as any);
219
  const avg = dataArrayRef.current.reduce((a,b)=>a+b) / dataArrayRef.current.length;
220
 
221
- // ADJUSTMENT: Moderate Gain Factor
222
- // Raw 0-255 -> 0-127 mapped to 0-100 approx.
223
- // Avg 40 (Noise) -> 20.
224
- // Avg 100 (Talk) -> 50.
225
- // Avg 180 (Loud) -> 90.
226
- // This provides a much better dynamic range than *2.5 (too loud) or /2.5 (too quiet).
227
  currentVol = Math.min(100, Math.floor(avg / 2));
228
 
229
  volumeRef.current = currentVol;
@@ -399,7 +395,7 @@ export const GameMonster: React.FC = () => {
399
  {/* Game Area */}
400
  <div className="flex-1 relative z-10 flex flex-col justify-end pb-24 pointer-events-auto" onClick={handleManualInput}>
401
  <div className="absolute bottom-0 left-0 w-[15%] h-[80%] bg-gradient-to-r from-blue-900/30 to-transparent flex flex-col justify-end items-center pb-20 border-r border-blue-500/30">
402
- <div className="text-6xl animate-bounce mb-4">🏰</div>
403
  </div>
404
 
405
  <div
@@ -421,7 +417,7 @@ export const GameMonster: React.FC = () => {
421
  {monsterArmy.map((m) => (
422
  <div
423
  key={m.id}
424
- className="absolute text-7xl filter drop-shadow-2xl transition-transform"
425
  style={{
426
  left: `${m.leftPercent}%`,
427
  bottom: `${m.bottomPercent}%`,
@@ -430,10 +426,10 @@ export const GameMonster: React.FC = () => {
430
  animation: `monsterWalk 1s infinite alternate ${m.id * 0.2}s`
431
  }}
432
  >
433
- {m.emoji}
434
  </div>
435
  ))}
436
- {isHit && <div className="absolute top-0 left-1/2 text-8xl animate-ping z-50">💥</div>}
437
  </div>
438
  </div>
439
  </div>
@@ -610,8 +606,8 @@ export const GameMonster: React.FC = () => {
610
  {gameState !== 'IDLE' && gameState !== 'PLAYING' && !isConfigOpen && (
611
  <div className="absolute inset-0 bg-black/90 z-[110] flex items-center justify-center p-4 backdrop-blur-lg animate-in zoom-in">
612
  <div className="text-center w-full max-w-lg">
613
- <div className="text-9xl mb-6 animate-bounce drop-shadow-[0_0_25px_rgba(255,255,255,0.5)]">
614
- {gameState === 'VICTORY' ? '🏆' : '💀'}
615
  </div>
616
  <h2 className={`text-6xl font-black mb-2 tracking-tight ${gameState==='VICTORY' ? 'text-transparent bg-clip-text bg-gradient-to-b from-yellow-300 to-yellow-600' : 'text-gray-400'}`}>
617
  {gameState === 'VICTORY' ? '守卫成功!' : '防线沦陷...'}
@@ -662,4 +658,4 @@ export const GameMonster: React.FC = () => {
662
 
663
  const TicketIcon = () => (
664
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"/><path d="M13 5v2"/><path d="M13 17v2"/><path d="M13 11v2"/></svg>
665
- );
 
1
+
2
  import React, { useState, useEffect, useRef, useMemo } from 'react';
3
  import { createPortal } from 'react-dom';
4
  import { api } from '../services/api';
5
  import { AchievementConfig, Student } from '../types';
6
  import { Play, Pause, Settings, Maximize, Minimize, Gift, Trophy, Package, Volume2, Keyboard, Award, RotateCcw, UserX } from 'lucide-react';
7
+ import { Emoji } from '../components/Emoji';
8
 
9
  // Monster visual assets
10
  const MONSTER_TYPES = ['👾', '👹', '👺', '👻', '💀', '👽'];
 
220
  analyserRef.current.getByteFrequencyData(dataArrayRef.current as any);
221
  const avg = dataArrayRef.current.reduce((a,b)=>a+b) / dataArrayRef.current.length;
222
 
 
 
 
 
 
 
223
  currentVol = Math.min(100, Math.floor(avg / 2));
224
 
225
  volumeRef.current = currentVol;
 
395
  {/* Game Area */}
396
  <div className="flex-1 relative z-10 flex flex-col justify-end pb-24 pointer-events-auto" onClick={handleManualInput}>
397
  <div className="absolute bottom-0 left-0 w-[15%] h-[80%] bg-gradient-to-r from-blue-900/30 to-transparent flex flex-col justify-end items-center pb-20 border-r border-blue-500/30">
398
+ <div className="mb-4"><Emoji symbol="🏰" size={70} /></div>
399
  </div>
400
 
401
  <div
 
417
  {monsterArmy.map((m) => (
418
  <div
419
  key={m.id}
420
+ className="absolute transition-transform"
421
  style={{
422
  left: `${m.leftPercent}%`,
423
  bottom: `${m.bottomPercent}%`,
 
426
  animation: `monsterWalk 1s infinite alternate ${m.id * 0.2}s`
427
  }}
428
  >
429
+ <Emoji symbol={m.emoji} size={70} />
430
  </div>
431
  ))}
432
+ {isHit && <div className="absolute top-0 left-1/2 z-50"><Emoji symbol="💥" size={90}/></div>}
433
  </div>
434
  </div>
435
  </div>
 
606
  {gameState !== 'IDLE' && gameState !== 'PLAYING' && !isConfigOpen && (
607
  <div className="absolute inset-0 bg-black/90 z-[110] flex items-center justify-center p-4 backdrop-blur-lg animate-in zoom-in">
608
  <div className="text-center w-full max-w-lg">
609
+ <div className="mb-6 animate-bounce drop-shadow-[0_0_25px_rgba(255,255,255,0.5)]">
610
+ <Emoji symbol={gameState === 'VICTORY' ? '🏆' : '💀'} size={100} />
611
  </div>
612
  <h2 className={`text-6xl font-black mb-2 tracking-tight ${gameState==='VICTORY' ? 'text-transparent bg-clip-text bg-gradient-to-b from-yellow-300 to-yellow-600' : 'text-gray-400'}`}>
613
  {gameState === 'VICTORY' ? '守卫成功!' : '防线沦陷...'}
 
658
 
659
  const TicketIcon = () => (
660
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"/><path d="M13 5v2"/><path d="M13 17v2"/><path d="M13 11v2"/></svg>
661
+ );
pages/GameMountain.tsx CHANGED
@@ -4,6 +4,7 @@ import { createPortal } from 'react-dom';
4
  import { api } from '../services/api';
5
  import { GameSession, GameTeam, Student, GameRewardConfig, AchievementConfig } from '../types';
6
  import { Settings, Plus, Minus, Users, CheckSquare, Loader2, Trash2, X, Flag, Gift, Star, Trophy, Maximize, Minimize } from 'lucide-react';
 
7
 
8
  // --- CSS Animations for Clouds and Bounce ---
9
  const styles = `
@@ -72,12 +73,12 @@ const generatePathString = () => {
72
  };
73
 
74
  const CelebrationEffects = () => (
75
- <div className="absolute -top-10 left-1/2 -translate-x-1/2 w-full h-full pointer-events-none z-50">
76
- <div className="absolute top-0 left-1/4 text-2xl animate-confetti" style={{animationDelay: '0.1s'}}>🎉</div>
77
- <div className="absolute top-2 right-1/4 text-2xl animate-confetti" style={{animationDelay: '0.3s'}}>✨</div>
78
- <div className="absolute top-0 left-1/2 text-2xl animate-confetti" style={{animationDelay: '0.5s'}}>🎊</div>
79
- <div className="absolute -top-4 right-1/3 text-xl animate-confetti" style={{animationDelay: '0.2s'}}>🎈</div>
80
- <div className="absolute -top-2 left-1/3 text-xl animate-confetti" style={{animationDelay: '0.4s'}}>🌟</div>
81
  </div>
82
  );
83
 
@@ -184,8 +185,8 @@ const MountainStage = ({ team, index, rewardsConfig, maxSteps, onScoreChange, is
184
  <Icon size={12} className={isUnlocked ? 'text-amber-600' : 'text-gray-400'} />
185
  {isUnlocked && <div className="absolute inset-0 bg-yellow-400 rounded-full blur-sm opacity-50 animate-pulse"></div>}
186
  </div>
187
- {/* Reward Name Label - Now visible */}
188
- <div className={`mt-1 px-1.5 py-0.5 rounded text-[10px] font-bold shadow-sm whitespace-nowrap border max-w-[80px] truncate transition-colors ${isUnlocked ? 'bg-yellow-50 text-yellow-700 border-yellow-200' : 'bg-white/90 text-gray-500 border-gray-200'}`}>
189
  {reward.rewardName}
190
  </div>
191
  </div>
@@ -202,11 +203,11 @@ const MountainStage = ({ team, index, rewardsConfig, maxSteps, onScoreChange, is
202
  w-12 h-12 md:w-14 md:h-14 bg-white rounded-full border-4 shadow-xl flex items-center justify-center transition-transform relative
203
  ${isFinished ? 'animate-bounce border-yellow-400' : 'hover:scale-110'}
204
  `} style={{ borderColor: isFinished ? '#facc15' : team.color }}>
205
- <span className="text-2xl md:text-3xl">{team.avatar || '🧗'}</span>
206
 
207
  {isFinished && (
208
  <>
209
- <div className="absolute -right-4 -top-6 text-3xl drop-shadow-md origin-bottom-left animate-wave">🚩</div>
210
  <CelebrationEffects />
211
  </>
212
  )}
@@ -232,13 +233,13 @@ const GameToast = ({ title, message, type, onClose }: { title: string, message:
232
  }, [onClose]);
233
 
234
  return (
235
- <div className="fixed top-8 left-1/2 -translate-x-1/2 z-[10000] animate-in slide-in-from-top-5 fade-in duration-300">
236
- <div className={`flex items-center gap-3 px-6 py-4 rounded-xl shadow-2xl border-2 backdrop-blur-md ${type === 'success' ? 'bg-yellow-50/90 border-yellow-400 text-yellow-800' : 'bg-white/90 border-blue-200 text-slate-800'}`}>
237
  <div className={`p-2 rounded-full ${type === 'success' ? 'bg-yellow-400 text-white' : 'bg-blue-500 text-white'}`}>
238
  {type === 'success' ? <Trophy size={24} /> : <Gift size={24} />}
239
  </div>
240
  <div>
241
- <h4 className="font-black text-lg">{title}</h4>
242
  <p className="text-sm opacity-90 font-medium">{message}</p>
243
  </div>
244
  </div>
@@ -330,16 +331,13 @@ export const GameMountain: React.FC = () => {
330
  if (t.id !== teamId) return t;
331
  const newScore = Math.max(0, Math.min(session.maxSteps, t.score + delta));
332
 
333
- // Detect Reward Trigger
334
  if (delta > 0 && newScore > t.score) {
335
  const reward = session.rewardsConfig.find(r => r.scoreThreshold === newScore);
336
 
337
- // Toast for Summit
338
  if (newScore === session.maxSteps) {
339
  setToast({ title: `🏆 巅峰时刻!`, message: `恭喜 [${t.name}] 成功登顶!`, type: 'success' });
340
- }
341
- // Toast for Reward
342
- else if (reward) {
343
  setToast({ title: `🎉 触发奖励!`, message: `[${t.name}] 获得:${reward.rewardName}`, type: 'info' });
344
  }
345
 
@@ -406,10 +404,10 @@ export const GameMountain: React.FC = () => {
406
  {/* Background Elements */}
407
  <div className="absolute inset-0 pointer-events-none overflow-hidden">
408
  <div className="absolute top-10 right-20 w-24 h-24 bg-yellow-300 rounded-full blur-xl opacity-60 animate-pulse"></div>
409
- <div className="absolute top-16 -left-20 text-white/60 text-9xl select-none animate-drift-slow opacity-80" style={{filter: 'blur(2px)'}}>☁️</div>
410
- <div className="absolute top-32 -left-40 text-white/40 text-8xl select-none animate-drift-medium opacity-60" style={{animationDelay: '5s'}}>☁️</div>
411
- <div className="absolute top-10 -left-10 text-white/50 text-[10rem] select-none animate-drift-fast opacity-40" style={{animationDelay: '15s'}}>☁️</div>
412
- <div className="absolute top-24 left-1/4 text-slate-600/30 text-2xl animate-bounce-slow">🕊️</div>
413
  </div>
414
 
415
  {/* Toast Overlay */}
@@ -576,7 +574,7 @@ export const GameMountain: React.FC = () => {
576
  <>
577
  <div className="text-sm font-bold text-gray-700 mb-3 flex justify-between items-center border-b border-gray-200 pb-2">
578
  <span className="flex items-center gap-2">
579
- <span className="text-xl">{session.teams.find(t => t.id === selectedTeamId)?.avatar}</span>
580
  配置 [{session.teams.find(t => t.id === selectedTeamId)?.name}] 成员
581
  </span>
582
  <span className="text-xs text-gray-400 bg-white px-2 py-1 rounded border">点击添加/移除</span>
@@ -599,7 +597,7 @@ export const GameMountain: React.FC = () => {
599
  >
600
  <span className="truncate font-medium">{s.seatNo ? s.seatNo+'.':''}{s.name}</span>
601
  {isInCurrent && <CheckSquare size={14} className="text-blue-200"/>}
602
- {isInOther && <span className="text-[10px]">{otherTeam?.avatar}</span>}
603
  </div>
604
  );
605
  })}
@@ -632,4 +630,3 @@ export const GameMountain: React.FC = () => {
632
  }
633
  return GameContent;
634
  };
635
-
 
4
  import { api } from '../services/api';
5
  import { GameSession, GameTeam, Student, GameRewardConfig, AchievementConfig } from '../types';
6
  import { Settings, Plus, Minus, Users, CheckSquare, Loader2, Trash2, X, Flag, Gift, Star, Trophy, Maximize, Minimize } from 'lucide-react';
7
+ import { Emoji } from '../components/Emoji';
8
 
9
  // --- CSS Animations for Clouds and Bounce ---
10
  const styles = `
 
73
  };
74
 
75
  const CelebrationEffects = () => (
76
+ <div className="absolute -top-16 left-1/2 -translate-x-1/2 w-40 h-40 pointer-events-none z-50">
77
+ <div className="absolute top-10 left-1/4 text-2xl animate-confetti" style={{animationDelay: '0.1s'}}><Emoji symbol="🎉"/></div>
78
+ <div className="absolute top-12 right-1/4 text-2xl animate-confetti" style={{animationDelay: '0.3s'}}><Emoji symbol="✨"/></div>
79
+ <div className="absolute top-8 left-1/2 text-2xl animate-confetti" style={{animationDelay: '0.5s'}}><Emoji symbol="🎊"/></div>
80
+ <div className="absolute top-0 right-1/3 text-xl animate-confetti" style={{animationDelay: '0.2s'}}><Emoji symbol="🎈"/></div>
81
+ <div className="absolute top-4 left-1/3 text-xl animate-confetti" style={{animationDelay: '0.4s'}}><Emoji symbol="🌟"/></div>
82
  </div>
83
  );
84
 
 
185
  <Icon size={12} className={isUnlocked ? 'text-amber-600' : 'text-gray-400'} />
186
  {isUnlocked && <div className="absolute inset-0 bg-yellow-400 rounded-full blur-sm opacity-50 animate-pulse"></div>}
187
  </div>
188
+ {/* Reward Name Label - Always Visible */}
189
+ <div className={`mt-1 px-2 py-0.5 rounded text-[10px] font-bold shadow-sm whitespace-nowrap border max-w-[100px] truncate transition-colors ${isUnlocked ? 'bg-yellow-50 text-yellow-700 border-yellow-200' : 'bg-white/90 text-gray-500 border-gray-200'}`}>
190
  {reward.rewardName}
191
  </div>
192
  </div>
 
203
  w-12 h-12 md:w-14 md:h-14 bg-white rounded-full border-4 shadow-xl flex items-center justify-center transition-transform relative
204
  ${isFinished ? 'animate-bounce border-yellow-400' : 'hover:scale-110'}
205
  `} style={{ borderColor: isFinished ? '#facc15' : team.color }}>
206
+ <span className="text-2xl md:text-3xl"><Emoji symbol={team.avatar || '🧗'} /></span>
207
 
208
  {isFinished && (
209
  <>
210
+ <div className="absolute -right-4 -top-6 text-3xl drop-shadow-md origin-bottom-left animate-wave"><Emoji symbol="🚩"/></div>
211
  <CelebrationEffects />
212
  </>
213
  )}
 
233
  }, [onClose]);
234
 
235
  return (
236
+ <div className="fixed top-20 left-1/2 -translate-x-1/2 z-[10000] animate-in slide-in-from-top-5 fade-in duration-300">
237
+ <div className={`flex items-center gap-3 px-6 py-4 rounded-xl shadow-2xl border-2 backdrop-blur-md ${type === 'success' ? 'bg-yellow-50/95 border-yellow-400 text-yellow-900' : 'bg-white/95 border-blue-200 text-slate-800'}`}>
238
  <div className={`p-2 rounded-full ${type === 'success' ? 'bg-yellow-400 text-white' : 'bg-blue-500 text-white'}`}>
239
  {type === 'success' ? <Trophy size={24} /> : <Gift size={24} />}
240
  </div>
241
  <div>
242
+ <h4 className="font-black text-lg leading-tight">{title}</h4>
243
  <p className="text-sm opacity-90 font-medium">{message}</p>
244
  </div>
245
  </div>
 
331
  if (t.id !== teamId) return t;
332
  const newScore = Math.max(0, Math.min(session.maxSteps, t.score + delta));
333
 
334
+ // Detect Reward Trigger or Summit
335
  if (delta > 0 && newScore > t.score) {
336
  const reward = session.rewardsConfig.find(r => r.scoreThreshold === newScore);
337
 
 
338
  if (newScore === session.maxSteps) {
339
  setToast({ title: `🏆 巅峰时刻!`, message: `恭喜 [${t.name}] 成功登顶!`, type: 'success' });
340
+ } else if (reward) {
 
 
341
  setToast({ title: `🎉 触发奖励!`, message: `[${t.name}] 获得:${reward.rewardName}`, type: 'info' });
342
  }
343
 
 
404
  {/* Background Elements */}
405
  <div className="absolute inset-0 pointer-events-none overflow-hidden">
406
  <div className="absolute top-10 right-20 w-24 h-24 bg-yellow-300 rounded-full blur-xl opacity-60 animate-pulse"></div>
407
+ <div className="absolute top-16 -left-20 text-white/60 text-9xl select-none animate-drift-slow opacity-80" style={{filter: 'blur(2px)'}}><Emoji symbol="☁️"/></div>
408
+ <div className="absolute top-32 -left-40 text-white/40 text-8xl select-none animate-drift-medium opacity-60" style={{animationDelay: '5s'}}><Emoji symbol="☁️"/></div>
409
+ <div className="absolute top-10 -left-10 text-white/50 text-[10rem] select-none animate-drift-fast opacity-40" style={{animationDelay: '15s'}}><Emoji symbol="☁️"/></div>
410
+ <div className="absolute top-24 left-1/4 text-slate-600/30 text-2xl animate-bounce-slow"><Emoji symbol="🕊️"/></div>
411
  </div>
412
 
413
  {/* Toast Overlay */}
 
574
  <>
575
  <div className="text-sm font-bold text-gray-700 mb-3 flex justify-between items-center border-b border-gray-200 pb-2">
576
  <span className="flex items-center gap-2">
577
+ <span className="text-xl"><Emoji symbol={session.teams.find(t => t.id === selectedTeamId)?.avatar || '🚩'} /></span>
578
  配置 [{session.teams.find(t => t.id === selectedTeamId)?.name}] 成员
579
  </span>
580
  <span className="text-xs text-gray-400 bg-white px-2 py-1 rounded border">点击添加/移除</span>
 
597
  >
598
  <span className="truncate font-medium">{s.seatNo ? s.seatNo+'.':''}{s.name}</span>
599
  {isInCurrent && <CheckSquare size={14} className="text-blue-200"/>}
600
+ {isInOther && <span className="text-[10px]"><Emoji symbol={otherTeam?.avatar || '🚩'} size={12}/></span>}
601
  </div>
602
  );
603
  })}
 
630
  }
631
  return GameContent;
632
  };
 
pages/GameRandom.tsx CHANGED
@@ -4,6 +4,7 @@ import { createPortal } from 'react-dom';
4
  import { api } from '../services/api';
5
  import { Student, GameSession, GameTeam, AchievementConfig } from '../types';
6
  import { Loader2, User, Users, Play, Pause, Gift, CheckCircle, XCircle, Award, Volume2, Settings, Maximize, Minimize, UserX, RotateCcw, Repeat } from 'lucide-react';
 
7
 
8
  export const GameRandom: React.FC = () => {
9
  const [loading, setLoading] = useState(true);
@@ -323,7 +324,7 @@ export const GameRandom: React.FC = () => {
323
  <div className={`rounded-full bg-blue-100 flex items-center justify-center text-blue-600 ${isFullscreen ? 'w-24 h-24 text-4xl' : 'w-12 h-12 text-lg'}`}>
324
  {name[0]}
325
  </div>
326
- ) : avatar}
327
  </div>
328
  <div className={`font-bold text-gray-800 text-center truncate w-full px-2 ${isFullscreen ? 'text-2xl' : 'text-base'}`}>{name}</div>
329
  <div className="text-xs text-gray-400">{subText}</div>
@@ -386,7 +387,7 @@ export const GameRandom: React.FC = () => {
386
  <div className="fixed inset-0 bg-black/60 z-[110] flex items-center justify-center p-4 backdrop-blur-sm animate-in fade-in">
387
  <div className="bg-white rounded-3xl p-8 w-full max-w-md text-center shadow-2xl relative animate-in zoom-in-95">
388
  <div className="absolute -top-12 left-1/2 -translate-x-1/2 w-24 h-24 bg-yellow-400 rounded-full flex items-center justify-center border-4 border-white shadow-lg">
389
- <span className="text-5xl">✨</span>
390
  </div>
391
 
392
  <h2 className="mt-10 text-gray-500 text-sm font-bold uppercase tracking-widest">选中对象</h2>
 
4
  import { api } from '../services/api';
5
  import { Student, GameSession, GameTeam, AchievementConfig } from '../types';
6
  import { Loader2, User, Users, Play, Pause, Gift, CheckCircle, XCircle, Award, Volume2, Settings, Maximize, Minimize, UserX, RotateCcw, Repeat } from 'lucide-react';
7
+ import { Emoji } from '../components/Emoji';
8
 
9
  export const GameRandom: React.FC = () => {
10
  const [loading, setLoading] = useState(true);
 
324
  <div className={`rounded-full bg-blue-100 flex items-center justify-center text-blue-600 ${isFullscreen ? 'w-24 h-24 text-4xl' : 'w-12 h-12 text-lg'}`}>
325
  {name[0]}
326
  </div>
327
+ ) : <Emoji symbol={avatar} />}
328
  </div>
329
  <div className={`font-bold text-gray-800 text-center truncate w-full px-2 ${isFullscreen ? 'text-2xl' : 'text-base'}`}>{name}</div>
330
  <div className="text-xs text-gray-400">{subText}</div>
 
387
  <div className="fixed inset-0 bg-black/60 z-[110] flex items-center justify-center p-4 backdrop-blur-sm animate-in fade-in">
388
  <div className="bg-white rounded-3xl p-8 w-full max-w-md text-center shadow-2xl relative animate-in zoom-in-95">
389
  <div className="absolute -top-12 left-1/2 -translate-x-1/2 w-24 h-24 bg-yellow-400 rounded-full flex items-center justify-center border-4 border-white shadow-lg">
390
+ <span className="text-5xl"><Emoji symbol="✨"/></span>
391
  </div>
392
 
393
  <h2 className="mt-10 text-gray-500 text-sm font-bold uppercase tracking-widest">选中对象</h2>
pages/GameZen.tsx CHANGED
@@ -4,6 +4,7 @@ import { createPortal } from 'react-dom';
4
  import { api } from '../services/api';
5
  import { AchievementConfig, Student } from '../types';
6
  import { Play, Pause, Settings, Maximize, Minimize, Gift, Trophy, Package, Moon, UserX, CheckCircle, Volume2 } from 'lucide-react';
 
7
 
8
  export const GameZen: React.FC = () => {
9
  const currentUser = api.auth.getCurrentUser();
@@ -366,10 +367,10 @@ export const GameZen: React.FC = () => {
366
 
367
  {/* Monk/Visual */}
368
  <div
369
- className={`text-[150px] transition-all duration-1000 ease-in-out relative z-20 drop-shadow-2xl ${currentState === 'CHAOS' ? 'animate-bounce' : currentState === 'RESTLESS' ? 'animate-pulse' : ''}`}
370
  style={{ transform: `translateY(${currentVisual.monkY}px) scale(${currentVisual.monkScale})` }}
371
  >
372
- {currentVisual.monk}
373
  </div>
374
 
375
  {/* Levitation Base (Shadow) */}
@@ -566,8 +567,8 @@ export const GameZen: React.FC = () => {
566
  {gameState === 'FINISHED' && !isConfigOpen && (
567
  <div className="absolute inset-0 bg-black/90 z-[110] flex items-center justify-center p-4 backdrop-blur-lg animate-in zoom-in">
568
  <div className="text-center w-full max-w-lg">
569
- <div className="text-9xl mb-6 animate-bounce drop-shadow-[0_0_25px_rgba(255,255,255,0.5)]">
570
- {calculatedScore >= passRate ? '🌸' : '🍂'}
571
  </div>
572
  <h2 className={`text-5xl font-black mb-2 tracking-tight ${calculatedScore >= passRate ? 'text-transparent bg-clip-text bg-gradient-to-b from-green-300 to-emerald-600' : 'text-gray-400'}`}>
573
  {calculatedScore >= passRate ? '修行圆满' : '心浮气躁'}
 
4
  import { api } from '../services/api';
5
  import { AchievementConfig, Student } from '../types';
6
  import { Play, Pause, Settings, Maximize, Minimize, Gift, Trophy, Package, Moon, UserX, CheckCircle, Volume2 } from 'lucide-react';
7
+ import { Emoji } from '../components/Emoji';
8
 
9
  export const GameZen: React.FC = () => {
10
  const currentUser = api.auth.getCurrentUser();
 
367
 
368
  {/* Monk/Visual */}
369
  <div
370
+ className={`transition-all duration-1000 ease-in-out relative z-20 drop-shadow-2xl ${currentState === 'CHAOS' ? 'animate-bounce' : currentState === 'RESTLESS' ? 'animate-pulse' : ''}`}
371
  style={{ transform: `translateY(${currentVisual.monkY}px) scale(${currentVisual.monkScale})` }}
372
  >
373
+ <Emoji symbol={currentVisual.monk} size={150} />
374
  </div>
375
 
376
  {/* Levitation Base (Shadow) */}
 
567
  {gameState === 'FINISHED' && !isConfigOpen && (
568
  <div className="absolute inset-0 bg-black/90 z-[110] flex items-center justify-center p-4 backdrop-blur-lg animate-in zoom-in">
569
  <div className="text-center w-full max-w-lg">
570
+ <div className="mb-6 animate-bounce drop-shadow-[0_0_25px_rgba(255,255,255,0.5)]">
571
+ <Emoji symbol={calculatedScore >= passRate ? '🌸' : '🍂'} size={100} />
572
  </div>
573
  <h2 className={`text-5xl font-black mb-2 tracking-tight ${calculatedScore >= passRate ? 'text-transparent bg-clip-text bg-gradient-to-b from-green-300 to-emerald-600' : 'text-gray-400'}`}>
574
  {calculatedScore >= passRate ? '修行圆满' : '心浮气躁'}