@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
body {
background: linear-gradient(145deg, #0b2b3b 0%, #1a4a6f 100%);
font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
direction: rtl;
}
.container {
padding: 20px;
width: 100%;
max-width: 500px;
}
.card {
background: rgba(255,255,255,0.95);
border-radius: 48px;
padding: 40px 30px;
text-align: center;
box-shadow: 0 25px 45px rgba(0,0,0,0.3);
backdrop-filter: blur(2px);
}
.card h1 {
color: #ff8c42;
margin-bottom: 15px;
font-size: 2rem;
font-weight: bold;
}
.card p {
color: #2c3e4e;
margin-bottom: 25px;
font-size: 1rem;
}
input {
width: 100%;
padding: 14px 20px;
font-size: 1.2rem;
border: 2px solid #ddd;
border-radius: 60px;
margin-bottom: 20px;
text-align: center;
font-family: 'Vazir', monospace;
letter-spacing: 1px;
}
button {
background: #ff8c42;
border: none;
padding: 12px 30px;
font-size: 1.2rem;
font-weight: bold;
border-radius: 60px;
color: white;
cursor: pointer;
transition: 0.2s;
width: 100%;
font-family: 'Vazir', sans-serif;
}
button:hover {
background: #e67e22;
transform: scale(0.97);
}
.error {
margin-top: 20px;
color: #c0392b;
background: #ffe6e5;
padding: 10px;
border-radius: 30px;
font-family: 'Vazir', sans-serif;
}
.game-container {
width: 100vw;
height: 100vh;
position: relative;
background: radial-gradient(circle at 30% 40%, #1e5a7a, #0a2a3a);
overflow: hidden;
}
#bubbleCanvas {
display: block;
width: 100%;
height: 100%;
cursor: pointer;
}
/* پنجره مودال بزرگ برای نمایش نتایج */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.85);
backdrop-filter: blur(8px);
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.result-modal {
background: linear-gradient(135deg, #1e3c4c 0%, #2a5a6e 100%);
border-radius: 32px;
padding: 40px 35px;
max-width: 550px;
width: 90%;
text-align: center;
box-shadow: 0 30px 60px rgba(0,0,0,0.5);
border: 1px solid rgba(255,255,255,0.2);
animation: slideUp 0.3s ease;
direction: rtl;
}
@keyframes slideUp {
from {
transform: translateY(50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.result-modal.win {
border-top: 8px solid #f1c40f;
border-bottom: 8px solid #f1c40f;
}
.result-modal.lose {
border-top: 8px solid #e74c3c;
border-bottom: 8px solid #e74c3c;
}
.result-modal h2 {
font-size: 2rem;
margin-bottom: 20px;
color: #ffdd99;
}
.result-modal .prize-name {
font-size: 1.8rem;
font-weight: bold;
background: rgba(255,255,255,0.15);
padding: 15px;
border-radius: 20px;
margin: 15px 0;
color: #f9e45b;
}
.result-modal .message-text {
font-size: 1.1rem;
line-height: 1.8;
margin: 20px 0;
color: #e0e0e0;
}
.consolation-box {
background: rgba(0,0,0,0.4);
border-radius: 20px;
padding: 20px;
margin: 20px 0;
text-align: center;
}
.consolation-item {
background: #0f2c38;
padding: 12px;
border-radius: 12px;
margin: 10px 0;
direction: ltr;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.consolation-label {
color: #ffcc00;
font-weight: bold;
background: #1a4a5f;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.9rem;
}
.consolation-value {
font-family: monospace;
font-size: 1.2rem;
font-weight: bold;
letter-spacing: 1px;
color: #fff;
word-break: break-all;
}
.copy-btn {
background: #ff8c42;
border: none;
border-radius: 8px;
padding: 6px 12px;
cursor: pointer;
font-size: 0.9rem;
font-family: 'Vazir', sans-serif;
color: white;
transition: 0.2s;
width: auto;
display: inline-block;
}
.copy-btn:hover {
background: #e67e22;
transform: scale(0.95);
}
.modal-link {
display: inline-block;
background: #27ae60;
color: white;
text-decoration: none;
padding: 12px 25px;
border-radius: 40px;
margin: 15px 5px;
font-weight: bold;
transition: 0.2s;
font-size: 1rem;
}
.modal-link:hover {
background: #2ecc71;
transform: scale(1.02);
}
.close-modal-btn {
background: #7f8c8d;
border: none;
padding: 10px 25px;
border-radius: 40px;
color: white;
cursor: pointer;
font-size: 1rem;
font-family: 'Vazir', sans-serif;
margin-top: 10px;
transition: 0.2s;
width: auto;
display: inline-block;
}
.close-modal-btn:hover {
background: #95a5a6;
}
.modal-buttons {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
margin-top: 15px;
}
@media (max-width: 600px) {
.result-modal {
padding: 25px 20px;
width: 95%;
}
.result-modal h2 {
font-size: 1.5rem;
}
.result-modal .prize-name {
font-size: 1.3rem;
}
.consolation-value {
font-size: 0.9rem;
}
.consolation-item {
flex-direction: column;
}
}