/* ─────────────────────────────────────────────────────────
   طراحی لوکس، شیک و پرانرژی (نسخه کامل - بدون حذف هیچ المانی)
   ---------------------------------------------------------- */

/* ── ریست و پایه ───────────────────────────────────────── */
#bszw-word-game-container {
    container-type: inline-size;
    position: relative;
    overflow: hidden;
    direction: rtl;
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    height: 100dvh;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* افکت پس‌زمینه ستاره‌های متحرک */
#bszw-word-game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
                      radial-gradient(1px 1px at 60px 90px, #ffd700, rgba(0,0,0,0));
    background-size: 50px 50px, 80px 80px;
    background-repeat: repeat;
    opacity: 0.15;
    pointer-events: none;
    animation: bszw-star-move 60s linear infinite;
}
@keyframes bszw-star-move {
    from { background-position: 0 0, 0 0; }
    to { background-position: 100px 100px, 150px 150px; }
}

/* ── هدر (نوار بالایی) ─────────────────────────────────── */
.bszw-word-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.bszw-word-game-coins {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.bszw-word-game-coin-icon { 
    font-size: 22px; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: bszw-coin-glow 2s infinite alternate;
}
@keyframes bszw-coin-glow {
    from { filter: drop-shadow(0 0 2px #FFD700); }
    to { filter: drop-shadow(0 0 8px #FFA500); }
}

.bszw-word-game-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #FFD700, #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bszw-word-game-btn-hint {
    background: linear-gradient(135deg, rgba(255,107,107,0.8), rgba(238,90,36,0.8));
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bszw-word-game-btn-hint:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.bszw-word-game-btn-hint:active {
    transform: translateY(2px);
}

/* ── پیام راهنما ───────────────────────────────────────── */
.bszw-word-game-hint-msg {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: bold;
    color: #FFD700;
    text-align: center;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
}

/* ── بخش بالایی ─────────────────────────────────────────── */
.bszw-word-game-top-section {
    flex: 1 1 45%; /* به جای 0 0 50% */
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ── لیست کلمات هدف ────────────────────────────────────── */
.bszw-word-game-words-area {
    margin-bottom: 15px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding-bottom: 10px;
}

.bszw-word-game-words-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 2.5cqi, 10px);
    justify-content: center;
    align-content: flex-start;
    max-height: 100%;
    overflow-y: auto;
    padding: 5px;
}

.bszw-word-game-word-row {
    display: flex;
    gap: clamp(3px, 1.5cqi, 5px);
}

/* ── خانه‌های کلمات ────────────────────────────────────── */
.bszw-word-game-letter-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3), 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.words-few .bszw-word-game-letter-box { width: clamp(28px, 10cqi, 48px); height: clamp(28px, 10cqi, 48px); font-size: clamp(16px, 5cqi, 24px); }
.words-medium .bszw-word-game-letter-box { width: clamp(22px, 8cqi, 38px); height: clamp(22px, 8cqi, 38px); font-size: clamp(12px, 4cqi, 20px); }
.words-many .bszw-word-game-letter-box { width: clamp(12px, 5cqi, 26px); height: clamp(12px, 5cqi, 26px); font-size: clamp(10px, 3cqi, 15px); border-width: 1px; border-radius: 5px; }

.bszw-word-game-letter-box.found {
    background: linear-gradient(135deg, #00b894, #00cec9);
    border-color: #55efc4;
    color: #fff;
    box-shadow: 0 0 15px rgba(0,206,201,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    animation: bszw-word-game-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bszw-word-game-letter-box.hinted {
    background: rgba(255, 215, 0, 0.25);
    border-color: #FFD700;
    color: #FFEAA7;
    box-shadow: inset 0 0 12px rgba(255,215,0,0.3);
}

@keyframes bszw-word-game-pop {
    0%   { transform: scale(0.3); opacity: 0; }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ── کلمه جاری (در حال ساخت) ───────────────────────────── */
.bszw-word-game-current-word-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    flex-shrink: 0;
    min-height: 40px;
}

.bszw-word-game-current-word {
    width: fit-content;
    margin: 0 auto;
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 30px;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 4px;
    color: #FFD700;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.2s;
}

/* ── بخش پایینی ───────────────────────────────────────── */
.bszw-word-game-bottom-section {
    flex: 1 1 55%; /* به جای 0 0 50% */
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center; /* اضافه کردن این خط برای بالانس محتوا */
}

/* ── پیام بازخورد (غلط/درست) ───────────────────────────── */
.bszw-word-game-feedback {
    position: absolute;
    bottom: 450px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 140px;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    z-index: 100;
    pointer-events: none;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.bszw-word-game-feedback.success { background: linear-gradient(135deg, #00b894, #00cec9); color: #fff; }
.bszw-word-game-feedback.error { background: linear-gradient(135deg, #ff7675, #d63031); color: #fff; }
.bszw-word-game-feedback.bonus { background: linear-gradient(135deg, #a29bfe, #6c5ce7); color: #fff; }
.bszw-word-game-feedback.warning { background: linear-gradient(135deg, #fdcb6e, #f39c12); color: #fff; }

/* ── دایره حروف ────────────────────────────────────────── */
.bszw-word-game-circle-wrap {
    position: relative;
    top: -30px;
    width: 40%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    margin: auto;
}

.bszw-word-game-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.bszw-word-game-letters-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 30px rgba(0,0,0,0.3), inset 0 5px 15px rgba(0,0,0,0.2);
}

/* ── دکمه‌های حروف (مهره‌ها) ───────────────────────────── */
.bszw-word-game-letter-btn {
    position: absolute;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(145deg, #2d3436, #1e272e);
    border: 2px solid rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #FFD700;
    cursor: pointer;
    z-index: 2;
    transition: all 0.15s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    touch-action: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.bszw-word-game-letter-btn:hover {
    background: linear-gradient(145deg, #3d4b50, #2d3a40);
    transform: translate(-50%, -50%) scale(1.02);
}

.bszw-word-game-letter-btn.active {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border-color: #fff;
    color: #2d3436;
    box-shadow: 0 0 20px rgba(255,215,0,0.8), inset 0 1px 0 rgba(255,255,255,0.5);
    transform: translate(-50%, -48%) scale(1.1);
}

/* ── دایره مرکزی تزئینی ────────────────────────────────── */
.bszw-word-game-letters-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.15), transparent);
    border: 1px dashed rgba(255,215,0,0.3);
}

/* ── دکمه‌های کناری دایره (راهنما و جابجایی) ───────────── */
.bszw-word-game-circle-extra-btn {
    position: absolute;
    bottom: -60px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; 
    gap: 2px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
}

.bszw-word-game-shuffle-btn {
    top: 240px;
    right: -70px;
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    box-shadow: 0 4px 12px rgba(108,92,231,0.4);
}

.bszw-word-game-hint-btn {
    top: 240px;
    left: -70px;
    background: linear-gradient(135deg, #fd79a8, #e84393);
    box-shadow: 0 4px 12px rgba(232,67,147,0.4);
}

.bszw-word-game-circle-extra-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.bszw-word-game-hint-btn::after {
    content: '40';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff7675;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ── صفحات ورود و انتخاب مرحله ─────────────────────────── */
.bszw-word-game-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bszw-word-game-login-box {
    text-align: center;
    padding: 40px 24px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    margin: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    width: 85%;
}

.bszw-word-game-login-box h2 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255,215,0,0.5);
}

.bszw-word-game-login-box input {
    width: 90%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    margin-bottom: 24px;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}
.bszw-word-game-login-box input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

/* ── دکمه‌های عمومی (ورود، مرحله بعد) ──────────────────── */
.bszw-word-game-btn-next {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,206,201,0.4);
}

.bszw-word-game-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,206,201,0.5);
}
.bszw-word-game-btn-next:active {
    transform: translateY(3px);
}

/* ── گرید انتخاب مراحل ─────────────────────────────────── */
.bszw-word-game-stages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 10px;
    overflow-y: auto;
}

.bszw-word-game-stage-card {
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bszw-word-game-stage-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255,255,255,0.1);
    filter: grayscale(0.3);
}

.bszw-word-game-stage-card.completed {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    border-color: #55efc4;
    box-shadow: 0 0 15px rgba(0,206,201,0.4);
}

.bszw-word-game-stage-card.current {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    color: #fff;
    border-color: #FFD700;
    animation: bszw-word-game-pulse 1.5s infinite;
}

@keyframes bszw-word-game-pulse {
    0% { box-shadow: 0 0 0 0 rgba(253,203,110,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(253,203,110,0); }
    100% { box-shadow: 0 0 0 0 rgba(253,203,110,0); }
}

.bszw-word-game-player-info { font-size: 15px; color: #dfe6e9; font-weight: bold; }
#bszw-word-game-display-name { color: #FFD700; }
#bszw-word-game-stage-screen-title { text-align: center; color: #fff; font-size: 22px; margin-top: 10px; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }

#bszw-word-game-letters-circle,
#bszw-word-game-lines-svg {
    overflow: visible !important;
}

/* ── مودال تبریک پایان مرحله ───────────────────────────── */
.bszw-word-game-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bszw-word-game-modal-content {
    background: linear-gradient(145deg, #1e272e, #2d3436);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 30px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: bszw-word-game-pop-modal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 85%;
    max-width: 340px;
}

.bszw-word-game-modal-icon {
    font-size: 70px;
    margin-bottom: 20px;
    animation: bszw-word-game-bounce-icon 2s infinite ease-in-out;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.bszw-word-game-modal-content h3 {
    color: #00cec9;
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.bszw-word-game-modal-content p {
    color: #dfe6e9;
    margin: 0 0 30px;
    font-size: 16px;
    line-height: 1.6;
}

#bszw-word-game-btn-back-to-grid { margin-top: 10px; width: 100%; }

@keyframes bszw-word-game-pop-modal {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes bszw-word-game-bounce-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── دکمه تمام صفحه ───────────────────────────────────── */
.bszw-word-game-fullscreen-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bszw-word-game-fullscreen-btn:hover { background: rgba(255,215,0,0.2); transform: scale(1.1); }

/* ── استایل‌های حالت تمام‌صفحه ─────────────────────────── */
#bszw-word-game-container:fullscreen, #bszw-word-game-container:-webkit-full-screen {
    max-width: 100%;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    overflow: hidden;
}
#bszw-word-game-container:fullscreen .bszw-word-game-screen,
#bszw-word-game-container:-webkit-full-screen .bszw-word-game-screen {
    max-width: 420px; width: 100%; margin: 0 auto;
}

/* ── بهبود ریسپانسیو ──────────────────────────────────── */
@media (max-width: 380px) {
    .bszw-word-game-circle-wrap { width: 75%; max-width: 180px; }
    .bszw-word-game-letter-btn { width: 46px; height: 46px; font-size: 20px; }
    .bszw-word-game-current-word { font-size: 18px; padding: 8px 18px; }
    .bszw-word-game-stages-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 320px) {
    .bszw-word-game-header { padding: 8px 10px; }
    .bszw-word-game-coins { font-size: 15px; }
    .bszw-word-game-circle-wrap { width: 80%; max-width: 160px; }
    .bszw-word-game-letter-btn { width: 40px; height: 40px; font-size: 18px; }
    .bszw-word-game-circle-extra-btn { width: 40px; height: 40px; font-size: 16px; }
}

@media (max-height: 600px) {
    .bszw-word-game-circle-wrap { top: -40px; width: 65%; max-width: 170px; }
    .bszw-word-game-shuffle-btn, .bszw-word-game-hint-btn { top: 240px; }
}

/* ── نوار جایزه 10 سکه در مودال پایان مرحله ───────────── */
.bszw-word-game-reward-badge {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    padding: 10px 24px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(253,203,110,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    border: 1px solid #FFD700;
    animation: bszw-word-game-coin-pop 1s infinite alternate;
}

@keyframes bszw-word-game-coin-pop {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(253,203,110,0.3); }
    100% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(253,203,110,0.6); }
}

/* ── قندون کلمات اضافی ─────────────────────────────────── */
.bszw-word-game-sugar-bowl-wrap {
    position: absolute;
    top: 240px;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

#bszw-word-game-sugar-bowl-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.fancy-sugar-bowl-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.fancy-sugar-bowl-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.sugar-bowl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    color: #FFD700;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
    pointer-events: none;
    font-family: tahoma, sans-serif;
}

#bszw-word-game-sugar-bowl-btn.sugar-bowl-ready .fancy-sugar-bowl-container {
    filter: drop-shadow(0 0 15px #FFD700);
    animation: bounceShake 0.8s infinite;
}

@keyframes bounceShake {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.08) rotate(-4deg); }
  50% { transform: scale(1.08) rotate(4deg); }
  75% { transform: scale(1.08) rotate(-4deg); }
}

/* افکت جذاب برای نمایش دریافت سکه */
.bszw-coin-reward-popup {
    position: fixed;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2d3436;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(255,215,0,0.5);
    z-index: 999999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: bszw-float-up 1.2s ease-out forwards;
    border: 2px solid #fff;
}

.flying-coin-anim {
    position: fixed;
    font-size: 35px;
    z-index: 9999999;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes bszw-float-up {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    20% { opacity: 1; transform: translate(-50%, -70%) scale(1.2); }
    80% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -130%) scale(0.7); }
}

.bszw-btn-icon {
    font-size: 20px;
    line-height: 1;
}

.bszw-btn-text {
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

/* تبلیغات و دکمه محصول پیشنهادی */
@keyframes bszw-pulse-btn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,215,0,0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 10px 5px rgba(255,215,0,0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,215,0,0); }
}

.bszw-promo-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    color: #2d3436;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1.2;
    text-align: center;
    margin: 0 10px;
    font-family: inherit;
    transition: transform 0.2s, filter 0.2s;
    animation: bszw-pulse-btn 2s infinite;
}

.bszw-promo-btn:active {
    transform: scale(0.95) !important;
    filter: brightness(0.95);
    animation: none;
}

.bszw-promo-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bszw-promo-content {
    background: linear-gradient(145deg, #2d3436, #1e272e);
    width: 80%;
    max-width: 320px;
    padding: 15px;
    border-radius: 16px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 2px solid #FFD700;
}

.bszw-promo-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff7675;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid white;
    z-index: 10;
}

/* اسپینر لودینگ */
.bszw-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.bszw-spinner > div {
    width: 14px;
    height: 14px;
    background-color: #FFD700;
    border-radius: 50%;
    animation: bszw-bounce 1.4s infinite ease-in-out both;
}

.bszw-bounce1 { animation-delay: -0.32s; }
.bszw-bounce2 { animation-delay: -0.16s; }

@keyframes bszw-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ── نوار اطلاعات چالش (حالت رقابتی) ───────────────────── */
#bszw-challenge-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: #fff;
    font-family: Tahoma, sans-serif;
}

.challenge-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
}

#bszw-challenge-timer {
    color: #fca5a5;
    font-size: 18px;
}

#bszw-challenge-score {
    color: #a7f3d0;
    font-size: 18px;
}

#bszw-challenge-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 16px;
    padding: 10px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.bszw-challenge-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bszw-challenge-stat-label {
    font-size: 11px;
    color: #bfdbfe;
    margin-bottom: 2px;
    font-weight: bold;
}

.bszw-challenge-stat-value {
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#bszw-challenge-timer-display { color: #fca5a5; }
#bszw-challenge-score-display { color: #a7f3d0; }

/* ── مودال اشتراک‌گذاری رقابت ─────────────────────────── */
#bszw-challenge-share-modal {
    display: none;
}

#bszw-challenge-share-modal .bszw-word-game-modal-content {
    background: linear-gradient(145deg, #1e272e, #2d3436);
    border: 2px solid #FFD700;
    max-width: 360px;
}

.bszw-challenge-share-box {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    border: 1px dashed rgba(255,215,0,0.3);
}

#bszw-challenge-share-link {
    display: block;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #FFD700;
    word-break: break-all;
    margin-top: 10px;
    user-select: all;
    -webkit-user-select: text;
}

.bszw-challenge-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bszw-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
}

.bszw-share-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.bszw-share-sms {
    background: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.bszw-share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

#bszw-challenge-btn-close-share {
    background: transparent;
    border: 1px solid rgba(255,215,0,0.3);
    color: #FFD700;
    box-shadow: none;
}

#bszw-word-game-container {
    position: relative;
    overflow: hidden;
}

#bszw-join-challenge-modal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

#bszw-challenge-progress-bar {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 15px auto;
    text-align: center;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
}

.bszw-progress-text {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.bszw-progress-track {
    width: 100%;
    height: 12px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#bszw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b894, #00cec9);
    width: 0%;
    transition: width 0.4s ease-in-out;
    box-shadow: 0 0 8px rgba(0,206,201,0.5);
}

/* سایز پویا برای مربع‌های کلمات در چالش */
#bszw-word-game-words-list.challenge-mode .bszw-word-game-word-row {
    transition: all 0.3s ease;
}

/* ✅ در حالت چالش، همان سایزهای حالت عادی اعمال بشه */
#bszw-word-game-words-list.challenge-mode.words-few .bszw-word-game-letter-box { 
    width: clamp(28px, 10cqi, 48px); 
    height: clamp(28px, 10cqi, 48px); 
    font-size: clamp(16px, 5cqi, 24px); 
}
#bszw-word-game-words-list.challenge-mode.words-medium .bszw-word-game-letter-box { 
    width: clamp(22px, 8cqi, 38px); 
    height: clamp(22px, 8cqi, 38px); 
    font-size: clamp(12px, 4cqi, 20px); 
}
#bszw-word-game-words-list.challenge-mode.words-many .bszw-word-game-letter-box { 
    width: clamp(12px, 5cqi, 26px); 
    height: clamp(12px, 5cqi, 26px); 
    font-size: clamp(10px, 3cqi, 15px); 
    border-width: 1px; 
    border-radius: 5px; 
}

.bszw-word-game-current-word:empty {
    opacity: 0;
    visibility: hidden;
}

.bszw-feedback-show {
    animation: bszw-feedback-float 1.2s ease forwards;
}

@keyframes bszw-feedback-float {
    0% { opacity: 0; transform: translate(-50%, 10px) scale(0.9); }
    20% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -40px) scale(0.9); }
}


/* ── تبلیغ ورودی (بدون سکه) ───────────────────────────── */
.bszw-entry-promo-overlay {
        position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bszw-entry-promo-content {
   background: linear-gradient(145deg, #2d3436, #1e272e);
    width: 80%;
    max-width: 320px;
    padding: 15px;
    border-radius: 16px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 2px solid #FFD700;
}

.bszw-entry-promo-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff7675;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid white;
    z-index: 10;
}

#bszw-entry-promo-image-container {
    width: 100%;
}

#bszw-entry-promo-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}