@font-face { font-family: 'number'; src: url("DIN1451.ttf"); } * { margin: 0; padding: 0; touch-action: none; } #contain { width: 100vw; max-width: 500px; height: 100vh; background: #232323; margin: 0 auto; } .header { background: #2a2a2a; width: 100%; min-height: 80px; } .footer { background: #2a2a2a; width: 100%; max-width: 500px; min-height: 60px; position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; } #ball-count { color: #aaa; font-size: 1.2em; font-family: 'number', monospace; } #level { position: absolute; top: 0; left: 0; color: #fff; font-size: 3em; width: 100%; text-align: center; } body { background: #232323; } /* 覆盖层通用样式 */ .overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.75); display: flex; align-items: center; justify-content: center; z-index: 100; } .overlay-content { background: #2a2a2a; border-radius: 12px; padding: 32px 28px; text-align: center; min-width: 240px; max-width: 90vw; } .overlay-title { color: #fff; font-size: 1.5em; margin-bottom: 24px; font-weight: normal; } .mode-btn { display: block; width: 100%; padding: 14px 0; margin-bottom: 12px; border: none; border-radius: 8px; background: #f8b42b; color: #000; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: background 0.2s; } .mode-btn:last-child { margin-bottom: 0; } .mode-btn:hover { background: #e8a020; } .mode-btn:active { background: #d09018; } .final-score { color: #f8b42b; font-size: 2em; margin-bottom: 24px; font-family: 'number', monospace; }