/* ==========================================================================
   css/games.css — ৫টি গেম ও লিডারবোর্ডের আলাদা কালার থিম + স্লিম টোস্ট আপগ্রেড
   ========================================================================== */

/* ১. স্লিম ও প্রিমিয়াম টোস্ট ওভাররাইড (পুরোনো style.css না ধরেই ঠিক হবে) */
.toast {
    top: 14px !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    gap: 6px !important;
    max-width: 88% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-shadow: 0 6px 18px rgba(47, 188, 99, 0.3) !important;
}

/* ২. কমন গেম পেজ হেডার ও কার্ড শেল */
.game-page-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 10px;
}

.game-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.game-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid var(--pink-border);
    color: var(--neon-pink);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(47, 188, 99, 0.08);
}

.game-limit-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1.5px solid #d6fae3;
    color: var(--text-dark);
}

.game-hero-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px 15px;
    border: 2px solid #eafdf1;
    box-shadow: 0 10px 28px rgba(47, 188, 99, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-hero-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.game-hero-sub {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.game-cta-btn {
    width: 100%;
    padding: 13px 16px;
    border-radius: 16px;
    border: 2px solid #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.2s ease;
}
.game-cta-btn:disabled {
    background: #e2e8f0 !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.btn-gold-3d {
    background: linear-gradient(180deg, #ffe600 0%, #ffaa00 100%);
    color: #573300;
    box-shadow: 0 7px 18px rgba(255, 170, 0, 0.36);
}
.btn-emerald-3d {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(16, 185, 129, 0.34);
}
.btn-amber-3d {
    background: linear-gradient(135deg, #ff9900 0%, #ff5500 100%);
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(255, 102, 0, 0.32);
}
.btn-crimson-3d {
    background: linear-gradient(135deg, #3fcf74 0%, #e11d48 100%);
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(225, 29, 72, 0.34);
}

.game-info-card {
    background: #ffffff;
    border: 1.5px solid #eafdf1;
    border-radius: 20px;
    padding: 13px 14px;
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.55;
}
.game-info-card h5 {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   ৩. লাকি স্পিন থিম (গোলাপি + বেগুনি + গোল্ড)
   ========================================================================== */
.theme-spin {
    background: linear-gradient(180deg, #f6fef9 0%, #ffffff 55%, #fff9eb 100%);
    border-color: #c8f9da;
}
.spin-stage {
    position: relative;
    width: 226px;
    height: 226px;
    margin: 4px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spin-pointer {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 22px solid #0c2616;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
    z-index: 15;
}
.spin-outer-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, #ffe600, #2fbc63, #8b5cf6, #ffe600);
    box-shadow: 0 12px 30px rgba(47, 188, 99, 0.28);
}
.spin-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform 3.6s cubic-bezier(0.14, 0.86, 0.18, 1);
}
.spin-slice-label {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 0.82rem;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}
.spin-center-cap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3.5px solid #2fbc63;
    color: #2fbc63;
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 10;
}
.spin-rewards-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}
.spin-reward-chip {
    background: #f2fdf6;
    border: 1px solid #d6fae3;
    color: #279e53;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
}

/* ==========================================================================
   ৪. স্ক্র্যাচ কার্ড থিম (এমারেল্ড সবুজ + সিলভার + গোল্ড)
   ========================================================================== */
.theme-scratch {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 55%, #f0fdf4 100%);
    border-color: #a7f3d0;
}
.scratch-card-frame {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 152px;
    margin: 0 auto 14px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.24);
    background: linear-gradient(135deg, #fffbeb 0%, #ecfdf5 100%);
}
.scratch-prize-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.scratch-win-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #047857;
    background: #d1fae5;
    padding: 2px 10px;
    border-radius: 50px;
}
.scratch-win-amount {
    font-size: 2.1rem;
    font-weight: 800;
    color: #059669;
    line-height: 1.1;
}
.scratch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: pointer;
    transition: opacity 0.4s ease;
}
.scratch-hint-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 5px 13px;
    border-radius: 50px;
}

/* ==========================================================================
   ৫. ম্যাথ কুইজ থিম (অ্যাম্বার কমলা + ভায়োলেট পার্পল)
   ========================================================================== */
.theme-quiz {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 55%, #faf5ff 100%);
    border-color: #fde68a;
}
.quiz-score-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.quiz-stat-pill {
    background: #fff9eb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 8px;
}
.quiz-stat-pill span {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #92400e;
}
.quiz-stat-pill strong {
    font-size: 0.96rem;
    font-weight: 800;
    color: #b45309;
}
.quiz-question-box {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 20px 14px;
    margin-bottom: 14px;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.28);
}
.quiz-q-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #fde047;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 50px;
    margin-bottom: 6px;
}
.quiz-q-text {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.quiz-opt-btn {
    padding: 13px 10px;
    background: #ffffff;
    border: 2px solid #e9d5ff;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #5b21b6;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.08);
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.quiz-opt-btn.is-correct {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    transform: scale(1.04);
}
.quiz-opt-btn.is-wrong {
    background: #ef4444 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    animation: quizShake 0.35s ease;
}
@keyframes quizShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ==========================================================================
   ৬. ভিডিও দেখে আয় থিম (ক্রিমসন লাল + গোলাপি)
   ========================================================================== */
.theme-video {
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 55%, #f6fef9 100%);
    border-color: #fecdd3;
}
.video-screen-box {
    background: linear-gradient(135deg, #0b1b11 0%, #10351e 100%);
    border-radius: 18px;
    padding: 24px 16px;
    color: #ffffff;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(225, 29, 72, 0.24);
}
.video-play-pulse {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3fcf74, #e11d48);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 10px;
    box-shadow: 0 0 0 8px rgba(63, 207, 116, 0.2);
}
.video-timer-text {
    font-size: 1rem;
    font-weight: 800;
    color: #fde047;
    margin-bottom: 8px;
}
.video-progress-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    overflow: hidden;
}
.video-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffe600, #3fcf74);
    border-radius: 50px;
    transition: width 0.9s linear;
}

/* ==========================================================================
   ৭. লিডারবোর্ড থিম (রয়্যাল গোল্ড + সিলভার + ব্রোঞ্জ পোডিয়াম)
   ========================================================================== */
.theme-leader {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 60%, #fffbeb 100%);
    border-color: #bfdbfe;
}
.lb-podium-grid {
    display: grid;
    grid-template-columns: 1fr 1.12fr 1fr;
    gap: 8px;
    align-items: end;
    margin: 12px 0 6px;
}
.lb-podium-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px 6px;
    text-align: center;
    position: relative;
}
.lb-podium-card.rank-1 {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border-color: #f59e0b;
    padding: 14px 6px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.22);
}
.lb-podium-card.rank-2 {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-color: #94a3b8;
}
.lb-podium-card.rank-3 {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: #d97706;
}
.lb-crown-float {
    font-size: 1.15rem;
    margin-bottom: 3px;
    display: block;
}
.lb-podium-av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
    margin: 0 auto 5px;
    display: block;
}
.lb-podium-card.rank-1 .lb-podium-av {
    width: 54px;
    height: 54px;
    border-color: #f59e0b;
}
.lb-podium-name {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 3px;
}
.lb-podium-pill {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 50px;
}
.lb-podium-card.rank-1 .lb-podium-pill {
    background: #fef3c7;
    color: #92400e;
}

.lb-list-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 12px;
}
.lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
    border-bottom: 1px solid #f1f5f9;
    gap: 8px;
}
.lb-row:last-child { border-bottom: none; }
.lb-row.is-me {
    background: #f2fdf6;
    border-radius: 12px;
    border-bottom: none;
}
.lb-rank-num {
    width: 24px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}
.lb-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.lb-user-info img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.lb-user-info h6 {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-user-info span {
    font-size: 0.64rem;
    color: var(--text-muted);
    font-weight: 600;
}
.lb-score-pill {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--neon-pink);
    background: var(--pink-light);
    border: 1px solid var(--pink-border);
    padding: 3px 9px;
    border-radius: 50px;
    flex-shrink: 0;
}