const themeColor = "#FFD700"; // Gold accent color const secondaryColor = "#FF6B35"; // Orange accent const riskyIndices = [0, 4, 12, 20, 24]; // corners + center (0-based) // Inject styles const style = document.createElement("style"); style.innerHTML = ` @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap'); #gold-ui { position: fixed; top: 20px; right: 20px; width: 420px; max-width: 90vw; max-height: 90vh; background: linear-gradient(145deg, #0a0a0f 0%, #1a1a25 50%, #0f0f18 100%); border: 2px solid transparent; background-clip: padding-box; border-radius: 20px; font-family: 'Inter', 'Segoe UI', sans-serif; color: white; user-select: none; z-index: 99999; touch-action: none; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2), 0 25px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); } #gold-ui::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 20px; padding: 2px; background: linear-gradient(45deg, #FFD700, #FF6B35, #8A2BE2, #FFD700); background-size: 400% 400%; animation: gradientShift 8s ease infinite; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: subtract; } @keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } } #gold-header { background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%); padding: 24px 28px; cursor: move; position: relative; border-bottom: 1px solid rgba(255, 215, 0, 0.2); backdrop-filter: blur(10px); } .header-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 2px; background: linear-gradient(90deg, transparent, #FFD700, transparent); opacity: 0.8; } .header-content { display: flex; justify-content: space-between; align-items: center; position: relative; } .brand-section { display: flex; align-items: center; gap: 16px; } .logo-container { width: 48px; height: 48px; background: linear-gradient(135deg, #FFD700, #FF6B35); border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3); } .logo-container::before { content: ''; position: absolute; inset: -2px; border-radius: 14px; background: linear-gradient(45deg, #FFD700, #FF6B35, #8A2BE2); z-index: -1; opacity: 0.7; animation: logoGlow 3s ease-in-out infinite alternate; } @keyframes logoGlow { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 1; transform: scale(1.05); } } .logo-text { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 800; color: #0a0a0f; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); } .brand-info { display: flex; flex-direction: column; } .brand-title { font-size: 24px; font-weight: 900; background: linear-gradient(135deg, #FFD700, #FF6B35); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2px; } .brand-subtitle { font-size: 11px; color: rgba(255, 215, 0, 0.7); text-transform: uppercase; letter-spacing: 3px; font-weight: 600; } .header-controls { display: flex; align-items: center; gap: 12px; } .status-indicator { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(0, 0, 0, 0.3); border-radius: 20px; border: 1px solid rgba(255, 215, 0, 0.3); } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #00ff88; animation: pulse 2s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } } .status-text { font-size: 10px; color: #00ff88; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; } #gold-close-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.7); font-weight: 700; font-size: 16px; cursor: pointer; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; backdrop-filter: blur(10px); } #gold-close-btn:hover { background: rgba(255, 107, 53, 0.2); border-color: #FF6B35; color: #FF6B35; transform: scale(1.1); } #gold-content { padding: 28px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; position: relative; } .content-glow { position: absolute; top: -50px; left: 50%; transform: translateX(-50%); width: 300px; height: 100px; background: radial-gradient(ellipse, rgba(255, 215, 0, 0.1) 0%, transparent 70%); pointer-events: none; } .prediction-section { background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 107, 53, 0.03) 100%); border: 1px solid rgba(255, 215, 0, 0.2); border-radius: 16px; padding: 24px; position: relative; overflow: hidden; } .prediction-section::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent); animation: shimmer 3s ease-in-out infinite; } @keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; position: relative; } .section-title { font-size: 16px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; } .section-title::before { content: '⚡'; font-size: 18px; animation: rotate 4s linear infinite; } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .mines-input-container { position: relative; } .mines-count-input { background: rgba(0, 0, 0, 0.4); border: 2px solid rgba(255, 215, 0, 0.3); color: white; padding: 12px 16px; border-radius: 12px; font-size: 14px; width: 120px; outline: none; text-align: center; font-weight: 600; transition: all 0.3s ease; backdrop-filter: blur(10px); } .mines-count-input:focus { border-color: #FFD700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); transform: scale(1.05); } .mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 24px 0; padding: 20px; background: rgba(0, 0, 0, 0.3); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); position: relative; backdrop-filter: blur(10px); } .mines-grid::before { content: ''; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 53, 0.05)); opacity: 0.5; } .grid-tile { aspect-ratio: 1; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; backdrop-filter: blur(5px); } .grid-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent); transform: translateX(-100%); transition: transform 0.6s ease; } .grid-tile:hover::before { transform: translateX(100%); } .grid-tile:hover { background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)); transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2); } .grid-tile.safe { background: linear-gradient(135deg, #FFD700, #FF6B35); border-color: #FFD700; color: #0a0a0f; transform: scale(1.15) translateY(-4px); box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 8px 25px rgba(255, 215, 0, 0.4); animation: safeGlow 2s ease-in-out infinite alternate; } @keyframes safeGlow { 0% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 8px 25px rgba(255, 215, 0, 0.4); } 100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 12px 35px rgba(255, 215, 0, 0.6); } } .grid-tile.safe::after { content: '💎'; font-size: 20px; animation: bounce 1s ease-in-out infinite alternate; } @keyframes bounce { 0% { transform: scale(1); } 100% { transform: scale(1.2); } } .control-section { display: flex; gap: 12px; margin-top: 20px; } .predict-button { flex: 2; background: linear-gradient(135deg, #FFD700, #FF6B35); border: none; border-radius: 14px; padding: 16px 24px; font-size: 14px; font-weight: 700; color: #0a0a0f; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-transform: uppercase; letter-spacing: 2px; position: relative; overflow: hidden; box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3); } .predict-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); transition: left 0.5s ease; } .predict-button:hover::before { left: 100%; } .predict-button:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4); } .predict-button:active { transform: translateY(-1px); } .predict-button:disabled { background: linear-gradient(135deg, #555, #333); cursor: not-allowed; transform: none; box-shadow: none; } .reset-button { flex: 1; background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 14px; padding: 16px 20px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.8); cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; backdrop-filter: blur(10px); } .reset-button:hover { background: rgba(255, 107, 53, 0.2); border-color: #FF6B35; color: #FF6B35; transform: translateY(-2px); } .status-bar { background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(255, 215, 0, 0.05)); border: 1px solid rgba(255, 215, 0, 0.2); padding: 16px 20px; border-radius: 12px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.8); min-height: 20px; display: flex; align-items: center; justify-content: center; position: relative; backdrop-filter: blur(10px); font-weight: 500; } .success-message { color: #00ff88; font-weight: 600; text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); } .error-message { color: #ff4757; font-weight: 600; text-shadow: 0 0 10px rgba(255, 71, 87, 0.5); } .loading-message { color: #FFD700; font-weight: 600; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); } .footer-info { text-align: center; font-size: 10px; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 2px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-weight: 500; } @media (max-width: 480px) { #gold-ui { width: 95vw; top: 10px !important; right: 2.5vw !important; left: 2.5vw !important; border-radius: 16px; } .mines-grid { gap: 6px; padding: 16px; } #gold-content { padding: 20px; } .brand-title { font-size: 20px; } .logo-container { width: 40px; height: 40px; } .control-section { flex-direction: column; } } `; document.head.appendChild(style); // Build UI const container = document.createElement("div"); container.id = "gold-ui"; container.innerHTML = `
G
Gold Predictions
Mines
${Array.from({length: 25}, (_, i) => `
`).join('')}
🚀 Ready to predict - Gold Predictions
`; document.body.appendChild(container);