Spaces:
Running

12ml / index.html
LOKILOPIN's picture
undefined - Initial Deployment
9b18747 verified
Raw History Blame Contribute Delete
20 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Brawl Stars Lucky Wheel - Win Free Rewards!</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
background: url('https://www2.0zz0.com/2025/07/20/10/582463997.jpg') no-repeat center center fixed;
background-size: cover;
color: white;
min-height: 100vh;
overflow-x: hidden;
}
.title-font {
font-family: 'Luckiest Guy', cursive;
}
.wheel-container {
position: relative;
width: 400px;
height: 400px;
margin: 0 auto;
border: 10px solid #ffd700;
border-radius: 25px;
box-shadow: 0 0 25px rgba(255,215,0,0.8), 0 0 50px rgba(255,215,0,0.6);
animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
transform: scale(0);
background: rgba(0,0,0,0.7);
padding: 25px;
}
@keyframes popIn {
0% { transform: scale(0); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}
.wheel {
width: 100%;
height: 100%;
border-radius: 50%;
position: relative;
overflow: hidden;
border: 8px solid #ffd700;
box-shadow: 0 0 0 8px #ff4500, 0 0 20px rgba(0,0,0,0.5);
transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
transform: rotate(0deg);
}
.wheel-item {
position: absolute;
width: 50%;
height: 50%;
transform-origin: bottom right;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-weight: bold;
font-size: 12px;
padding-left: 30px;
box-sizing: border-box;
}
.wheel-center {
position: absolute;
width: 100px;
height: 100px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10;
cursor: pointer;
transition: transform 0.2s;
}
.wheel-center:hover {
transform: translate(-50%, -50%) scale(1.1);
}
.winner-item {
animation: slideIn 0.5s ease-out;
}
@keyframes slideIn {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.pulse {
animation: pulse 1.5s infinite;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.8);
z-index: 100;
align-items: center;
justify-content: center;
}
.modal-content {
background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
padding: 20px;
border-radius: 15px;
width: 90%;
max-width: 400px;
text-align: center;
border: 4px solid #ffd700;
box-shadow: 0 0 20px rgba(255,215,0,0.5);
}
.blur-effect {
filter: blur(5px);
pointer-events: none;
}
.verification-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.7);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 5;
border-radius: 15px;
}
/* Responsive adjustments */
@media (max-width: 640px) {
.wheel-container {
width: 320px;
height: 320px;
padding: 15px;
}
.wheel-item {
font-size: 10px;
padding-left: 20px;
}
.wheel-center {
width: 80px;
height: 80px;
}
}
@media (max-width: 400px) {
.wheel-container {
width: 280px;
height: 280px;
}
.wheel-item {
font-size: 8px;
padding-left: 15px;
}
}
</style>
</head>
<body class="min-h-screen flex flex-col">
<!-- Header -->
<header class="py-4 px-4 relative bg-gradient-to-r from-purple-900 to-blue-900 border-b-4 border-yellow-400">
<button class="absolute left-4 top-1/2 transform -translate-y-1/2 text-white text-2xl">☰</button>
<div class="flex justify-center">
<img src="https://www2.0zz0.com/2025/07/20/09/474334469.png" alt="Brawl Stars Lucky Wheel" class="h-16 md:h-20">
</div>
</header>
<!-- Subheader -->
<div class="px-4 text-center mb-4">
<h2 class="text-xl md:text-2xl font-bold text-white animate-pulse">Try your chance to win any of the prizes on the wheel!</h2>
<img src="https://www2.0zz0.com/2025/07/20/10/323217116.gif" alt="Spin to win" class="mx-auto mt-4 h-20 animate-bounce">
</div>
<!-- Main Content -->
<main class="flex-grow flex flex-col items-center justify-center px-4 mt-8">
<!-- Wheel Container -->
<div class="wheel-container mb-12 relative mt-4">
<div class="wheel" id="wheel">
<div class="wheel-item" style="transform: rotate(0deg) skewY(45deg); background-color: #FF9F1C;">Common Skin</div>
<div class="wheel-item" style="transform: rotate(45deg) skewY(45deg); background-color: #2EC4B6;">1000 Gems</div>
<div class="wheel-item" style="transform: rotate(90deg) skewY(45deg); background-color: #E71D36;">2500 Coins</div>
<div class="wheel-item" style="transform: rotate(135deg) skewY(45deg); background-color: #FF9F1C;">5000 Gems</div>
<div class="wheel-item" style="transform: rotate(180deg) skewY(45deg); background-color: #2EC4B6;">50000 Gems</div>
<div class="wheel-item" style="transform: rotate(225deg) skewY(45deg); background-color: #E71D36;">Legendary Skin 1</div>
<div class="wheel-item" style="transform: rotate(270deg) skewY(45deg); background-color: #FF9F1C;">Legendary Skin 2</div>
<div class="wheel-item" style="transform: rotate(315deg) skewY(45deg); background-color: #2EC4B6;">Try Again</div>
<div class="wheel-item" style="transform: rotate(360deg) skewY(45deg); background-color: #FFD700; font-weight: 800;">πŸ”₯ EXTRA LEGENDARY SPIN</div>
</div>
<img src="https://www2.0zz0.com/2025/07/20/09/505401293.png" alt="Pointer" class="absolute top-0 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-16 z-20">
<img src="https://www2.0zz0.com/2025/07/20/10/861429410.png" alt="Spin Button" class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-24 h-24 cursor-pointer z-10 hover:scale-110 transition-transform duration-300" id="spinButton">
<button id="spinNowButton" class="mt-4 w-full bg-yellow-400 hover:bg-yellow-500 text-black font-bold py-2 px-4 rounded-full transition-all transform hover:scale-105">
SPIN NOW
</button>
</div>
<!-- Recent Winners -->
<div class="w-full max-w-md bg-black bg-opacity-50 rounded-lg p-4 mb-8">
<h3 class="text-yellow-300 font-bold text-lg mb-2 text-center">πŸ”₯ Recent Winners πŸ”₯</h3>
<div class="space-y-2" id="winnersList">
<!-- Winners will be added by JavaScript -->
</div>
</div>
</main>
<!-- Footer -->
<footer class="py-4 text-center text-sm text-gray-400">
<p>This is not an official Supercell promotion. All rewards are virtual.</p>
<p class="mt-1">Β© 2023 Brawl Stars Fan Site</p>
</footer>
<!-- First Spin Modal -->
<div class="modal" id="firstSpinModal">
<div class="modal-content">
<h3 class="text-2xl font-bold text-white mb-3">πŸŒ€ You still have 1 Free Spin remaining!</h3>
<p class="text-white mb-4">πŸ’‘ Try your luck again β€” a legendary reward might be waiting!</p>
<button id="spinAgainButton" class="bg-yellow-400 hover:bg-yellow-500 text-black font-bold py-3 px-6 rounded-full text-lg transition-all transform hover:scale-105">
SPIN AGAIN
</button>
</div>
</div>
<!-- Verification Modal -->
<div class="modal" id="verificationModal">
<div class="modal-content">
<h3 class="text-2xl font-bold text-white mb-3">⚠️ To unlock this spin, please complete a quick verification!</h3>
<p class="text-white mb-4">This helps us prevent bots and ensure fair rewards for everyone.</p>
<button id="unlockSpinButton" class="bg-green-500 hover:bg-green-600 text-white font-bold py-3 px-6 rounded-full text-lg transition-all transform hover:scale-105 pulse">
πŸ‘‰ Unlock Your Spin
</button>
</div>
</div>
<!-- Winning Modal -->
<div class="modal" id="winningModal">
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const wheel = document.getElementById('wheel');
const spinButton = document.getElementById('spinButton');
const spinNowButton = document.getElementById('spinNowButton');
const winnersList = document.getElementById('winnersList');
let isSpinning = false;
// Sample recent winners
const recentWinners = [
{ name: "Player123", reward: "5000 Gems" },
{ name: "BrawlMaster", reward: "Legendary Skin 1" },
{ name: "LuckyStar", reward: "2500 Coins" },
{ name: "SpinKing", reward: "1000 Gems" },
{ name: "ProGamer", reward: "50000 Gems" }
];
// Display recent winners
recentWinners.forEach(winner => {
const winnerElement = document.createElement('div');
winnerElement.className = 'flex justify-between items-center bg-gray-800 bg-opacity-50 p-2 rounded winner-item';
winnerElement.innerHTML = `
<span class="text-yellow-300">${winner.name}</span>
<span class="text-white font-bold">${winner.reward}</span>
`;
winnersList.appendChild(winnerElement);
});
// Function to handle spinning
function spinWheel() {
if (isSpinning) return;
isSpinning = true;
const spinDuration = 2500; // Fixed 2.5 second spin
wheel.style.transition = `transform ${spinDuration}ms cubic-bezier(0.17, 0.67, 0.12, 0.99)`;
const fullRotations = 5 + Math.floor(Math.random() * 3);
const targetDegrees = fullRotations * 360;
// Randomly choose between Try Again (315Β°) and EXTRA LEGENDARY SPIN (360Β°)
const finalPosition = Math.random() > 0.5 ? 315 : 360;
const totalRotation = targetDegrees + finalPosition;
wheel.style.transform = `rotate(${totalRotation}deg)`;
setTimeout(() => {
isSpinning = false;
wheel.style.transition = 'none';
wheel.style.transform = `rotate(${finalPosition % 360}deg)`;
if (finalPosition === 360) {
showLegendaryUnlockModal();
} else {
showTryAgainModal();
}
}, spinDuration);
}
function showTryAgainModal() {
const modal = document.getElementById('winningModal');
modal.innerHTML = `
<div class="modal-content">
<h3 class="text-2xl font-bold text-white mb-3">❌ Unlucky!</h3>
<p class="text-white mb-4">Try again next time!</p>
<button onclick="this.parentElement.parentElement.style.display='none'"
class="bg-gray-500 hover:bg-gray-600 text-white font-bold py-3 px-6 rounded-full text-lg transition-all transform hover:scale-105">
CLOSE
</button>
</div>
`;
modal.style.display = 'flex';
}
function showLegendaryUnlockModal() {
const modal = document.getElementById('winningModal');
modal.innerHTML = `
<div class="modal-content">
<h3 class="text-2xl font-bold text-white mb-3">πŸŽ‰ You've unlocked the Extra Legendary Spin!</h3>
<p class="text-white mb-4">πŸ”’ This spin is guaranteed to land on a Legendary reward. Complete verification to continue!</p>
<button id="unlockLegendarySpin"
class="bg-green-500 hover:bg-green-600 text-white font-bold py-3 px-6 rounded-full text-lg transition-all transform hover:scale-105 pulse">
βœ… Unlock Your Spin
</button>
</div>
`;
modal.style.display = 'flex';
document.getElementById('unlockLegendarySpin').addEventListener('click', function() {
modal.style.display = 'none';
// This would normally trigger your content locker
// For demo purposes, we'll simulate the verification
setTimeout(spinToLegendaryReward, 1000);
});
}
function spinToLegendaryReward() {
if (isSpinning) return;
isSpinning = true;
const spinDuration = 2500; // Fixed 2.5 second spin
wheel.style.transition = `transform ${spinDuration}ms cubic-bezier(0.17, 0.67, 0.12, 0.99)`;
const fullRotations = 5 + Math.floor(Math.random() * 3);
// High-value rewards: 90Β° (2500 Coins), 135Β° (5000 Gems), 180Β° (50000 Gems), 225Β° (Legendary Skin 1), 270Β° (Legendary Skin 2)
const highValuePositions = [90, 135, 180, 225, 270];
const finalPosition = highValuePositions[Math.floor(Math.random() * highValuePositions.length)];
const totalRotation = fullRotations * 360 + finalPosition;
wheel.style.transform = `rotate(${totalRotation}deg)`;
setTimeout(() => {
isSpinning = false;
wheel.style.transition = 'none';
wheel.style.transform = `rotate(${finalPosition % 360}deg)`;
showWinModal(finalPosition);
}, spinDuration);
}
function showWinModal(position) {
const modal = document.getElementById('winningModal');
let reward = '';
if (position === 90) reward = '2500 Coins';
else if (position === 135) reward = '5000 Gems';
else if (position === 180) reward = '50000 Gems';
else if (position === 225) reward = 'Legendary Skin 1';
else if (position === 270) reward = 'Legendary Skin 2';
modal.innerHTML = `
<div class="modal-content">
<h3 class="text-2xl font-bold text-white mb-3">🎊 Congratulations!</h3>
<p class="text-white mb-4">Your reward <strong>${reward}</strong> is now reserved!</p>
<button onclick="this.parentElement.parentElement.style.display='none'"
class="bg-yellow-400 hover:bg-yellow-500 text-black font-bold py-3 px-6 rounded-full text-lg transition-all transform hover:scale-105">
CLAIM REWARD
</button>
</div>
`;
modal.style.display = 'flex';
// Removed blur effect
// Add confetti effect
const confetti = document.createElement('div');
confetti.innerHTML = `
<style>
.confetti {
position: fixed;
width: 10px;
height: 10px;
background-color: #f00;
top: -10px;
z-index: 9999;
animation: confetti 5s ease-in-out;
}
@keyframes confetti {
0% { transform: translateY(0) rotate(0deg); opacity: 1; }
100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
</style>
`;
document.body.appendChild(confetti);
// Generate confetti
for (let i = 0; i < 100; i++) {
setTimeout(() => {
const piece = document.createElement('div');
piece.className = 'confetti';
piece.style.left = Math.random() * 100 + 'vw';
piece.style.backgroundColor = `hsl(${Math.random() * 360}, 100%, 50%)`;
piece.style.animationDuration = 3 + Math.random() * 3 + 's';
document.body.appendChild(piece);
// Remove after animation
setTimeout(() => piece.remove(), 6000);
}, i * 30);
}
}
// Add click handlers
spinButton.addEventListener('click', spinWheel);
spinNowButton.addEventListener('click', spinWheel);
wheel.addEventListener('click', spinWheel);
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=LOKILOPIN/12ml" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>