@font-face {
    font-family: 'Fruity Sugar';
    src: url('../../font/Fruity Sugar.otf') format('opentype');
}

@font-face {
    font-family: 'KOMIKAP';
    src: url('../../font/KOMIKAP_.ttf') format('truetype');
}

.pet-wrapper {
    position: relative;
    display: inline-block;
    animation: petIdle 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.pet-hat-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
    object-fit: contain;
    object-position: top center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fruity Sugar', sans-serif !important;
}

body {
    font-family: 'Fruity Sugar', sans-serif !important;
    background: #D6DCDB;
    color: #2d3436;
    min-height: 100vh;
}

.battle-page-body,
.battle-page-body * {
    font-family: 'KOMIKAP', cursive !important;
}

a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

.alert-error {
    background: #ffe0e0;
    color: #d63031;
    border: 1px solid #fab1a0;
}

.alert-success {
    background: #e0ffe0;
    color: #00b894;
    border: 1px solid #55efc4;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background-color: #6c5ce7;
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(-45deg, #1B003C, #7122A0, #1B003C, #7122A0);
    background-size: 400% 400%;
    animation: authGradientShift 15s ease-in-out infinite;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

@keyframes authGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatLogo {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

.logo-float {
    animation: floatLogo 4s ease-in-out infinite;
    image-rendering: high-quality;
    image-rendering: smooth;
    will-change: transform;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 0;

    opacity: 0;
    animation: twinkleStar linear infinite;
    will-change: opacity, transform;
}

@keyframes twinkleStar {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.btn-blue-brand {
    background: #3426E8 !important;
    color: white !important;
}

.auth-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 28px;
    color: #6c5ce7;
    margin-bottom: 4px;
}

.auth-header p {
    color: #636e72;
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
    color: #2d3436;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
    outline: none;
}

.auth-form input:focus {
    border-color: #6c5ce7;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #636e72;
}

.species-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.species-option input[type="radio"] {
    display: none;
}

.species-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 3px solid #dfe6e9;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.species-card:hover {
    border-color: #a29bfe;
    background: #f0efff;
}

.species-option input[type="radio"]:checked+.species-card {
    border-color: #6c5ce7;
    background: #f0efff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.species-emoji {
    font-size: 48px;
    margin-bottom: 6px;
}

.species-name {
    font-size: 14px;
    font-weight: bold;
    color: #2d3436;
}

.create-pet-container {
    max-width: 480px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.username {
    font-size: 14px;
    opacity: 0.9;
}

.game-main {
    max-width: 700px;
    margin: 20px auto;
    padding: 0 16px;
}

.pet-info {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 14px;
}

.pet-name {
    font-size: 22px;
    color: #6c5ce7;
    margin-bottom: 4px;
}

.pet-slots-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
    justify-content: center;
}

.pet-slot {
    position: relative;
    width: 60px;
    height: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.pet-slot:hover {
    transform: scale(1.05);
}

.animated-circle-bg {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #c9c0e8, #9b8ec4, #ffffff, #c9c0e8);
    background-size: 300% 300%;
    animation: rotatePulse 4s linear infinite, gradientShift 6s ease infinite;
    z-index: 1;
    border: 3px solid #7c6fad;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.15);
}

.pet-slot-content {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pet-slot-content img.pet-img-sprite,
.pet-slot-content span {
    max-width: 42px;
    max-height: 42px;
    font-size: 42px;
    /* Caso seja texto/emoji */
}

.pet-slot.active .animated-circle-bg {
    border-color: #9900ff;
    box-shadow: 0 4px 20px rgba(49, 15, 241, 0.4);
}

.pet-slot-name {
    position: absolute;
    bottom: 0;
    font-family: 'Quadrillion', sans-serif;
    font-size: 11px;
    text-align: center;
    width: 100%;
    color: #2c3e50;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-slot .animated-circle-bg {
    background: linear-gradient(135deg, #f4f1fb, #d6cff0, #f4f1fb);
    background-size: 300% 300%;
    border: 2px dashed #9b8ec4;
}

.empty-slot .pet-slot-content span {
    font-size: 30px;
    color: #7f8c8d;
    font-family: 'Bisteron', sans-serif;
}

@keyframes rotatePulse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.message-box {
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    background: #dfe6e9;
}

.message-box.success {
    background: linear-gradient(135deg, #55efc4, #00b894);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.message-box.error {
    background: linear-gradient(135deg, #ff7675, #d63031);
    color: white;
    box-shadow: 0 4px 12px rgba(214, 48, 49, 0.3);
}

.message-box.hidden {
    display: none;
}

.park-page-body {
    background: linear-gradient(-45deg, #a8e6cf, #74ebd5, #9face6, #dcedc1);
    background-size: 400% 400%;
    animation: authGradientShift 18s ease-in-out infinite;
}

body.circle-particles .stars-container .star {
    border-radius: 50% !important;
}

.park-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.park-header {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(34, 139, 34, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.8);
}

.park-header h1 {
    color: #1a6b3c;
    font-size: 26px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.park-header p {
    color: #386146;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 500;
}

.btn-home {
    background: linear-gradient(135deg, #333333, #111111);
    color: white !important;
    padding: 12px 28px !important;
    font-size: 16px !important;
    border-radius: 30px !important;
    border: none !important;
    font-family: 'Fruity Sugar', sans-serif !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-home:hover {
    filter: brightness(1.2);
}

.park-area {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 80, 40, 0.2);
}

.park-ground {
    background: linear-gradient(180deg, #87ceeb 0%, #a8e6cf 40%, #55efc4 60%, #00b894 100%);
    min-height: 220px;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.park-pet {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 30px;
    animation: parkWalk 4s ease-in-out infinite alternate;
}

.park-pet-emoji {
    font-size: 48px;
}

.park-pet-name {
    font-size: 12px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: #1e5631;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.my-pet-badge {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 2px 4px rgba(0, 100, 255, 0.3);
}

.park-pets-list {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(34, 139, 34, 0.15);
}

.park-pets-list h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.empty-park {
    text-align: center;
    padding: 20px;
    color: #636e72;
}

.pets-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pet-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pet-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 139, 34, 0.15);
}

.pet-card-avatar {
    font-size: 40px;
    flex-shrink: 0;
}

.pet-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pet-card-info strong {
    font-size: 16px;
    color: #1a6b3c;
}

.pet-card-mood {
    font-size: 13px;
    color: #636e72;
}

.pet-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.interactions-feed {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(34, 139, 34, 0.15);
}

.interactions-feed h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.feed-list {
    max-height: 300px;
    overflow-y: auto;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: background 0.2s;
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.7);
}

.feed-item:last-child {
    margin-bottom: 0;
}

.feed-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.feed-message {
    flex: 1;
    color: #2d3436;
}

.feed-time {
    color: #4a7c59;
    font-size: 12px;
    flex-shrink: 0;
}

.feed-empty {
    text-align: center;
    color: #4a7c59;
    padding: 20px;
}

@keyframes petIdle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-6px) rotate(5deg);
    }
}

@keyframes parkWalk {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(15px);
    }
}

@keyframes petAction {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2) rotate(-5deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    75% {
        transform: scale(1.15) rotate(-3deg);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.pet-animate {
    animation: petAction 0.6s ease-in-out;
}

/* Animações de clique no pet principal — 3 variações aleatórias */
@keyframes petClickBounce {
    0% {
        transform: scale(1) translateY(0);
    }

    25% {
        transform: scale(1.3) translateY(-18px);
    }

    60% {
        transform: scale(0.9) translateY(4px);
    }

    80% {
        transform: scale(1.1) translateY(-6px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes petClickSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    30% {
        transform: rotate(-20deg) scale(1.2);
    }

    60% {
        transform: rotate(20deg) scale(1.1);
    }

    80% {
        transform: rotate(-8deg) scale(1.05);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

@keyframes petClickWiggle {
    0% {
        transform: skewX(0deg) scale(1);
    }

    15% {
        transform: skewX(-15deg) scale(1.15);
    }

    35% {
        transform: skewX(12deg) scale(1.1);
    }

    55% {
        transform: skewX(-8deg) scale(1.05);
    }

    75% {
        transform: skewX(5deg) scale(1.02);
    }

    100% {
        transform: skewX(0deg) scale(1);
    }
}

.pet-click-bounce {
    animation: petClickBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pet-click-spin {
    animation: petClickSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pet-click-wiggle {
    animation: petClickWiggle 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 24px;
    }

    .pet-emoji {
        font-size: 72px;
    }

    .species-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .pet-card {
        flex-direction: column;
        text-align: center;
    }

    .pet-card-actions {
        justify-content: center;
    }
}

.custom-layout {
    font-family: Arial, sans-serif;
    background: #f0f0f5;

    position: relative;
    overflow-x: hidden;
}

body.custom-layout .stars-container .star {
    background-color: rgba(113, 34, 160, 0.15) !important;
}

.custom-header {
    background: linear-gradient(135deg, #1B003C, #7122A0);
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-main {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

#caixa-mensagem {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 100;
}

.shadow-box {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 0px;
}

.bk-area {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 20px;
    overflow: hidden;
    border-radius: 12px;
}

.bk-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../backgrounds/background_1.png') center/cover no-repeat;
    opacity: 0.8;
    z-index: 1;
}

.bk-area .em-circle {
    position: relative;
    z-index: 2;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 15px;

}

@font-face {
    font-family: 'Octuple-max';
    src: url('../../font/Octuple-max.ttf') format('truetype');
}

button {
    font-family: 'Fruity Sugar', sans-serif;
    position: relative;
    overflow: hidden;
    font-size: 19px;
}

button::after {
    content: none;
}

.btn-action-main {
    color: #fff;
    font-family: 'Fruity Sugar', sans-serif;
    font-weight: normal;
    padding: 14px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 19px;

    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: none;
    height: auto;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-action-main::before,
.btn-comprar::before,
.btn-experimentar::before,
.btn-vestir::before,
.btn-remover-vestimenta::before,
.btn-novo-produto::before,
.btn-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine-sweep 4s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shine-sweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.btn-action-main span {
    position: relative;
    z-index: 2;
}

.btn-action-main:hover {
    filter: brightness(1.2) contrast(1.1);
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-action-main:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* Cores bases preservadas, adicionada textura sutil com radial-gradient */
.btn-alimentar {
    background: radial-gradient(circle at top left, #FF6700, #5C0800);
}

.text-gradient-alimentar {
    background: linear-gradient(to bottom, #FFF, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-brincar {
    background: radial-gradient(circle at top left, #FFA100, #5C3200);
}

.text-gradient-brincar {
    background: linear-gradient(to bottom, #FFF, #FFE600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-dormir {
    background: radial-gradient(circle at top left, #278FEE, #001B48);
}

.text-gradient-dormir {
    background: linear-gradient(to bottom, #FFF, #87CEFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-curar {
    background: radial-gradient(circle at top left, #FF003C, #5C0004);
}

.text-gradient-curar {
    background: linear-gradient(to bottom, #FFF, #FF88A1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

.pet-emoji {
    font-size: 70px;
    line-height: 1;
}

.em-no-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.pet-emoji-no-circle {
    font-size: 70px;
    line-height: 1;
}

.info-area {
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 20px;
    margin-bottom: 15px;
}

.pet-info-text h2 {
    font-size: 24px;
    margin-bottom: 4px;
    font-weight: normal;
}

.pet-info-text p {
    font-size: 14px;
    color: #777;
    margin: 2px 0;
}

.atributos-area {
    grid-column: 1 / 2;
    padding: 20px 24px;
    margin-bottom: 15px;
}

.atributos-area h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: normal;
}

.stat-row {
    margin-bottom: 12px;
}

.stat-name {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}

@keyframes animarDegrade {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bar-custom-bg {
    background: #eee;
    border-radius: 20px;
    height: 20px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s;
    background-size: 200% 200%;
    animation: animarDegrade 3s ease infinite;

}

.bg-orange-red {
    background: linear-gradient(90deg, #FF6200, #FF2D00);
    background-size: 200% 200%;
}

.bg-yellow-orange {
    background: linear-gradient(90deg, #FFB100, #FF8700);
    background-size: 200% 200%;
}

.bg-blue-solid {
    background: linear-gradient(90deg, #058BFF, #1735C9);
    background-size: 200% 200%;
}

.bg-dark-red {
    background: linear-gradient(90deg, #F60001, #920001);
    background-size: 200% 200%;
}

.parque-area {
    grid-column: 1 / 2;
    padding-top: 20px;
    padding-bottom: 30px;
    border-color: #12d695;
    text-align: center;
    overflow: hidden;
}

.parque-title {
    font-size: 22px;
    margin-bottom: 8px;
    color: #12d695;
    font-weight: normal;
}

.parque-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.parque-blue-box {
    background: url('../../backgrounds/background_2.png?v=2') center/cover no-repeat;

    height: 120px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-ir-parque {
    background: linear-gradient(90deg, #37CA1F, #009688);
    color: #fff;
    font-weight: normal;
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    text-transform: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-ir-parque span {
    position: relative;
    z-index: 2;
}

.btn-ir-parque:hover {
    filter: brightness(1.2) contrast(1.1);
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-ir-parque:active {
    transform: translateY(2px);
    box-shadow: none;
}



.pet-img-sprite {
    width: 1.5em;

    height: 1.5em;
    object-fit: contain;
    display: inline-block;
    transition: transform 0.2s;
}

.pet-egg-sprite {
    position: relative;
    z-index: 5;
    height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    animation: eggWobble 1.5s infinite alternate ease-in-out;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.pet-egg-sprite.hatching {
    animation: hatchEgg 0.5s forwards;
}

.pet-emoji.pop-in {
    animation: popInPet 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes eggWobble {
    0% {
        transform: rotate(-8deg) scale(1);
    }

    50% {
        transform: rotate(8deg) scale(1.05);
    }

    100% {
        transform: rotate(-8deg) scale(1);
    }
}

@keyframes hatchEgg {
    0% {
        transform: scale(1) rotate(0);
        opacity: 1;
        filter: sepia(0) brightness(1);
    }

    40% {
        transform: scale(1.1) rotate(15deg);
        filter: sepia(0.5) brightness(1.5);
    }

    100% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
        filter: brightness(2);
    }
}

@keyframes popInPet {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.food-item {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.3s;
}

.food-item.hidden {
    display: none;
    opacity: 0;
}

.food-item img {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.food-item.pos-left {
    left: 32%;
    bottom: 20px;
}

.food-item.pos-right {
    right: 32%;
    bottom: 20px;
}

@keyframes foodDisappear {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    8% {
        transform: scale(1.3) rotate(5deg);
        opacity: 1;
    }

    15% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    25% {
        transform: scale(0.9) rotate(-10deg);
    }

    40% {
        transform: scale(0.8) rotate(10deg);
    }

    60% {
        transform: scale(0.6) rotate(-10deg);
    }

    80% {
        transform: scale(0.4) rotate(10deg);
    }

    100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
}

@keyframes petShakeEat {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    10% {
        transform: rotate(-8deg) translateY(-5px);
    }

    20% {
        transform: rotate(8deg) translateY(-2px);
    }

    30% {
        transform: rotate(-8deg) translateY(-5px);
    }

    40% {
        transform: rotate(8deg) translateY(-2px);
    }

    50% {
        transform: rotate(-8deg) translateY(-5px);
    }

    60% {
        transform: rotate(8deg) translateY(-2px);
    }

    70% {
        transform: rotate(-8deg) translateY(-5px);
    }

    80% {
        transform: rotate(8deg) translateY(-2px);
    }

    90% {
        transform: rotate(-8deg) translateY(-5px);
    }
}

.animating-food {
    animation: foodDisappear 3s forwards ease-in-out;
}

.pet-eating-shake {
    animation: petShakeEat 3s ease-in-out;
}

.cura-item {
    position: absolute;
    z-index: 6;
    pointer-events: none;
    width: 56px;
    height: auto;
}

.cura-item img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(230, 0, 0, 0.8));
}

.cura-item.hidden {
    display: none;
}

.cura-pos-right {
    right: 34%;

    bottom: 38%;

}

.cura-pos-left {
    left: 34%;

    bottom: 26%;

}

@keyframes curaFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    20% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateY(-55px) scale(0.7);
        opacity: 0;
    }
}

@keyframes curaFloatDelay {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    15% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    35% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateY(-55px) scale(0.7);
        opacity: 0;
    }
}

.animating-cura {
    animation: curaFloat 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    filter: drop-shadow(0 0 10px rgba(220, 30, 30, 0.95)) drop-shadow(0 0 22px rgba(255, 60, 60, 0.6));
}

.animating-cura-delay {
    animation: curaFloatDelay 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    filter: drop-shadow(0 0 10px rgba(220, 30, 30, 0.95)) drop-shadow(0 0 22px rgba(255, 60, 60, 0.6));
}

@keyframes healingPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 0px rgba(0, 230, 80, 0));
    }

    40% {
        filter: drop-shadow(0 0 18px rgba(230, 0, 0, 0.9));
    }

    70% {
        filter: drop-shadow(0 0 10px rgba(230, 0, 38, 0.5));
    }
}

.pet-healing-pulse {
    animation: healingPulse 2s ease-in-out forwards;
}

.cura-particles {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    pointer-events: none;
    z-index: 5;
}

.cura-particles.hidden {
    display: none;
}


.dormir-item {
    position: absolute;
    z-index: 6;
    pointer-events: none;
    width: 52px;
    height: auto;

    right: calc(42% - 5px);
    bottom: calc(50% - 50px);
}

.dormir-item img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

.dormir-item.hidden {
    display: none;
}

@keyframes dormirFloat {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }

    10% {
        transform: translateY(-4px) scale(1.05) rotate(-6deg);
        opacity: 1;
    }

    30% {
        transform: translateY(-15px) scale(0.95) rotate(6deg);
        opacity: 1;
    }

    55% {
        transform: translateY(-28px) scale(0.80) rotate(-5deg);
        opacity: 0.7;
    }

    80% {
        transform: translateY(-42px) scale(0.60) rotate(4deg);
        opacity: 0.3;
    }

    100% {
        transform: translateY(-55px) scale(0.40) rotate(0deg);
        opacity: 0;
    }
}

.animating-dormir {

    animation: dormirFloat 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2 forwards;
}

@keyframes sleepSway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-4deg) translateY(2px);
    }

    75% {
        transform: rotate(4deg) translateY(2px);
    }
}

.pet-sleeping-sway {
    animation: sleepSway 2s ease-in-out infinite;
}

/* ---------------------------------------------------
   RESPONSIVIDADE GERAL - HEADER EM TODAS AS PÁGINAS
   --------------------------------------------------- */
@media (max-width: 860px) {
    .custom-header {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "logo logo"
            "user user"
            "left-btn right-area";
        gap: 15px 10px !important;
        padding: 15px 10px !important;
        align-items: center;
        justify-items: center;
        text-align: center;
        position: relative;
        max-height: 500px;
        transition: max-height 0.3s ease, padding 0.3s ease;
        overflow: visible;
    }

    .custom-header.collapsed {
        max-height: 80px !important;
        padding-bottom: 10px !important;
    }

    .custom-header.collapsed .header-left,
    .custom-header.collapsed .header-right {
        display: none !important;
    }

    .header-center {
        grid-area: logo;
        position: static !important;
        transform: none !important;
        margin: 5px 0 !important;
    }

    .header-center img {
        width: 140px !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        background: black;
        border: 2px solid #555;
        border-top: none;
        border-radius: 0 0 15px 15px;
        width: 50px;
        height: 25px;
        justify-content: center;
        align-items: center;
        color: white;
        cursor: pointer;
        z-index: 60;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    }

    .mobile-menu-toggle::after {
        content: '▼';
        font-size: 14px;
        transition: transform 0.3s;
    }

    .custom-header:not(.collapsed) .mobile-menu-toggle::after {
        content: '▲';
    }

    /* Usando display: contents, os filhos de .header-left viram itens do grid diretamente! */
    .header-left {
        display: contents !important;
    }

    .header-left>span {
        grid-area: user;
        text-align: center;
        font-size: 16px !important;
        margin-bottom: 5px;
    }

    .header-left>a,
    .header-left>button {
        grid-area: left-btn;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        font-size: 14px !important;
        padding: 12px 10px !important;
    }

    /* Quando não há elementos no header-right, centralizamos o header-left */
    .custom-header:has(.header-right:empty) .header-left>a,
    .custom-header:has(.header-right:empty) .header-left>button {
        grid-column: 1 / -1 !important;
        width: auto !important;
        min-width: 200px;
        justify-self: center;
    }

    /* Quando header-left não possui botões, centralizamos o header-right */
    .custom-header:not(:has(.header-left > a, .header-left > button)) .header-right {
        grid-column: 1 / -1 !important;
    }

    .custom-header:not(:has(.header-left > a, .header-left > button)) .header-right>a,
    .custom-header:not(:has(.header-left > a, .header-left > button)) .header-right>button {
        width: auto !important;
        min-width: 200px;
        justify-self: center;
    }

    .header-right {
        grid-area: right-area;
        display: flex !important;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .header-right>a,
    .header-right>button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        font-size: 14px !important;
        padding: 12px 10px !important;
    }
}

/* ───────────────────────────────────────────────────────────
   RESPONSIVIDADE MOBILE — PÁGINAS DE CONTEÚDO (≤ 600px)
   ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {

    /* ── ÍNDEX / LOGIN ─────────────────────────────────────── */
    .auth-container {
        padding: 20px 15px !important;
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Botão Google não vaza: limita largura ao container */
    .g_id_signin,
    .g_id_signin iframe,
    .g_id_signin>div {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Evitar scroll horizontal em qualquer página */
    .custom-main {
        padding: 0 10px !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* ── CIDADE / BK-AREA ──────────────────────────────────── */
    .bk-area {
        /* aspecto 4:3 garante ver a imagem completa no mobile */
        aspect-ratio: 4 / 3 !important;
        min-height: unset !important;
        width: 100% !important;
        max-width: 100% !important;
        /* cancela o truque de centralização absoluta com translateX */
        margin-left: 0 !important;
        transform: none !important;
        box-sizing: border-box;
    }

    /* A bk-texture interna sempre cobre 100% do pai */
    .bk-texture {
        background-size: cover !important;
        background-position: center !important;
    }

    /* ── PARQUE / PARK-GROUND ──────────────────────────────── */
    .park-ground {
        min-height: 240px !important;
        width: 100% !important;
        margin-left: 0 !important;
        transform: none !important;
        border-radius: 12px !important;
    }

    /* Mantém os pets visíveis dentro da área menor */
    .park-ground .pet-in-park {
        font-size: 40px !important;
    }

    /* Área do feed e painéis do parque empilham verticalmente */
    .park-container {
        padding: 10px !important;
        gap: 12px !important;
    }

    .park-panels {
        flex-direction: column !important;
    }

    /* ── CIDADE / CARDS DE DESTINO (parque-area) ───────────── */
    .parque-area {
        padding: 15px !important;
    }

    .parque-blue-box {
        height: 90px !important;
    }

    /* ── LOJA ─────────────────────────────────────────────── */
    .loja-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        padding: 20px 12px !important;
        gap: 24px !important;
    }

    .loja-preview-panel {
        width: 100% !important;
        min-height: unset !important;
        padding: 20px 16px !important;
        box-sizing: border-box;
    }

    .loja-main-div {
        width: 100% !important;
        box-sizing: border-box;
    }

    .loja-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-height: 320px !important;
        padding: 10px 16px 16px !important;
        gap: 12px !important;
        overflow-y: auto;
    }

    .loja-title {
        font-size: 26px !important;
    }

    /* ── PARQUE: pets reposicionados para o chão no mobile ─── */
    /* Libera overflow para que o pet com bottom negativo não seja cortado */
    .park-ground {
        overflow: visible !important;
    }

    /* O div filho direto também tem overflow: hidden inline — sobrescrevemos */
    .park-ground>div:first-child {
        overflow: visible !important;
    }

    .park-pet {
        bottom: -70px !important;
        font-size: unset !important;
    }

    /* Pets menores no mobile para caber na área compacta */
    .park-pet-emoji {
        font-size: 34px !important;
    }

    /* Nome e badge ficam fora da área visível com bottom -70px: ocultamos */
    .park-pet-name,
    .my-pet-badge {
        display: none !important;
    }

    /* Só mostra os 3 primeiros pets (nth-child começa em 1) */
    .park-pet:nth-child(n+4) {
        display: none !important;
    }
}

/* ── GOOGLE SIGN-IN: escala o iframe para caber no mobile ── */
/* O SDK do Google injeta largura via atributo e iframe, não via CSS,
   por isso usamos transform no wrapper para encolhê-lo. */
@media (max-width: 420px) {
    div[style*="justify-content: center"]:has(.g_id_signin) {
        overflow: hidden;
    }

    .g_id_signin {
        transform: scale(0.82);
        transform-origin: center top;
        display: block !important;
    }
}



/* =========================================
   BOTOES ESPECIFICOS NAS PAGINAS DE COMBATE
   ========================================= */
.battle-page-body .btn-action-main {
    border-bottom: 6px solid rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
}

.battle-page-body .btn-action-main:hover {
    filter: brightness(1.15) !important;
    transform: translateY(-2px) !important;
    border-bottom: 8px solid rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
}

.battle-page-body .btn-action-main:active {
    transform: translateY(6px) !important;
    border-bottom: 0px solid rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.4) !important;
}

.battle-page-body .btn {
    box-shadow: none !important;
}

.battle-page-body .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    filter: none !important;
}

.battle-page-body .btn:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}