/**
 * Pokeca Plugin - Frontend Styles
 */

/* ==========================================================================
   Top Page (ポケカ検索トップページ)
   ========================================================================== */
.pokeca-top {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pokeca-top-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow:
        -4px -4px 0 #000,
        4px -4px 0 #000,
        -4px 4px 0 #000,
        4px 4px 0 #000,
        -4px 0 0 #000,
        4px 0 0 #000,
        0 -4px 0 #000,
        0 4px 0 #000,
        -2px -4px 0 #000,
        2px -4px 0 #000,
        -2px 4px 0 #000,
        2px 4px 0 #000,
        -4px -2px 0 #000,
        4px -2px 0 #000,
        -4px 2px 0 #000,
        4px 2px 0 #000;
    margin-bottom: 40px;
}

/* ボタンコンテナ */
.pokeca-top-buttons {
    display: flex;
    gap: 20px;
}

/* ボタン共通 */
.pokeca-top-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    text-decoration: none;
    aspect-ratio: 1 / 1;
    max-width: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pokeca-top-button:hover {
    transform: translateY(-8px);
    text-decoration: none;
}

/* パック・デッキボタン（赤） */
.pokeca-top-button--store {
    background: #e53935;
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.pokeca-top-button--store:hover {
    box-shadow: 0 12px 30px rgba(229, 57, 53, 0.5);
}

/* カードボタン（青） */
.pokeca-top-button--card {
    background: #1e88e5;
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.pokeca-top-button--card:hover {
    box-shadow: 0 12px 30px rgba(30, 136, 229, 0.5);
}

/* ボタンテキスト（コロコロ風） */
.pokeca-top-button-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    margin-bottom: 20px;
}

/* 扇形カード表示（左から段々重なる） */
.pokeca-fan-cards {
    position: relative;
    width: 220px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pokeca-fan-card {
    position: absolute;
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform-origin: bottom center;
    bottom: 10px;
    left: 50%;
    margin-left: -60px;
    transition: transform 0.3s;
}

/* 中央を基準に扇形配置（2枚目が中央、1枚目が左、3枚目が右） */
.pokeca-fan-card--1 {
    transform: translateX(-35px) rotate(-8deg);
    z-index: 1;
}

.pokeca-fan-card--2 {
    transform: rotate(-4deg);
    z-index: 2;
}

.pokeca-fan-card--3 {
    transform: translateX(35px) rotate(0deg);
    z-index: 3;
}

/* ホバー時に広がる */
.pokeca-top-button:hover .pokeca-fan-card--1 {
    transform: translateX(-45px) rotate(-12deg);
}

.pokeca-top-button:hover .pokeca-fan-card--2 {
    transform: rotate(-6deg);
}

.pokeca-top-button:hover .pokeca-fan-card--3 {
    transform: translateX(45px) rotate(2deg);
}

/* 画像がない場合のプレースホルダー */
.pokeca-fan-placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* トップページ レスポンシブ */
@media screen and (max-width: 768px) {
    .pokeca-top-title {
        font-size: 1.8rem;
    }

    .pokeca-top-buttons {
        gap: 15px;
    }

    .pokeca-top-button {
        max-width: 280px;
    }

    .pokeca-top-button-text {
        font-size: 1.2rem;
    }

    .pokeca-fan-cards {
        width: 160px;
        height: 150px;
        margin-bottom: 10px;
    }

    .pokeca-fan-card {
        width: 80px;
        margin-left: -40px;
    }

    .pokeca-fan-card--1 {
        transform: translateX(-25px) rotate(-8deg);
    }

    .pokeca-fan-card--2 {
        transform: rotate(-4deg);
    }

    .pokeca-fan-card--3 {
        transform: translateX(25px) rotate(0deg);
    }
}

@media screen and (max-width: 480px) {
    .pokeca-top-title {
        font-size: 1.5rem;
    }

    .pokeca-top-button {
        max-width: 180px;
    }

    .pokeca-top-button-text {
        font-size: 1rem;
        text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000;
    }

    .pokeca-fan-cards {
        width: 130px;
        height: 120px;
        margin-bottom: 10px;
    }

    .pokeca-fan-card {
        width: 65px;
        border-radius: 4px;
        margin-left: -32.5px;
    }

    .pokeca-fan-card--1 {
        transform: translateX(-20px) rotate(-6deg);
    }

    .pokeca-fan-card--2 {
        transform: rotate(-3deg);
    }

    .pokeca-fan-card--3 {
        transform: translateX(20px) rotate(0deg);
    }

    .pokeca-top-button:hover .pokeca-fan-card--1 {
        transform: translateX(-25px) rotate(-10deg);
    }

    .pokeca-top-button:hover .pokeca-fan-card--2 {
        transform: rotate(-5deg);
    }

    .pokeca-top-button:hover .pokeca-fan-card--3 {
        transform: translateX(25px) rotate(2deg);
    }
}

/* Single Card/Store Layout */
.pokeca-single-card,
.pokeca-single-store {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.pokeca-card-header,
.pokeca-store-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.pokeca-card-title,
.pokeca-store-title {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #1d2327;
}

/* Main Content */
.pokeca-card-main,
.pokeca-store-main {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* Image */
.pokeca-card-image-wrapper,
.pokeca-store-image-wrapper {
    flex: 0 0 300px;
    max-width: 300px;
}

.pokeca-card-image,
.pokeca-store-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pokeca-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    background: #f0f0f1;
    color: #646970;
    font-size: 16px;
    border-radius: 8px;
}

/* Details */
.pokeca-card-details,
.pokeca-store-details {
    flex: 1;
    min-width: 300px;
}

/* Info Table */
.pokeca-card-info-table,
.pokeca-store-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pokeca-card-info-table th,
.pokeca-store-info-table th {
    text-align: left;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    width: 150px;
    font-weight: 600;
    color: #1d2327;
}

.pokeca-card-info-table td,
.pokeca-store-info-table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    background: #ffffffdd;
}

.pokeca-price {
    font-size: 18px;
    font-weight: bold;
    color: #d63638;
}

/* Badges */
.pokeca-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

.pokeca-badge-official {
    background: #e7f5ea;
    color: #1e7e34;
}

.pokeca-badge-unofficial {
    background: #fcf0f1;
    color: #d63638;
}

.pokeca-badge-type {
    background: #f0f6fc;
    color: #0073aa;
}

/* Attacks & Abilities */
.pokeca-card-attacks,
.pokeca-card-abilities,
.pokeca-card-effect,
.pokeca-card-flavor {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pokeca-card-attacks h3,
.pokeca-card-abilities h3,
.pokeca-card-effect h3,
.pokeca-card-flavor h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1d2327;
}

.pokeca-attack,
.pokeca-ability {
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.pokeca-attack:last-child,
.pokeca-ability:last-child {
    margin-bottom: 0;
}

.pokeca-attack strong,
.pokeca-ability strong {
    color: #1d2327;
}

.pokeca-attack-damage {
    float: right;
    font-weight: bold;
    color: #d63638;
}

.pokeca-attack p,
.pokeca-ability p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #646970;
}

.pokeca-flavor-text {
    font-style: italic;
    color: #646970;
}

/* Products List */
.pokeca-card-products {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pokeca-card-products h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.pokeca-products-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pokeca-products-list li {
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
}

/* Store Description */
.pokeca-store-description {
    margin-top: 20px;
}

.pokeca-store-description h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.pokeca-store-description .pokeca-store-content-text {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    white-space: pre-wrap;
    text-align: left !important;
}

/* Affiliate Section */
.pokeca-card-affiliate,
.pokeca-store-affiliate {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.pokeca-card-affiliate h3,
.pokeca-store-affiliate h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.pokeca-affiliate-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pokeca-affiliate-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.pokeca-affiliate-button:hover {
    opacity: 0.8;
    text-decoration: none;
}

.pokeca-affiliate-button.pokeca-amazon {
    background: #ff9900;
    color: #fff;
}

.pokeca-affiliate-button.pokeca-rakuten {
    background: #bf0000;
    color: #fff;
}

.pokeca-affiliate-button.pokeca-mercari {
    background: #ff0211;
    color: #fff;
}

/* Included Cards Grid */
.pokeca-store-included-cards {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pokeca-store-included-cards h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1d2327;
}

.pokeca-card-count {
    font-weight: normal;
    font-size: 14px;
    color: #646970;
}

/* Cards Header with Sort */
.pokeca-cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.pokeca-cards-header h3 {
    margin: 0;
}

.pokeca-sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pokeca-sort-select-wrapper label {
    font-size: 14px;
    color: #646970;
    white-space: nowrap;
}

.pokeca-sort-select {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    cursor: pointer;
    min-width: 120px;
}

.pokeca-sort-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.pokeca-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.pokeca-card-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pokeca-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.pokeca-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pokeca-card-item .pokeca-card-image-wrapper {
    flex: none;
    max-width: none;
    aspect-ratio: 63 / 88;
    overflow: hidden;
    background: #f0f0f1;
}

.pokeca-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pokeca-card-item .pokeca-no-image {
    height: 100%;
    font-size: 12px;
    border-radius: 0;
}

.pokeca-card-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pokeca-card-meta {
    /* display: flex; */
    align-items: baseline;
    gap: 0.5em;
    flex-wrap: wrap;
    width: 100%;
    justify-content: right;
    text-align-last: right;
    text-align: right;
}

.pokeca-card-info .pokeca-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.3;
}

.pokeca-card-info .pokeca-card-number {
    font-size: 11px;
    color: #646970;
    text-wrap-mode: nowrap;
}

.pokeca-card-info .pokeca-card-rarity {
    font-size: 11px;
    color: #0073aa;
    font-weight: 500;
}

.pokeca-card-info .pokeca-card-price {
    font-size: 12px;
    color: #d63638;
    font-weight: 600;
    text-align: right;
}

/* Price Diff */
.pokeca-price-diff {
    font-size: 0.85em;
    margin-left: 4px;
}

.pokeca-price-up {
    color: #28a745;
}

.pokeca-price-down {
    color: #dc3545;
}

/* ==========================================================================
   Archive Pages
   ========================================================================== */

/* Archive Container */
.pokeca-archive {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 20px; */
}

.pokeca-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.pokeca-archive h1 {
    font-size: 28px;
    margin: 0;
    color: #1d2327;
}

.pokeca-archive-count {
    margin: 0;
    font-size: 14px;
    color: #646970;
}

/* Archive Filters */
.pokeca-archive-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pokeca-search-box {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.pokeca-search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.pokeca-search-box input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.pokeca-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pokeca-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pokeca-filter-group > label {
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.pokeca-type-filters {
    display: ruby;
    flex-wrap: wrap;
    gap: 15px;
}

.pokeca-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.pokeca-filter-checkbox input {
    margin: 0;
}

.pokeca-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.pokeca-multi-select {
    min-width: 150px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.pokeca-multi-select:focus {
    outline: none;
    border-color: #0073aa;
}

/* Store Archive Grid */
.pokeca-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pokeca-store-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pokeca-store-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.pokeca-store-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pokeca-store-item-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f1;
}

.pokeca-store-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pokeca-store-item-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #646970;
    font-size: 14px;
}

.pokeca-store-item-info {
    padding: 15px;
}

.pokeca-store-item-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1d2327;
    line-height: 1.4;
}

.pokeca-store-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #646970;
}

.pokeca-store-item-type {
    padding: 2px 8px;
    background: #f0f6fc;
    color: #0073aa;
    border-radius: 4px;
    font-size: 12px;
}

/* Card Archive Groups */
.pokeca-card-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pokeca-product-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.pokeca-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pokeca-group-title {
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pokeca-group-title a {
    color: #1d2327;
    text-decoration: none;
}

.pokeca-group-title a:hover {
    color: #0073aa;
}

.pokeca-release-date {
    font-size: 14px;
    color: #646970;
    font-weight: normal;
}

.pokeca-group-count {
    font-size: 14px;
    color: #646970;
}

.pokeca-show-more {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #0073aa;
    transition: background 0.2s;
}

.pokeca-show-more:hover {
    background: #f0f6fc;
}

.pokeca-show-more:disabled {
    color: #646970;
    cursor: not-allowed;
}

/* Card Item (in archive) */
.pokeca-card-item .pokeca-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f1;
    color: #646970;
    font-size: 12px;
}

/* Pagination */
.pokeca-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pokeca-pagination a,
.pokeca-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #1d2327;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s;
}

.pokeca-pagination a:hover {
    background: #f0f6fc;
    border-color: #0073aa;
}

.pokeca-pagination .pokeca-page-current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pokeca-pagination .pokeca-page-dots {
    border: none;
    min-width: 30px;
}

.pokeca-pagination .pokeca-page-prev,
.pokeca-pagination .pokeca-page-next {
    padding: 0 15px;
}

/* No Results */
.pokeca-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
    font-size: 16px;
}

/* Loading State */
.pokeca-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .pokeca-card-main,
    .pokeca-store-main {
        flex-direction: column;
    }

    .pokeca-card-image-wrapper,
    .pokeca-store-image-wrapper {
        flex: none;
        width: auto;
        max-width: 100%;
        /* margin-bottom: 20px; */
    }

    .pokeca-card-details,
    .pokeca-store-details {
        min-width: 100%;
    }

    .pokeca-card-title,
    .pokeca-store-title {
        font-size: 22px;
    }

    .pokeca-badge {
        display: block;
        margin: 10px 0 0 0;
        width: fit-content;
    }

    .pokeca-card-info-table th,
    .pokeca-store-info-table th {
        width: 120px;
    }

    .pokeca-affiliate-links {
        flex-direction: column;
    }

    .pokeca-affiliate-button {
        justify-content: center;
    }

    .pokeca-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .pokeca-card-info {
        padding: 8px;
    }

    .pokeca-card-info .pokeca-card-name {
        font-size: 12px;
    }

    .pokeca-card-info .pokeca-card-number,
    .pokeca-card-info .pokeca-card-rarity {
        font-size: 10px;
        text-wrap-mode: nowrap;
    }

    .pokeca-card-info .pokeca-card-price {
        font-size: 11px;
    }

    /* Archive Responsive */
    .pokeca-archive-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pokeca-archive h1 {
        font-size: 22px;
    }

    .pokeca-archive-filters {
        padding: 15px;
    }

    .pokeca-search-box {
        max-width: 100%;
    }

    .pokeca-filter-row {
        flex-direction: column;
    }

    .pokeca-store-grid {
        grid-template-columns: 1fr;
    }

    .pokeca-product-group {
        padding: 15px;
    }

    .pokeca-group-title {
        font-size: 16px;
    }

    .pokeca-pagination a,
    .pokeca-pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* ======================================
   Card Archive Search Row & Buttons
   ====================================== */
.pokeca-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pokeca-search-row input {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.pokeca-search-row input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.pokeca-search-btn {
    width: 100%;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.pokeca-search-btn:hover {
    background: #005a87;
}

.pokeca-detail-btn {
    padding: 10px 20px;
    background: #f0f0f1;
    color: #1d2327;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s;
}

.pokeca-detail-btn:hover {
    background: #e0e0e0;
    border-color: #8c8f94;
}

.pokeca-search-action {
    display: flex;
    justify-content: flex-start;
}

/* ======================================
   Filter Modal
   ====================================== */
.pokeca-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.pokeca-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.pokeca-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.pokeca-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1d2327;
}

.pokeca-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #646970;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.pokeca-modal-close:hover {
    background: #f0f0f1;
    color: #1d2327;
}

.pokeca-modal-body {
    padding: 20px;
}

.pokeca-filter-section {
    margin-bottom: 25px;
}

.pokeca-filter-section:last-child {
    margin-bottom: 0;
}

.pokeca-filter-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #1d2327;
    font-weight: 600;
}

.pokeca-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.pokeca-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
    position: sticky;
    bottom: 0;
    background: #fff;
}

.pokeca-modal-apply {
    padding: 10px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.pokeca-modal-apply:hover {
    background: #005a87;
}

/* ======================================
   Release Date Countdown
   ====================================== */
.pokeca-countdown {
    display: inline-block;
    font-weight: bold;
    color: #d63638;
    font-size: 14px;
    margin-left: 10px;
}

.pokeca-countdown-future,
.pokeca-countdown-today {
    color: #d63638;
}

/* ======================================
   Modal Responsive
   ====================================== */
@media (max-width: 600px) {
    .pokeca-modal-content {
        width: 95%;
        max-height: 85vh;  /* フォールバック */
        max-height: 85dvh; /* ブラウザUIを考慮した動的高さ */
    }

    .pokeca-checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .pokeca-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pokeca-search-row input {
        max-width: 100%;
    }

    .pokeca-filter-row {
        flex-direction: column;
        gap: 15px;
    }

    .pokeca-type-filters {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   Skeleton Loading UI
   ========================================================================== */

/* スケルトンカードコンテナ */
.pokeca-skeleton-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* スケルトン画像プレースホルダー */
.pokeca-skeleton-image {
    aspect-ratio: 63 / 88;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* スケルトンテキストプレースホルダー */
.pokeca-skeleton-text {
    height: 14px;
    margin: 10px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-loading 1.5s infinite;
}

.pokeca-skeleton-text--short {
    width: 60%;
    height: 12px;
    margin-top: 6px;
}

/* スケルトンアニメーション */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ローディング中のグループカウント */
.pokeca-group-count--loading {
    color: #a0a0a0;
    font-style: italic;
}

/* エラー表示 */
.pokeca-error {
    text-align: center;
    padding: 20px;
    color: #d63638;
    font-size: 14px;
}

/* カードなし表示 */
.pokeca-no-cards {
    text-align: center;
    padding: 20px;
    color: #646970;
    font-size: 14px;
}

/* ==========================================================================
   Memo Variants Section (Card Detail Page)
   ========================================================================== */

.pokeca-variants-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pokeca-variants-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1d2327;
}

.pokeca-variants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pokeca-variant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
}

a.pokeca-variant-item:hover {
    background: #f0f6fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.pokeca-variant-current {
    background: #e7f5ea;
    border-color: #1e7e34;
}

.pokeca-variant-thumbnail {
    flex: 0 0 50px;
    width: 50px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f1;
}

.pokeca-variant-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pokeca-no-image-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 10px;
    color: #646970;
    text-align: center;
}

.pokeca-variant-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pokeca-variant-label {
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.pokeca-variant-price {
    font-size: 14px;
    color: #d63638;
    font-weight: 600;
}

/* ==========================================================================
   Memo Badge (Card List & Store Page)
   ========================================================================== */

.pokeca-card-memo {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 500;
    color: #6d28d9;
    background: #ede9fe;
    border-radius: 4px;
    line-height: 1.3;
}

/* カード一覧のmemo（カード名の次に表示、カード名より小さく） */
.pokeca-card-info .pokeca-card-memo {
    font-size: 11px;
}

/* Responsive for Variants */
@media screen and (max-width: 768px) {
    .pokeca-variants-list {
        gap: 8px;
    }

    .pokeca-variant-item {
        padding: 8px;
        gap: 10px;
    }

    .pokeca-variant-thumbnail {
        flex: 0 0 40px;
        width: 40px;
        height: 56px;
    }

    .pokeca-variant-label {
        font-size: 13px;
    }

    .pokeca-variant-price {
        font-size: 13px;
    }
}

/* ==========================================================================
   Flat Card Grid (グループ化廃止後のフラット表示)
   ========================================================================== */
.pokeca-card-container {
    margin-bottom: 30px;
}

.pokeca-card-grid--flat {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

@media screen and (max-width: 768px) {
    .pokeca-card-grid--flat {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}

/* ==========================================================================
   Rarity Filters (常時表示レアリティフィルタ)
   ========================================================================== */
.pokeca-rarity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pokeca-rarity-filters .pokeca-filter-checkbox {
    background: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    transition: background 0.2s, border-color 0.2s;
}

.pokeca-rarity-filters .pokeca-filter-checkbox:hover {
    background: #f0f6fc;
    border-color: #0073aa;
}

.pokeca-rarity-filters .pokeca-filter-checkbox input:checked + span {
    color: #0073aa;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .pokeca-rarity-filters {
        gap: 8px;
    }

    .pokeca-rarity-filters .pokeca-filter-checkbox {
        padding: 4px 10px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Floating Search Button (スマホ用フローティングボタン)
   ========================================================================== */
.pokeca-floating-search {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: auto;
    height: auto;
    padding: 10px 20px;
    /* border-radius: 50%; */
    background: #0073aa;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-style: outset;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pokeca-floating-search:hover,
.pokeca-floating-search:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    outline: none;
}

.pokeca-floating-search:active {
    transform: scale(0.95);
}

.pokeca-floating-icon {
    /* font-size: 24px; */
    line-height: 1;
}

/* PC表示ではフローティングボタン非表示 */
@media (min-width: 769px) {
    .pokeca-floating-search {
        display: none !important;
    }
}

/* ==========================================================================
   Bottom Drawer (スマホ用検索UIドロワー)
   ========================================================================== */
.pokeca-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.pokeca-drawer--open {
    opacity: 1;
    visibility: visible;
}

.pokeca-drawer-content {
    background: #fff;
    width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.pokeca-drawer--open .pokeca-drawer-content {
    transform: translateY(0);
}

.pokeca-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    flex-shrink: 0;
}

.pokeca-drawer-header span {
    font-weight: 600;
    font-size: 16px;
    color: #1d2327;
}

.pokeca-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #646970;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.pokeca-drawer-close:hover {
    background: #f0f0f1;
    color: #1d2327;
}

.pokeca-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ドロワー内の検索UI */
.pokeca-drawer-body .pokeca-search-row {
    margin-bottom: 15px;
}

.pokeca-drawer-body .pokeca-search-row input {
    width: 100%;
    max-width: 100%;
}

.pokeca-drawer-body .pokeca-filter-row {
    margin-bottom: 15px;
}

.pokeca-drawer-body .pokeca-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pokeca-drawer-body .pokeca-rarity-filters {
    margin-bottom: 15px;
}

.pokeca-drawer-body .pokeca-search-action {
    margin-top: 20px;
}

.pokeca-drawer-body .pokeca-search-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
}

.pokeca-drawer-body .pokeca-detail-btn {
    width: 100%;
    margin-top: 10px;
}

/* ==========================================================================
   Card Count Display
   ========================================================================== */
.pokeca-result-count {
    font-size: 14px;
    color: #646970;
    margin-bottom: 15px;
}

.pokeca-result-count strong {
    color: #1d2327;
}

/* ==========================================================================
   Result Bar (件数 + 表示切り替え)
   ========================================================================== */
.pokeca-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pokeca-result-bar .pokeca-result-count {
    margin: 0;
}

/* ==========================================================================
   View Toggle Buttons (グリッド/リスト切り替え)
   ========================================================================== */
.pokeca-view-toggle {
    display: flex;
    gap: 4px;
}

.pokeca-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    color: #646970;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pokeca-view-btn:hover {
    background: #f0f6fc;
    border-color: #0073aa;
    color: #0073aa;
}

.pokeca-view-btn.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

/* ==========================================================================
   Card Grid - Grid Mode (グリッド表示)
   ========================================================================== */
.pokeca-card-grid--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

@media screen and (max-width: 768px) {
    .pokeca-card-grid--grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}

/* ==========================================================================
   Card Grid - List Mode (リスト表示 - テーブル形式)
   ========================================================================== */
.pokeca-card-grid--list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.pokeca-card-grid--list .pokeca-card-item {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
}

.pokeca-card-grid--list .pokeca-card-item:last-child {
    border-bottom: none;
}

.pokeca-card-grid--list .pokeca-card-item:hover {
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
}

.pokeca-card-grid--list .pokeca-card-link {
    display: grid;
    grid-template-columns: 50px 1fr 60px 120px;
    align-items: center;
    gap: 0;
    padding: 0;
}

.pokeca-card-grid--list .pokeca-card-image-wrapper {
    aspect-ratio: auto;
    width: 50px;
    height: auto;
    flex-shrink: 0;
    padding: 8px;
    border-right: 1px solid #f0f0f1;
}

.pokeca-card-grid--list .pokeca-card-thumbnail {
    width: 34px;
    height: auto;
    border-radius: 2px;
}

.pokeca-card-grid--list .pokeca-card-no-image {
    width: 34px;
    height: 48px;
    font-size: 8px;
}

/* display: contents で子要素をグリッドに直接参加させる */
.pokeca-card-grid--list .pokeca-card-info {
    display: contents;
}

/* 名前列 */
.pokeca-card-grid--list .pokeca-card-name {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 8px 8px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 1;
    text-align-last: right;
}

/* memo（名前の後ろに表示） */
.pokeca-card-grid--list .pokeca-card-memo {
    display: none; /* テーブル表示ではmemoは非表示 */
}

/* レアリティ列（名前の横に表示） */
.pokeca-card-grid--list .pokeca-card-rarity {
    font-size: 11px;
    color: #0073aa;
    font-weight: 500;
    padding: 8px 12px 8px 0;
    text-align: left;
    border-right: 1px solid #f0f0f1;
    white-space: nowrap;
    order: 2;
}

/* 番号は非表示 */
.pokeca-card-grid--list .pokeca-card-number {
    /* display: none; */
}

/* 価格列 */
.pokeca-card-grid--list .pokeca-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #d63638;
    white-space: nowrap;
    text-align: right;
    padding: 8px 12px;
    order: 3;
}

.pokeca-card-grid--list .pokeca-card-price .pokeca-price-diff {
    display: block;
    font-size: 11px;
    margin-left: 0;
    margin-top: 2px;
}

/* リスト表示 - モバイル最適化 */
@media screen and (max-width: 768px) {
    /* モバイル: 画像 | 名前+レアリティ+価格（縦積み） */
    .pokeca-card-grid--list .pokeca-card-link {
        display: flex;
        align-items: center;
        padding: 8px;
        gap: 10px;
    }

    .pokeca-card-grid--list .pokeca-card-image-wrapper {
        width: auto;
        padding: 0;
        border-right: none;
        flex-shrink: 0;
    }

    .pokeca-card-grid--list .pokeca-card-thumbnail {
        width: 65px;
    }

    .pokeca-card-grid--list .pokeca-card-no-image {
        width: 45px;
        height: 63px;
    }

    /* info をflex-wrapで名前+レアリティを1行目、価格を2行目に */
    .pokeca-card-grid--list .pokeca-card-info {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px 6px;
        flex: 1;
        min-width: 0;
    }

    .pokeca-card-grid--list .pokeca-card-name {
        font-size: 13px;
        font-weight: 600;
        padding: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 50px);
        border-right: none;
    }

    .pokeca-card-grid--list .pokeca-card-rarity {
        font-size: 11px;
        padding: 0;
        border-right: none;
        flex-shrink: 0;
    }

    .pokeca-card-grid--list .pokeca-card-price {
        font-size: 13px;
        padding: 0;
        width: 100%; /* 2行目に強制改行 */
    }

    .pokeca-card-grid--list .pokeca-card-price .pokeca-price-diff {
        display: inline;
        font-size: 11px;
        margin-left: 4px;
        margin-top: 0;
    }
}

/* ==========================================================================
   追加コンテンツ
   ========================================================================== */

.pokeca-additional-content {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pokeca-additional-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e1e1e;
}

.pokeca-additional-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e1e1e;
}

.pokeca-additional-content h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e1e1e;
}

.pokeca-additional-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #444;
}

.pokeca-additional-content ul,
.pokeca-additional-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.pokeca-additional-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.pokeca-additional-content a {
    color: #0073aa;
    text-decoration: underline;
}

.pokeca-additional-content a:hover {
    color: #005177;
}

.pokeca-additional-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.pokeca-additional-content figure {
    margin: 1.5rem 0;
}

.pokeca-additional-content figcaption {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

.pokeca-additional-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #0073aa;
    background: #f8f9fa;
}

.pokeca-additional-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.pokeca-additional-content th,
.pokeca-additional-content td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.pokeca-additional-content th {
    background: #f8f9fa;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .pokeca-additional-content {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .pokeca-additional-content h2 {
        font-size: 1.25rem;
    }

    .pokeca-additional-content h3 {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Store Market Price (商品市場相場)
   ========================================================================== */

/* 詳細ページ: 市場相場セクション */
.pokeca-store-market-price {
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 2px solid #d63638;
    border-radius: 8px;
}

.pokeca-store-market-price h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1d2327;
    font-weight: 600;
}

.pokeca-market-price-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pokeca-market-price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.pokeca-market-price-label {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.pokeca-market-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #d63638;
}

/* 一覧カード: 価格範囲表示 */
.pokeca-store-item-market-price {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}

.pokeca-market-price-range {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #d63638;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .pokeca-store-market-price {
        padding: 12px 15px;
    }

    .pokeca-market-price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 12px;
    }

    .pokeca-market-price-label {
        font-size: 13px;
    }

    .pokeca-market-price-value {
        font-size: 16px;
    }

    .pokeca-market-price-range {
        font-size: 14px;
    }
}

/* ==========================================================================
   Back Button (戻るボタン)
   ========================================================================== */

.pokeca-back-button-wrapper {
    margin-top: 30px;
    text-align: center;
}

.pokeca-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.pokeca-back-button:hover {
    background: #e0e0e0;
    border-color: #8c8f94;
}

.pokeca-back-button:active {
    background: #d0d0d0;
}

@media screen and (max-width: 768px) {
    .pokeca-back-button-wrapper {
        margin-top: 20px;
    }

    .pokeca-back-button {
        width: 100%;
        padding: 14px 20px;
    }
}
