@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; user-select: none; } body { width: 100vw; height: 100vh; overflow: hidden; background: transparent; color: white; } .wheel-container { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 1000; flex-direction: column; justify-content: center; align-items: center; } .wheel-header { text-align: center; margin-bottom: 30px; z-index: 1001; } .wheel-header h1 { color: #ffd700; font-size: 3em; margin: 0; text-shadow: 0 0 15px rgba(255, 215, 0, 0.7); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; } .wheel-header p { color: #aaa; margin: 10px 0 0; font-size: 1.2em; font-weight: 300; } .wheel-wrapper { position: relative; width: 500px; height: 500px; margin: 0 auto; } #wheelCanvas { width: 100%; height: 100%; border-radius: 50%; border: 15px solid #2a2a2a; box-shadow: 0 0 0 5px #ffd700, 0 0 30px rgba(255, 215, 0, 0.3), 0 0 50px rgba(0, 0, 0, 0.8); transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99); transform: rotate(0deg); } .wheel-center { position: absolute; width: 100px; height: 100px; background: linear-gradient(145deg, #333, #1a1a1a); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; border: 6px solid #ffd700; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.5); } .wheel-center:hover { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5); background: linear-gradient(145deg, #444, #222); } .wheel-center:active { transform: translate(-50%, -50%) scale(0.95); } .wheel-center.disabled { opacity: 0.5; cursor: not-allowed; transform: translate(-50%, -50%) scale(0.9); } .wheel-center.disabled:hover { transform: translate(-50%, -50%) scale(0.9); box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.5); } .wheel-center.spinning { opacity: 0.7; cursor: not-allowed; animation: pulse 1s infinite; } .wheel-center::before { content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 25px solid transparent; border-right: 25px solid transparent; border-bottom: 45px solid #ffd700; z-index: 11; filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7)); } .wheel-center span { color: white; font-weight: bold; font-size: 16px; text-align: center; z-index: 12; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); } .close-btn { position: absolute; top: 30px; right: 30px; background: linear-gradient(145deg, #ff4444, #cc0000); border: none; color: white; width: 50px; height: 50px; border-radius: 50%; font-size: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4); z-index: 1002; } .close-btn:hover { background: linear-gradient(145deg, #ff0000, #aa0000); transform: rotate(90deg) scale(1.1); box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6); } .close-btn:active { transform: rotate(90deg) scale(0.95); } .reward-popup { position: fixed; top: 56%; left: 50%; transform: translate(-50%, -50%) scale(0); background: linear-gradient(145deg, #2a2a2a, #1a1a1a); border: 3px solid #ffd700; border-radius: 20px; padding: 40px; z-index: 2000; opacity: 0; transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 0 50px rgba(255, 215, 0, 0.5), 0 0 100px rgba(0, 0, 0, 0.8); } .reward-popup.show { opacity: 1; transform: translate(-50%, -50%) scale(1); } .reward-content { text-align: center; color: white; } .reward-content h3 { color: #ffd700; font-size: 2.5em; margin-bottom: 20px; text-shadow: 0 0 15px rgba(255, 215, 0, 0.7); font-weight: 700; } .reward-content p { font-size: 1.4em; font-weight: 500; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); } .error-message { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: linear-gradient(145deg, #ff4444, #cc0000); color: white; padding: 15px 30px; border-radius: 10px; font-weight: 600; z-index: 2001; box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4); animation: slideInDown 0.5s ease; } @keyframes slideInDown { from { opacity: 0; transform: translateX(-50%) translateY(-100%); } to { opacity: 1; transform: translateX(-50%) translateY(0); } } @keyframes pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 0.4; } } #wheelCanvas.spinning { animation: spin 4s cubic-bezier(0.17, 0.67, 0.12, 0.99); } #wheelCanvas.glowing { animation: glow 2s infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes glow { 0%, 100% { box-shadow: 0 0 0 5px #ffd700, 0 0 30px rgba(255, 215, 0, 0.3), 0 0 50px rgba(0, 0, 0, 0.8); } 50% { box-shadow: 0 0 0 5px #ffd700, 0 0 40px rgba(255, 215, 0, 0.6), 0 0 70px rgba(255, 215, 0, 0.2); } } @media (max-width: 768px) { .wheel-wrapper { width: 350px; height: 350px; } .wheel-header h1 { font-size: 2em; } .wheel-header p { font-size: 1em; } .wheel-center { width: 80px; height: 80px; } .wheel-center span { font-size: 14px; } .wheel-center::before { top: -35px; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 35px solid #ffd700; } .close-btn { width: 40px; height: 40px; font-size: 24px; top: 20px; right: 20px; } .reward-popup { padding: 30px; margin: 0 20px; } .reward-content h3 { font-size: 2em; } .reward-content p { font-size: 1.2em; } } @media (max-width: 480px) { .wheel-wrapper { width: 280px; height: 280px; } .wheel-header h1 { font-size: 1.5em; } .wheel-center { width: 60px; height: 60px; } .wheel-center span { font-size: 12px; } }