/* ===== GLOBAL ===== */
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    margin: 0;
    padding: 0;
    color: #1b1b1b;
    
    /* Градиент поверх изображения */
    background:
        linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255, 255, 255, 0.788)), /* Полупрозрачный белый градиент сверху */
        url('/img/bg/bg.png'),                        /* Изображение фона */
        linear-gradient(180deg, #fefefe, #eef3ff);   /* Дополнительный плавный градиент снизу вверх */
        
    background-size: cover;                           /* Растягиваем изображение на весь экран */
    background-position: center;                      /* Центрируем изображение */
    background-repeat: no-repeat;                     /* Избежать повторения изображения */
    background-attachment: fixed;                     /* Закрепляем фон при прокрутке */
}

/* ===== GAME HEADER ===== */
.game-header {
    background: linear-gradient(180deg, #ffcb05, #f5a623);
    border-bottom: 4px solid #2a75bb;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 0 #1c3c72;
}

/* ===== LEFT ===== */
.game-header__left {
    display: flex;
    align-items: center;
}

/* ===== LOGO ===== */
.game-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    color: #2a75bb;
}

/* Pokéball */
.logo-ball {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(
        to bottom,
        #ff3b3b 0%,
        #ff3b3b 45%,
        #000 45%,
        #000 55%,
        #fff 55%,
        #fff 100%
    );
    border: 2px solid #000;
    position: relative;
}

.logo-ball::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Logo text */
.logo-text {
    display: flex;
    flex-direction: column;
}

.game-logo strong {
    font-size: 16px;
    letter-spacing: 1.5px;
    text-shadow:
        1px 1px 0 #fff,
        -1px -1px 0 #fff;
}

.logo-sub {
    font-size: 9px;
    color: #1c3c72;
    margin-top: -2px;
}

/* ===== RIGHT ===== */
.game-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== PLAYER INFO ===== */
.player-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-name {
    background: #2a75bb;
    color: #fff;
    padding: 5px 9px;
    border-radius: 12px;
    font-size: 12px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.3);
    white-space: nowrap;
}

/* ===== ICON BUTTON ===== */
.icon-btn {
    background: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 #1c3c72;
}

.icon-btn img {
    width: 18px;
    height: 18px;
}

/* ===== GAME BUTTONS ===== */
.game-btn {
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    box-shadow: 0 3px 0 rgba(0,0,0,.3);
}

.game-btn.login {
    background: #2a75bb;
    color: #fff;
}

.game-btn.register {
    background: #ff3b3b;
    color: #fff;
}

/* ===== HOVER / ACTIVE ===== */
.game-btn:hover,
.icon-btn:hover {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0,0,0,.3);
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    .game-header {
        padding: 6px 8px;
    }

    .player-name {
        font-size: 6px;
    }

    .game-logo strong {
        font-size: 10px;
    }

    .logo-sub {
        font-size: 6px;
    }

    .logo-ball {
        width: 22px;
        height: 22px;
    }
}


/* ===== Основной контент ===== */
.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 12px;
}

footer {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* Стили для игры про покемонов */
h1 {
    font-family: 'Arial Black', sans-serif;
    color: #FF0000;
}

button {
    background-color: #FFD700;
    color: #000000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #FF0000;
}

.avatar-preview {
    display: inline-block;
    margin: 10px;
    text-align: center;
    border: 2px solid #FF0000;
    border-radius: 10px;
    padding: 10px;
    background-color: #ADD8E6;
}

.avatar-preview img {
    width: 100px;
    height: 100px;
    /* border-radius: 50%; */
}

/* Дополнительные стили для формы */

form input,
form button {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
}

nav a {
    margin-right: 10px;
}

form select {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form .error {
    color: #FF0000;
    margin-top: 8px;
}

/* Стили для кнопки "Сохранить" */
form button[type="submit"] {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Оформление страниц */
.menu {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.menu-button {
    background-color: #FFD700;
    color: #000000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
    border-radius: 6px;
    width: 100%;
    /* Кнопки заполняют всю ширину контейнера */
    margin-bottom: 10px;
    /* Отступ между кнопками */
}

.menu-button:hover {
    background-color: #FF0000;
}

.enemies-list {
    list-style-type: none;
    padding: 0;
}

.enemies-list li {
    margin-bottom: 10px;
}

.enemies-list a {
    display: inline-block;
    margin-left: 10px;
    text-decoration: none;
    color: #FF0000;
}

.enemies-list a:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #000;
    border: 1px solid #ddd;
    margin: 0 5px;
}

.pagination a:hover {
    background-color: #ddd;
}

/* ===== страница пользователей ===== */

/* ===== СЕТКА ===== */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ===== КАРТОЧКА ===== */
.user-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
}

/* ===== ID ===== */
.user-id {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffcb05;
    color: #2a75bb;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

/* ===== СТАТУС ===== */
.user-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    font-weight: bold;
}

.user-status.online {
    background: #2ecc71;
    color: #fff;
    box-shadow: 0 0 8px rgba(46, 204, 113, .7);
}

.user-status.offline {
    background: #bdc3c7;
    color: #555;
}

/* ===== АВАТАР ===== */
.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at top, #ffcb05, #f2a900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    color: #2a75bb;
    margin: 20px auto 10px;
}

/* ===== ИНФО ===== */
.user-info {
    text-align: center;
}

.user-info h3 {
    margin: 6px 0;
    color: #333;
}

.user-info .date {
    font-size: 13px;
    color: #777;
}

/* ===== КНОПКИ ===== */
.user-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: transform .1s ease, background .2s ease;
}

.btn-view {
    background: #2a75bb;
    color: #fff;
}

.btn-anketa {
    background: #ffcb05;
    color: #2a75bb;
}

.btn:hover {
    transform: scale(1.05);
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.page-btn {
    padding: 10px 18px;
    background: #2a75bb;
    color: #fff;
    border-radius: 22px;
    text-decoration: none;
    font-weight: bold;
}

.page-btn:hover {
    background: #1d5fa7;
}

.page-current {
    font-weight: bold;
    color: #333;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 480px) {
    .user-actions {
        flex-direction: column;
    }
}

/* Карточка в бою */
.poke-card-fight {
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .6s ease forwards;
    animation-delay: var(--delay, 0s);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.waiting {
    margin-top: 20px;
    font-size: 18px;
    color: #888;
}

/* Плавное появление */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3D-подъём */
.poke-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .25);
}

/* Единый размер картинки */
.poke-img {
    height: 80px;
    /* регулируй при необходимости */
    object-fit: cover;
    /* сохраняет пропорции + красиво обрезает */
    object-position: center;
    background: #eee;
}

/* Редкости (со свечением) */
.rarity-1 {
    border-color: #bdbdbd;
    border: 2px solid #bbb;
    box-shadow: 0 0 8px rgba(150, 150, 150, 0.2);
}

.rarity-2 {
    border-color: #4fc3f7;
    border: 2px solid #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.rarity-3 {
    border-color: #ba68c8;
    border: 2px solid #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.rarity-4 {
    border-color: #ffca28;
    border: 2px solid #f59e0b;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.55);
}


/* =========================
   Таймер боя
   ========================= */

.fight-timer {
    margin: 10px 0 20px;
    padding: 10px 14px;
    max-width: 200px;

    display: inline-flex;
    flex-direction: column;
    gap: 6px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    border: 1px solid #e5e7eb;

    background: #f8fafc;
    border-radius: 8px;

    box-shadow: inset 0 0 0 1px #ddd;

    min-width: 220px;
}

/* Верхняя строка */
.fight-timer .label {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.fight-timer .value {
    min-width: 40px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.fight-timer .unit {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

/* Контейнер текста */
.fight-timer>span {
    display: inline-block;
}

/* =========================
   Прогресс-бар
   ========================= */

.timer-bar {
    margin-top: 8px;
    width: 100%;
    height: 5px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.timer-bar>div {
    height: 100%;
    width: 100%;
    background: #3b82f6;
    transition: width 1s linear;
}

/* =========================
   Состояния таймера
   ========================= */

/* Предупреждение (≈40%) */
.fight-timer.warning .value {
    color: #f59e0b;
}

.fight-timer.warning .timer-bar>div {
    background: #f59e0b;
}

/* Опасность (≈20%) */
.fight-timer.danger .value {
    color: #dc2626;
}

.fight-timer.danger .timer-bar>div {
    background: #dc2626;
}

/* =========================
   Анимация (опционально)
   ========================= */

.fight-timer.danger {
    animation: timer-pulse 1s infinite;
}

@keyframes timer-pulse {
    0% {
        box-shadow: inset 0 0 0 1px #ddd;
    }

    50% {
        box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.6);
    }

    100% {
        box-shadow: inset 0 0 0 1px #ddd;
    }
}


.page-title {
    margin-bottom: 25px;
}

.fight-section {
    margin-bottom: 40px;
}

.battle-card {
    max-width: 320px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f4f6f8;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.battle-card.enemy {
    background: #fff5f5;
    border-color: #e0b4b4;
}

.battle-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.battle-btn {
    display: inline-block;
    padding: 7px 14px;
    background: #2c7be5;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.battle-btn:hover {
    background: #1b5fc9;
}

.battle-btn.danger {
    background: #d9534f;
}

.battle-btn.danger:hover {
    background: #c9302c;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.page-btn {
    text-decoration: none;
    color: #2c7be5;
    font-weight: 500;
}

.page-info {
    font-size: 14px;
    color: #555;
}

.empty {
    color: #888;
    font-style: italic;
}
.fight-result {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.fight-title {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
}

.fight-box {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.fight-win {
    background: linear-gradient(135deg, #d4f8e8, #b8f1d8);
    color: #0f5132;
}

.fight-lose {
    background: linear-gradient(135deg, #fde2e2, #f8bcbc);
    color: #842029;
}

.fight-neutral {
    background: #f1f3f5;
    color: #333;
}

.fight-error {
    background: #ffe0e0;
    color: #842029;
}

.fight-status {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.fight-reward span {
    font-weight: 700;
    color: #d39e00;
}

.fight-exp {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
}

.fight-exp-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.fight-exp img {
    width: 32px;
    vertical-align: middle;
    margin-right: 6px;
}

.fight-actions {
    margin-top: 30px;
    text-align: center;
}

.fight-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #198754;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.fight-btn:hover {
    background: #157347;
}

/* ===== ОБЩЕЕ ДЛЯ ПОКЕДЕКСА ===== */
.poke-link {
    text-decoration: none;
    color: inherit;
}


/* ===== РЕДКОСТЬ + СВЕЧЕНИЕ ===== */


.rarity-badge-1 { background: #9e9e9e; }
.rarity-badge-2 { background: #29b6f6; }
.rarity-badge-3 { background: #ab47bc; }
.rarity-badge-4 { background: linear-gradient(90deg, #ffb300, #ff7043); }

/* ===== БЕЙДЖ ===== */
.poke-rarity {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    color: #fff;
}

/* ===== АКТИВНАЯ КОЛОДА ===== */
.deck {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 20px 0 40px;
}

.deck-card {
    background: linear-gradient(180deg, #ffffff, #eef2ff);
    border-radius: 18px;
    padding: 16px;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
}

.deck-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.25);
}

.deck-img {
    height: 180px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.deck-img img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
}

.deck-name {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.deck-level {
    text-align: center;
    font-size: 14px;
    margin-bottom: 6px;
    color: #555;
}

.deck-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.deck-stats .stat {
    font-size: 14px;
    font-weight: bold;
    background: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* ===== ПОКЕДЕКС ===== */
.pokedex {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.poke-card {
    background: linear-gradient(180deg, #ffffff, #f5f7ff);
    border-radius: 16px;
    padding: 12px;
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
}

.poke-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 20px rgba(0,0,0,0.18),
        0 0 12px currentColor;
}


.poke-img {
    height: 150px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.poke-img img {
    max-height: 130px;
    max-width: 100%;
    object-fit: contain;
}

.poke-name {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 6px;
}

.poke-stats {
    display: flex;
    justify-content: space-between;
}

.stat {
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    font-weight: bold;
    font-size: 13px;
}

/* ===== ИКОНКА УДАЛЕНИЯ ИЗ КОЛОДЫ ===== */
.deck-remove {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: rgba(239, 83, 80, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 6;
}

/* показываем только при наведении на карточку */
.deck-card:hover .deck-remove {
    opacity: 1;
    pointer-events: auto;
}

/* hover по самой кнопке */
.deck-remove:hover {
    transform: scale(1.15);
    background: #e53935;
}



/* ===== МОБИЛКИ ===== */
@media (max-width: 768px) {
    .deck {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===== КНОПКА ДОБАВИТЬ В КОЛОДУ ===== */
.poke-add {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: rgba(76, 175, 80, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 5;
}

.poke-card:hover .poke-add {
    opacity: 1;
    pointer-events: auto;
}

.poke-add:hover {
    transform: scale(1.15);
    background: #43a047;
}
/* ===== ПУСТОЙ СЛОТ ===== */
.deck-slot-empty {
    width: 220px;
    height: 100%;
    border: 3px dashed #cfd8dc;
    border-radius: 18px;
    background: linear-gradient(180deg, #f5f7ff, #eef2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
    font-size: 42px;
    font-weight: bold;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6);
}

.deck-slot-empty span {
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

/* ===== КОРОНА ЛИДЕРА (ЦЕНТР) ===== */
/* ===== КОРОНА ЛИДЕРА (ПО ЦЕНТРУ СВЕРХУ) ===== */
.leader-crown {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: radial-gradient(circle, #ffd54f, #ffb300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow:
        0 6px 16px rgba(255,179,0,0.7),
        0 4px 10px rgba(0,0,0,0.35);
    z-index: 10;
    pointer-events: none;
}



/* ===== ПОДСВЕТКА ЛИДЕРА ===== */
.deck-card.leader {
    border: 3px solid #ffb300;
    box-shadow:
        0 0 0 3px rgba(255,179,0,0.35),
        0 12px 26px rgba(0,0,0,0.25);
}

@keyframes leaderGlow {
    0%   { box-shadow: 0 0 0 3px rgba(255,179,0,0.25); }
    50%  { box-shadow: 0 0 0 6px rgba(255,179,0,0.45); }
    100% { box-shadow: 0 0 0 3px rgba(255,179,0,0.25); }
}

.deck-card.leader {
    animation: leaderGlow 2.5s infinite ease-in-out;
}
@keyframes leaderFloat {
    0%   { transform: translateX(-50%) translateY(0); }
    50%  { transform: translateX(-50%) translateY(-2px); }
    100% { transform: translateX(-50%) translateY(0); }
}

.deck-card.leader .leader-crown {
    animation: leaderFloat 3s infinite ease-in-out;
}

/* ===== ЛИДЕР В INFO ===== */
.info-leader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: radial-gradient(circle, #ffd54f, #ffb300);
    color: #fff;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow:
        0 4px 10px rgba(255,179,0,0.6),
        0 2px 6px rgba(0,0,0,0.25);
    font-size: 14px;
}

.info-leader .crown {
    font-size: 18px;
}

/* ===== ПОЛОСКА ОПЫТА ===== */
.exp-block {
    margin-top: 16px;
}

.exp-label {
    font-size: 13px;
    margin-bottom: 4px;
    color: #555;
    display: flex;
    justify-content: space-between;
}

.exp-bar {
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    height: 14px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
}

.exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #0288d1);
    border-radius: 10px;
    transition: width .3s ease;
}

/* ===== СТАТЫ ПОД КАРТИНКОЙ ===== */
.poke-side-stats {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid #e0e6ff;
}

.poke-side-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.poke-side-box {
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}
/* ===== КАРТОЧКА покемона (ЛЕВАЯ КОЛОНКА) ===== */
.poke-info-img {
    background: linear-gradient(180deg, #ffffff, #f3f6ff);
    border-radius: 24px;
    padding: 22px;
    box-shadow:
        0 14px 30px rgba(0,0,0,0.18),
        inset 0 0 0 1px rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.poke-info-img img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}



/* ===== Заголовок профиля ===== */
.profile-header {
  display: flex;
  gap: 20px;
  padding: 16px;
  background: #f2f4ff;
  border: 3px solid #ffcb05;
  border-radius: 14px;
}

.profile-visual {
  display: flex;
  gap: 12px;
}

.avatar-box, .main-pokemon {
  width: 96px;
  height: 96px;
  background: #fff;
  border: 2px solid #ffcb05;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.avatar-box img,
.main-pokemon img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.main-pokemon span {
  font-size: 11px;
  margin-bottom: 4px;
  color: #1c3c72;
}

.profile-info h1 {
  margin: 0 0 6px;
  color: #f5a623;
}

.currency {
  display: flex;
  gap: 12px;
  font-weight: bold;
  margin-bottom: 6px;
}

.meta {
  font-size: 14px;
}

@media (max-width: 768px) {

  .profile-header {
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  .profile-visual {
    justify-content: center;
  }

  .avatar-box,
  .main-pokemon {
    width: 80px;
    height: 80px;
  }

  .avatar-box img,
  .main-pokemon img {
    max-width: 64px;
    max-height: 64px;
  }

  .profile-info {
    text-align: center;
  }

  .currency {
    justify-content: center;
    gap: 16px;
  }

  .meta {
    font-size: 13px;
  }
}

/* для картинок в локациях */
/* Универсальная карточка для всех локаций */
.location-card {
    position: relative;
    width: 90%;                  /* занимает почти всю ширину контейнера */
    max-width: 700px;            /* ограничение для больших экранов */
    margin: 20px auto;           /* центрирование */
    border-radius: 16px;         /* скругление углов */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4); /* тень */
    background: linear-gradient(to bottom, #fff7e6, #ffe680); /* мягкий фон */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.location-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
}

/* Мобильная версия */
@media (max-width: 600px) {
    .location-card {
        width: 95%;              /* чуть больше, чтобы занимала почти весь экран */
        margin: 15px auto;
        border-radius: 12px;      /* меньше скругление для мобильных */
        box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    }

    .location-card:hover {
        transform: none;         /* убираем увеличение при наведении на тач-устройствах */
        box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    }

    .location-card img {
        border-radius: 12px 12px 0 0;
    }
}
