body { font-family: sans-serif; background-color: #cfd8dc; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; user-select: none; overflow: hidden; }
.main-layout { display: flex; justify-content: center; align-items: center; gap: 20px; width: 100vw; }
.command-panel { width: 150px; background: #1a1a1a; padding: 15px; border-radius: 10px; color: #00ff00; }
#commandInput { width: 100%; background: #000; color: #00ff00; border: 1px solid #333; margin-bottom: 5px; }
.active-green { background-color: #00e676 !important; color: #000 !important; border-color: #00c853 !important; font-weight: bold; }
.pressing { background-color: #00e676 !important; }
.game-wrapper { background: #fff; padding: 15px; border-radius: 15px; width: 340px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.game-area { position: relative; width: 320px; height: 380px; border: 3px solid #333; border-radius: 10px; overflow: hidden; background: linear-gradient(to bottom, #cfd8dc 150px, #90a4ae 160px); }
.uncle { position: absolute; bottom: 0; width: 100px; height: 110px; z-index: 2; transition: left 0.1s; }
.head { position: absolute; top: 10px; left: 20px; width: 60px; height: 70px; background: #ffe0bd; border-radius: 50% 50% 45% 45%; border: 2px solid #333; }
.eye { width: 6px; height: 6px; background: #333; border-radius: 50%; position: absolute; top: 30px; }
.eye:first-child { left: 15px; } .eye:last-child { right: 15px; }
.mouth { width: 20px; height: 10px; border-bottom: 2px solid #333; border-radius: 50%; position: absolute; bottom: 15px; left: 20px; }
.suit { width: 80px; height: 40px; background: #455a64; border-radius: 20px 20px 0 0; position: absolute; bottom: 0; left: 10px; border: 2px solid #333; }
.skin-young .head { background: #ffdbac; } .skin-young .suit { background: #1976d2; }
.skin-gold .head { background: #fff176; box-shadow: 0 0 10px #ffd700; } .skin-gold .suit { background: #ffd700; }
.collection-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); display: none; justify-content: center; align-items: center; z-index: 9999; }
.collection-content { background: #fff; padding: 20px; border-radius: 15px; width: 280px; text-align: center; }
.title-item { padding: 10px; border-bottom: 1px solid #eee; text-align: left; color: #bbb; }
.title-item.unlocked { color: #333; border-left: 5px solid #00e676; background: #f1f8e9; }
.wig { position: absolute; width: 70px; height: 40px; background: #222; border-radius: 35px 35px 5px 5px; }
.wig.gold { background: linear-gradient(#ffd700, #ff8c00); box-shadow: 0 0 10px #ffd700; }
.level-up-big { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); font-size: 50px; font-weight: 900; color: #ffeb3b; text-shadow: 4px 4px 0 #f44336; z-index: 100; transition: 0.3s; }
.level-up-big.show { transform: translate(-50%, -50%) scale(1); }
.meter-frame { width: 100%; height: 10px; background: #eee; border: 2px solid #444; border-radius: 10px; overflow: hidden; }
.meter-fill { width: 0%; height: 100%; background: #ffeb3b; transition: 0.3s; }
.shop-panel { width: 180px; background: #fff3e0; border: 3px solid #ffa000; padding: 10px; border-radius: 10px; }
.shop-item { display: flex; align-items: center; margin-bottom: 5px; background: #fff; padding: 5px; border-radius: 5px; font-size: 12px; }
.buy-btn { margin-left: auto; cursor: pointer; font-size: 10px; }
#startBtn { width: 100%; margin-top: 10px; padding: 10px; background: #ff5722; color: #fff; border: none; font-weight: bold; cursor: pointer; }