* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #AAE5A3;
    font-family: sans-serif;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    text-align: center;
    max-width: 650px;
    width: 100%;
}

/* Имя персонажа */

/* Карусель */
.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1b4332;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, background-color 0.2s ease;
    flex-shrink: 0;
    user-select: none;
}

.nav-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.92);
}

/* Контейнер для картинки и вылетающих фраз */
.mascot-wrapper {
    position: relative;
    display: inline-block;
}

.mascot-img {
    display: block;
    width: 460px;
    height: 460px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Анимация появления при переключении */
.switch-anim {
    animation: fadeSwitch 0.25s ease-out;
}

@keyframes fadeSwitch {
    0%   { opacity: 0.4; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

/* Точки-индикаторы */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.dot.active {
    background: #1b4332;
    transform: scale(1.3);
}

/* Отдача картинки при нажатии */
.bounce {
    animation: mascotBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes mascotBounce {
    0%   { transform: scale(1); }
    35%  { transform: scale(0.92, 1.06); }
    70%  { transform: scale(1.04, 0.97); }
    100% { transform: scale(1); }
}

/* Вылетающий из пикчи текст */
.floating-text {
    position: absolute;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.95);
    color: #1b4332;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    white-space: nowrap;
    z-index: 10;
    transform: translate(-50%, -50%);
    animation: floatUp 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.floating-text.feed-style {
    color: #b91c1c;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -25%) scale(0.85);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -45%) scale(1);
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -75px) scale(0.98);
    }
}

.stats {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto 22px;
}

.stat-box1, .stat-box2 {
    flex: 1;
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    flex-direction: column;
    gap: 4px;
}

.stat-box1 {
    background: #29a025;
}

.stat-box2 {
    background: #dd1010;
}

.stat-label {
    font-size: 0.8rem;
    color: white;
}

.stat-value {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
}

/* Мягкая тряска цифр счётчика */
.shake {
    animation: numberShake 0.3s ease-out;
}

@keyframes numberShake {
    0%   { transform: translateX(0) scale(1); }
    25%  { transform: translateX(-2px) scale(1.08); }
    50%  { transform: translateX(2px) scale(1.08); }
    75%  { transform: translateX(-1px) scale(1.03); }
    100% { transform: translateX(0) scale(1); }
}

.buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.btn1, .btn2 {
    padding: 12px 26px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22);
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.15s ease;
    user-select: none;
}

.btn1 {
    background-color: #29a025;
}

.btn2 {
    background-color: #dd1010;
}

.btn1:hover {
    background-color: #20771b;
    transform: translateY(-2px) scale(1.05);
}

.btn2:hover {
    background-color: #a32020;
    transform: translateY(-2px) scale(1.05);
}

.btn1:active, .btn2:active {
    transform: translateY(4px) scale(0.92);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

@media (max-width: 600px) {
    .mascot-img {
        width: 280px;
        height: 280px;
    }
    .carousel {
        gap: 8px;
    }
    .nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}
