.center-action-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    z-index: 20;
    margin-top: 10px; 
    flex-shrink: 0;
}

.clicker-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Светящийся шейп за персонажем */
.biceps-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    background-color: #7596f9;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.65;
    z-index: 1;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Обертка персонажа */
.clicker-button {
    position: relative;
    width: 200px;
    height: 200px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    border: none;
    transform: scale(0) rotate(-8deg);
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

#app-content.visible .clicker-button {
    animation: bicepsGrowth 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.3s;
}

@keyframes bicepsGrowth {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}

.clicker-coin-img {
    width: 180px;
    height: 180px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Звезды */
.star-wrapper {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.star-img {
    width: 100%;
    height: 100%;
    display: block;
    animation: floatSway 4s ease-in-out infinite alternate;
}

.star-left-1 { left: 55px; top: 40px; transform: translate(-30px, -10px) scale(0.3); }
.star-left-2 { left: 0px; top: 85px; transform: translate(-80px, 0) scale(0.3); }   
.star-left-3 { left: 45px; top: 140px; transform: translate(-60px, 10px) scale(0.3); } 
.star-left-4 { left: 5px; top: 200px; transform: translate(-80px, 15px) scale(0.3); }  
.star-left-5 { left: 75px; top: 250px; transform: translate(-30px, 10px) scale(0.3); }
.star-left-6 { left: -30px; top: 145px; transform: translate(-90px, 10px) scale(0.3); } 

.star-right-1 { right: 55px; top: 45px; transform: translate(30px, -10px) scale(0.3); }
.star-right-2 { right: 0px; top: 90px; transform: translate(80px, 0) scale(0.3); }   
.star-right-3 { right: 45px; top: 145px; transform: translate(60px, 10px) scale(0.3); } 
.star-right-4 { right: 5px; top: 205px; transform: translate(80px, 15px) scale(0.3); }  
.star-right-5 { right: 75px; top: 245px; transform: translate(30px, 10px) scale(0.3); }
.star-right-6 { right: -30px; top: 150px; transform: translate(90px, 10px) scale(0.3); } 

#app-content.visible .star-wrapper { opacity: 1; }
#app-content.visible .star-left-1 { transform: translate(0, 0) scale(1.1); }
#app-content.visible .star-left-2 { transform: translate(0, 0) scale(0.75); }
#app-content.visible .star-left-3 { transform: translate(0, 0) scale(0.95); }
#app-content.visible .star-left-4 { transform: translate(0, 0) scale(0.8); }
#app-content.visible .star-left-5 { transform: translate(0, 0) scale(1.05); }
#app-content.visible .star-left-6 { transform: translate(0, 0) scale(0.85); }

#app-content.visible .star-right-1 { transform: translate(0, 0) scale(1.15); }
#app-content.visible .star-right-2 { transform: translate(0, 0) scale(0.8); }
#app-content.visible .star-right-3 { transform: translate(0, 0) scale(1); }
#app-content.visible .star-right-4 { transform: translate(0, 0) scale(0.7); }
#app-content.visible .star-right-5 { transform: translate(0, 0) scale(1.05); }
#app-content.visible .star-right-6 { transform: translate(0, 0) scale(0.9); }

/* Анимация звезд */
.star-left-1 .star-img { animation-duration: 4.0s; animation-delay: 0.1s; }
.star-left-2 .star-img { animation-duration: 5.0s; animation-delay: 0.3s; animation-direction: alternate-reverse; }
.star-left-3 .star-img { animation-duration: 4.2s; animation-delay: 0.5s; }
.star-left-4 .star-img { animation-duration: 4.8s; animation-delay: 0.2s; animation-direction: alternate-reverse; }
.star-left-5 .star-img { animation-duration: 3.6s; animation-delay: 0.4s; }
.star-left-6 .star-img { animation-duration: 4.6s; animation-delay: 0.15s; }

.star-right-1 .star-img { animation-duration: 4.5s; animation-delay: 0.2s; }
.star-right-2 .star-img { animation-duration: 3.8s; animation-delay: 0.4s; animation-direction: alternate-reverse; }
.star-right-3 .star-img { animation-duration: 4.7s; animation-delay: 0.6s; }
.star-right-4 .star-img { animation-duration: 4.1s; animation-delay: 0.3s; animation-direction: alternate-reverse; }
.star-right-5 .star-img { animation-duration: 4.4s; animation-delay: 0.5s; }
.star-right-6 .star-img { animation-duration: 4.3s; animation-delay: 0.25s; }

.star-bright { opacity: 1.0; }
.star-medium { opacity: 0.65; }
.star-dim { opacity: 0.35; }

@keyframes floatSway {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
    100% { transform: translateY(4px) rotate(-5deg); }
}

/* Уровень пампера слева вверху */
.pamper-level-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10;
}

.pamper-level-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.pamper-level-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(180deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Карточка питомца */
.main-hero-card {
    background-color: #13151b;
    background-image: url('pat.svg'); 
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 32px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 346px;
    position: relative;
    z-index: 10;
    box-shadow: inset 8px 6px 1px -8px rgba(255, 255, 255, 0.42),
                inset -8px -6px 1px -8px rgba(255, 255, 255, 0.0),
                inset 8px 8px 30px rgba(0, 0, 0, 0.1),
                inset -8px -8px 30px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
}

/* Слой для прозрачности картинки */
.main-hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background-image: url('pat.png');
    background-size: 100%; 
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3; 
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Рамка */
.main-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.0) 40%, 
        rgba(255, 255, 255, 0.0) 60%, 
        rgba(255, 255, 255, 0.0) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

.seriychik-info-block {
    width: 100%;
    max-width: 346px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 30;
    box-sizing: border-box;
}

.seriychik-main-title {
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.4px;
    color: #FFFFFF; 
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.rename-trigger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8E8E93;
    transition: color 0.2s ease, transform 0.1s ease;
}

.rename-trigger-btn:active {
    transform: scale(0.85);
    color: #FFFFFF;
}

/* Поле быстрого инлайн переименования без рамок */
.inline-rename-input {
    background: transparent !important;
    border: none !important;
    border-bottom: 1.5px dashed rgba(255, 255, 255, 0.4) !important;
    border-radius: 0 !important;
    color: #FFFFFF !important;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    padding: 2px 0 !important;
    text-align: center;
    outline: none;
    width: 180px;
    box-shadow: none !important;
    caret-color: #5856d6;
}

.seriychik-main-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #E5E5EA;
    text-align: left;
    font-weight: 400;
}

.seriychik-highlight {
    color: #FFFFFF;
    font-weight: 600;
}

/* Карточка Ежедневных заданий */
.pamper-quest-card {
    background-color: #2C2C2E;
    border-radius: 32px;
    padding: 18px;
    width: 100%;
    max-width: 346px;
    margin-top: -60px; 
    padding-top: 74px; 
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 8px 6px 1px -8px rgba(255, 255, 255, 0.0),
                inset -8px -6px 1px -8px rgba(255, 255, 255, 0.42),
                inset 8px 8px 30px rgba(0, 0, 0, 0.1),
                inset -8px -8px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

.pamper-quest-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.0) 0%, 
        rgba(255, 255, 255, 0.0) 40%, 
        rgba(255, 255, 255, 0.0) 60%, 
        rgba(255, 255, 255, 0.4) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

.pamper-quest-header {
    font-size: 14px;
    font-weight: 600;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

/* Строка задания */
.task-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Галочка слева */
.task-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.task-checkbox.completed {
    background-color: #34c759 !important;
    border-color: #34c759 !important;
}

.task-checkbox svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.task-checkbox.completed svg {
    opacity: 1;
}

/* Правая часть с названием и опытом */
.task-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    text-align: left;
}

.task-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.task-xp-reward {
    font-size: 11px;
    font-weight: 600;
    color: #34c759;
    text-align: left;
}

.task-progress-badge {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Кнопка "Забрать" для заданий */
.task-claim-btn {
    position: relative;
    background: linear-gradient(90deg, #34c759, #30D158);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    padding: 6px 14px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 4px 3px 1px -4px rgba(255, 255, 255, 0.5),
                inset -4px -3px 1px -4px rgba(255, 255, 255, 0.3),
                inset 4px 4px 14px rgba(0, 0, 0, 0.15),
                inset -4px -4px 14px rgba(0, 0, 0, 0.15);
}

.task-claim-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 0.9px;
    background: linear-gradient(165deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.0) 40%, 
        rgba(255, 255, 255, 0.0) 60%, 
        rgba(255, 255, 255, 0.5) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

.task-claim-btn:active {
    transform: scale(0.95);
}

.task-claim-btn:disabled {
    background: #3A3A3C;
    color: #8E8E93;
    cursor: not-allowed;
    box-shadow: none;
}

.task-claim-btn:disabled::before {
    display: none;
}

/* Статистика Сетка */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 352px;
    margin-top: 10px;
}

.stats-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.stats-block-premium {
    background-color: #2C2C2E;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stats-block-premium.full-width {
    width: 100%;
}

.stats-block-premium.level-premium-block {
    background: linear-gradient(135deg, #2c2c2e 0%, #1c2536 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.level-dots-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px);
    background-size: 8px 8px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

.level-block-content {
    position: relative;
    z-index: 5;
    width: 100%;
}

.stats-block-title {
    font-size: 12px;
    font-weight: 500;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.stats-block-value {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
}

.stats-block-subtitle {
    font-size: 11px;
    color: #8E8E93;
    margin-top: 4px;
}

/* Шкала опыта */
.pamper-xp-container {
    width: 100%;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pamper-xp-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.pamper-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #008BFF, #00C6FF);
    border-radius: 100px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pamper-xp-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.xp-progress-container {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.xp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #008BFF, #00C6FF);
    width: 0%;
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Индикатор предупреждений */
.warns-indicator-container {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    transition: opacity 0.3s ease;
}

.warns-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.warns-dot.active {
    background-color: #FF453A;
    box-shadow: 0 0 6px rgba(255, 69, 58, 0.5);
}

/* Скелетоны */
.skeleton-text {
    position: relative;
    overflow: hidden;
    background-color: #3A3A3C !important;
    color: transparent !important;
    border-radius: 6px;
    display: inline-block;
    min-width: 65px;
    height: 22px;
    pointer-events: none;
}

.skeleton-text::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
    animation: shimmerEffect 1.3s infinite;
}

.skeleton-progress {
    background: #3A3A3C !important;
    position: relative;
    overflow: hidden;
    width: 100% !important;
}

.skeleton-progress::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
    animation: shimmerEffect 1.3s infinite;
}

.skeleton-card-premium {
    position: relative !important;
    overflow: hidden !important;
    background-image: none !important; 
    background-color: #2C2C2E !important; 
    border-color: rgba(255, 255, 255, 0.05) !important;
    pointer-events: none;
}

.skeleton-card-premium::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shimmerEffect 1.3s infinite;
    z-index: 10;
}

.skeleton-card-premium * {
    opacity: 0 !important;
}

@keyframes shimmerEffect {
    100% { transform: translateX(100%); }
}

.pamper-active-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Премиальный полноэкранный Level Up оверлей */
.level-up-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 11, 14, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
}

.level-up-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.level-up-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.level-up-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #FFFFFF 0%, #30D158 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 10px;
    margin-bottom: 6px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

.level-up-overlay.active .level-up-title {
    animation: levelUpTextIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.4s;
}

.level-up-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(15px);
}

.level-up-overlay.active .level-up-subtitle {
    animation: levelUpFadeIn 0.6s ease forwards;
    animation-delay: 0.9s;
}

/* Кнопка ОК внизу оверлея */
.level-up-btn {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 52px;
    background-color: #34C759;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: inset 8px 6px 1px -8px rgba(255, 255, 255, 0.45),
                inset -8px -6px 1px -8px rgba(255, 255, 255, 0.45),
                0 10px 24px rgba(52, 199, 89, 0.35);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.2s ease,
                box-shadow 0.2s ease;
}

.level-up-overlay.active .level-up-btn {
    animation: levelUpFadeIn 0.6s ease forwards;
    animation-delay: 1.3s;
}

.level-up-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 0.9px;
    background: linear-gradient(165deg, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.0) 40%, 
        rgba(255, 255, 255, 0.0) 60%, 
        rgba(255, 255, 255, 0.45) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

.level-up-btn:active {
    transform: scale(0.97) translateY(0);
    background-color: #248a3d;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
}

@keyframes levelUpTextIn {
    0% { transform: translateY(20px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes levelUpFadeIn {
    0% { transform: translateY(15px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}