.pokemon-image {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}
.stat-bar {
    height: 8px;
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}
.type-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin: 4px;
}
.ability-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: semibold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: inline-block;
    margin: 2px;
}
.ability-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.ability-tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: rgba(51, 51, 51, 0.8);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}
.ability-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(51, 51, 51, 0.8) transparent transparent transparent;
}
.ability-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SP版ヘッダー対応 */
@media (max-width: 640px) {
    header .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    header h1 {
        font-size: 1rem !important; /* text-base */
    }
    
    header p {
        font-size: 0.625rem !important; /* text-xs */
        display: none; /* SP版ではサブタイトルを非表示 */
    }
    
    header .w-12 {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }
    
    header .w-12 i {
        font-size: 0.75rem !important;
    }
    
    header .space-x-4 > * + * {
        margin-left: 0.375rem !important;
    }
    
    header .space-x-3 > * + * {
        margin-left: 0.25rem !important;
    }
    
    header a.inline-block {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        font-size: 0.7rem !important;
    }
    
    header a.inline-block i {
        display: none; /* SP版ではアイコンを非表示 */
    }
}

