/* Кнопка Пропустить сверху справа */
.onboarding-skip-top {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.98rem;
    cursor: pointer;
    z-index: 10;
    padding: 8px 12px;
}

.onboarding-skip-top:hover {
    color: #475569;
}

/* Остальные стили (можно оставить предыдущие, только добавь это если нужно) */
.onboarding-back {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.onboarding-back.visible {
    opacity: 1;
    visibility: visible;
}

/* === Онбординг - финальная версия === */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.onboarding-modal {
    position: relative;
    background: white;
    max-width: 500px;
    width: 92%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.onboarding-progress {
    height: 6px;
    background: #f1f5f9;
}

.onboarding-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    transition: width 0.4s ease;
}

.onboarding-slides {
    padding: 48px 40px 32px;
    text-align: center;
    min-height: 340px;
}

.onboarding-slide {
    display: none;
    flex-direction: column;
    align-items: center;
}

.onboarding-slide.active {
    display: flex;
}

.onboarding-illustration {
    font-size: 6rem;
    margin-bottom: 28px;
}

.onboarding-slide h2 {
    font-size: 1.85rem;
    margin-bottom: 14px;
}

.onboarding-slide p {
    color: #64748b;
    font-size: 1.07rem;
    line-height: 1.5;
    max-width: 380px;
}

/* Кнопки */
.onboarding-controls {
    padding: 20px 40px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
}

.onboarding-back {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.onboarding-back.visible {
    opacity: 1;
    visibility: visible;
}

.onboarding-next {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
    transition: all 0.3s;
}

.onboarding-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

.onboarding-dots {
    display: flex;
    gap: 8px;
}

.onboarding-dots span {
    width: 9px;
    height: 9px;
    background: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.onboarding-dots span.active {
    background: #7c3aed;
    transform: scale(1.4);
}

.achievement-unlock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: none;         
    align-items: center;
    justify-content: center;
    z-index: 20000;
    transition: opacity 0.4s ease;
}

/* убери .achievement-unlock-overlay.show полностью — оно больше не нужно */

.achievement-unlock-modal {
    background: white;
    width: 100%;
    max-width: 560px;      /* было 420px */
    border-radius: 28px;
    padding: 64px 48px;    /* было 48px 32px */
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
}

.achievement-icon-big {
    font-size: 9rem;        /* было 6.5rem */
    margin-bottom: 24px;
    display: block;
    animation: popIn 0.6s ease;
}

.achievement-unlock-modal h2 {
    font-size: 2.2rem;      /* было 1.65rem */
    margin-bottom: 12px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.achievement-name {
    font-size: 1.7rem;      /* было 1.35rem */
    font-weight: 700;
    margin: 10px 0 16px;
    color: #1e2937;
}

.achievement-desc {
    font-size: 1.05rem;     /* добавил явный размер */
    color: #64748b;
    line-height: 1.6;
}

.achievement-xp {
    margin: 28px 0;
    padding: 12px 32px;     /* было 10px 24px */
    background: linear-gradient(90deg, #f3e8ff, #e0d4ff);
    color: #6b21a8;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
    font-size: 1.4rem;      /* было 1.1rem */
}

.claim-btn {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    color: white;
    border: none;
    padding: 18px 64px;     /* было 16px 48px */
    font-size: 1.2rem;      /* было 1.1rem */
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 16px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
    transition: all 0.3s;
}

.achievement-hint {
    margin-top: 32px;
    font-size: 1rem;        /* было 0.9rem */
    color: #94a3b8;
}
/* Конфетти */
.achievement-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 28px;
}

.confetto {
    position: absolute;
    top: -20px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

