/*
 * Rocket Wiki — visual refresh layer 3.0
 * One intentional compatibility layer for the legacy feature styles.
 */

/* ---------- Shared page surfaces ---------- */
.page-pokemon-wiki .wiki-section,
.page-pokemons .products-section,
.page-pokemons-sale .products-section {
    padding: 0;
    background: transparent;
}

.page-pokemon-wiki .wiki-search-container {
    max-width: 920px;
    margin: 0 auto 24px;
    padding: 18px;
    border: 1px solid var(--rocket-border);
    border-radius: 20px;
    background: var(--rocket-panel);
    box-shadow: var(--rocket-shadow-sm);
}

.search-box,
.search-input-wrapper,
.search-input-container {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.search-input-container { position: relative; }

.wiki-search-input,
.form-input,
.form-select,
.select-input,
.stat-input,
.move-input,
.item-select-search input,
.listing-field input,
.listing-field select,
.listing-field textarea {
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: #0f1014;
    color: #fff;
    box-shadow: none;
}

textarea.form-input,
.listing-field textarea { min-height: 100px; padding-block: 13px; resize: vertical; }

.wiki-search-input { width: 100%; font-size: 1rem; }
.wiki-search-btn,
.manage-listings-btn,
.team-data-btn,
.contact-btn,
.finalize-order-btn,
.save-button,
.save-button-secondary,
.listing-secondary-btn,
.back-subcategory-btn,
.moves-toggle-btn,
.moveset-export-btn,
.move-change-btn {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--rocket-red);
    color: #fff;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.wiki-search-btn:hover,
.manage-listings-btn:hover,
.contact-btn:hover,
.finalize-order-btn:hover,
.save-button:hover,
.moves-toggle-btn:hover,
.moveset-export-btn:hover,
.move-change-btn:hover {
    background: var(--rocket-red-strong);
    transform: translateY(-1px);
    box-shadow: none;
}

.save-button-secondary,
.listing-secondary-btn,
.back-subcategory-btn,
.team-data-btn {
    border-color: var(--rocket-border-strong);
    background: rgba(255,255,255,.045);
}
.save-button-secondary:hover,
.listing-secondary-btn:hover,
.back-subcategory-btn:hover,

.pokemon-suggestions,
.move-suggestions,
.item-select-dropdown {
    z-index: 300;
    margin-top: 3px;
    overflow: hidden;
    border: 1px solid var(--rocket-border-strong);
    border-radius: 14px;
    background: #17181e;
    box-shadow: var(--rocket-shadow);
}

.suggestion-item,
.move-suggestion,
.item-option {
    min-height: 48px;
    padding: 10px 13px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: transparent;
    color: #e7e7eb;
}
.suggestion-item:last-child,
.move-suggestion:last-child,
.item-option:last-child { border-bottom: 0; }
.suggestion-item:hover,
.suggestion-item.highlighted,
.move-suggestion:hover,
.item-option:hover { background: rgba(229,28,47,.11); }

/* ---------- Pokemon Wiki ---------- */
.page-pokemon-wiki .wiki-section { max-width: 1160px; margin: 0 auto; }
.page-pokemon-wiki .wiki-content { margin-top: 22px; }
.page-pokemon-wiki .wiki-pokemon-info { display: grid; gap: 18px; }

.wiki-pokemon-header {
    min-height: 330px;
    padding: clamp(24px, 4vw, 46px);
    display: grid;
    grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(25px, 5vw, 65px);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--rocket-border);
    border-radius: 26px;
    background: linear-gradient(125deg, rgba(229,28,47,.12), transparent 45%), #121318;
    box-shadow: var(--rocket-shadow-sm);
}

.wiki-pokemon-header::after {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    left: -110px;
    top: -80px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255,255,255,.008);
}

.wiki-pokemon-image-container {
    min-height: 260px;
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.wiki-pokemon-image { width: min(100%, 300px); max-height: 300px; object-fit: contain; filter: drop-shadow(0 25px 26px rgba(0,0,0,.55)); }
.wiki-pokemon-title { margin: 0 0 14px; color: #fff; font-family: inherit; font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 900; letter-spacing: -.055em; line-height: .95; text-shadow: none; }
.wiki-types { display: flex; flex-wrap: wrap; gap: 6px; }
.type-badge,
.type-chip,
.spawn-dimension-badge,
.spawn-rarity-badge,
.egg-group-badge {
    min-height: 31px;
    padding: 6px 11px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    box-shadow: none;
    font-size: .72rem;
    font-weight: 900;
    text-shadow: none;
}
.wiki-action-buttons { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.favorite-toggle-btn,
.compare-toggle-btn,
.shiny-toggle-btn,
.regional-variant-btn,
.mega-button {
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--rocket-border-strong);
    border-radius: 9px;
    background: rgba(255,255,255,.045);
    color: #e8e8ec;
    box-shadow: none;
    font-size: .73rem;
    font-weight: 800;
}
.favorite-toggle-btn:hover,
.compare-toggle-btn:hover,
.shiny-toggle-btn:hover,
.regional-variant-btn:hover,
.mega-button:hover,
.regional-variant-btn.active,
.mega-button.active { background: rgba(229,28,47,.14); border-color: rgba(229,28,47,.4); transform: none; }

.wiki-description-section,
.wiki-region-section,
.wiki-stats-grid,
.wiki-abilities,
.wiki-evolutions-compact,
.wiki-type-chart,
.wiki-spawn-section,
.wiki-moves-section,
.info-section {
    margin: 0;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--rocket-border);
    border-radius: 20px;
    background: var(--rocket-panel);
    box-shadow: none;
}

.wiki-description-section h3,
.wiki-region-section h3,
.wiki-abilities h3,
.wiki-evolutions-compact h3,
.wiki-type-chart h3,
.wiki-spawn-section h3,
.wiki-moves-section h3,
.info-section h3 {
    margin: 0 0 18px;
    color: #fff;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 900;
    text-shadow: none;
}

.wiki-description-text { color: var(--rocket-muted); line-height: 1.75; }
.wiki-stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.wiki-stat-card,
.stat-item {
    padding: 17px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    box-shadow: none;
}
.stat-name { color: var(--rocket-muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.stat-value { color: #fff; font-size: 1.2rem; font-weight: 900; text-shadow: none; }
.stat-bar { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #282932; }
.stat-bar-fill { border-radius: inherit; background: var(--rocket-red); box-shadow: none; }

.abilities-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; }
.ability-item { padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.025); }
.ability-name { color: #fff; font-weight: 900; }

.evolutions-chain-compact { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.evolution-chain-compact-item { min-width: 145px; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.025); }
.evolution-chain-compact-item:hover { border-color: rgba(229,28,47,.32); background: rgba(229,28,47,.07); transform: translateY(-2px); }
.evolution-chain-compact-image { width: 86px; height: 86px; object-fit: contain; }
.evolution-arrow-compact { color: var(--rocket-faint); }

.type-chart-grid { display: grid; gap: 6px; }
.type-chart-grid > div { padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.02); }

.spawn-items-grid,
.drops-grid,
.moves-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 10px; }
.spawn-item,
.drop-item,
.move-item,
.wiki-move-item {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
    box-shadow: none;
}

.wiki-loading { min-height: 240px; display: grid; place-items: center; color: var(--rocket-muted); }
.loading-spinner { color: var(--rocket-red); filter: none; }
.wiki-error { padding: 18px; border: 1px solid rgba(255,83,100,.3); border-radius: 14px; background: rgba(255,83,100,.08); color: #ffb4bc; }

/* ---------- Products and listings ---------- */
.listing-toolbar { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.listing-toolbar-note { margin: 0; color: var(--rocket-faint); font-size: .76rem; }

.products-grid {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(285px,1fr));
    gap: 16px;
}

.product-card {
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--rocket-border);
    border-radius: 19px;
    background: var(--rocket-panel);
    box-shadow: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.product-card::after { display: none; }
.product-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.19); box-shadow: var(--rocket-shadow-sm); }
.product-user-info { margin: -18px -18px 15px; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--rocket-border); border-radius: 0; background: #101116; }
.product-user-avatar,
.product-user-avatar-placeholder { width: 32px; height: 32px; border: 1px solid rgba(229,28,47,.4); }
.product-user-avatar-placeholder { background: #24252c; }
.product-image,
#productsGrid .product-image {
    height: 230px;
    margin-bottom: 17px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 15px;
    background: linear-gradient(155deg, rgba(229,28,47,.08), transparent 55%), #0f1014;
    box-shadow: none;
}
.product-image img { max-width: 92%; max-height: 92%; filter: drop-shadow(0 18px 20px rgba(0,0,0,.45)); }
.product-info { text-align: left; }
.product-name { min-height: 0; margin: 0 0 7px; color: #fff; font-size: 1.25rem; text-align: left; text-shadow: none; }
.product-description { margin-bottom: 15px; color: var(--rocket-muted); font-size: .88rem; text-align: left; text-shadow: none; }
.product-quantity,
.product-price,
.price-section {
    margin-bottom: 6px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    box-shadow: none;
}
.quantity-label,
.price-label { color: var(--rocket-muted); font-size: .68rem; }
.quantity-value { color: #fff; font-size: .95rem; text-shadow: none; }
.price-value { color: var(--rocket-gold); font-size: 1.25rem; text-shadow: none; }
.contact-btn { width: 100%; margin-top: 5px; }

.custom-order-modal,
.listing-manager-dialog__panel {
    border: 1px solid var(--rocket-border-strong);
    border-radius: 22px;
    background: #15161b;
    box-shadow: var(--rocket-shadow);
}
.custom-order-form,
.listing-manager-form { display: grid; gap: 16px; }
.form-section,
.listing-field { display: grid; gap: 6px; }
.form-label,
.listing-field label { color: #d7d7dd; font-size: .74rem; font-weight: 900; }
.info-box,
.price-info { padding: 14px; border: 1px solid rgba(242,201,76,.2); border-radius: 13px; background: rgba(242,201,76,.055); color: #ddd6ae; }

/* ---------- Pokemania guide ---------- */
.page-pokemania-wiki .main-content { width: min(1160px, calc(100% - 36px)); }
.page-pokemania-wiki .categories-section { margin: 0; padding: 0; }
.page-pokemania-wiki .section-title { margin: 0; color: #fff; font-family: inherit; font-size: 1.55rem; font-weight: 900; text-align: left; text-shadow: none; }
.page-pokemania-wiki .section-subtitle { margin: 6px 0 20px; color: var(--rocket-muted); text-align: left; text-shadow: none; }

.wiki-cards-container,
.wiki-sub-cards-container {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
}
.wiki-card,
.wiki-sub-card {
    min-height: 168px;
    padding: 19px;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0,1fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    column-gap: 15px;
    border: 1px solid var(--rocket-border);
    border-radius: 17px;
    background: var(--rocket-panel);
    box-shadow: none;
    cursor: pointer;
    transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}
.wiki-card:hover,
.wiki-sub-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.19); background: #191a20; box-shadow: none; }
.wiki-sub-card::before { content:""; position:absolute; right:-42px; bottom:-54px; width:130px; height:130px; border:1px solid rgba(255,255,255,.035); border-radius:50%; }
.wiki-card-icon,
.wiki-sub-card-icon { grid-row: 1/3; width: 72px; height: 90px; margin: 0; display: grid; place-items: center; border: 0; background: transparent; }
.wiki-card-pokemon-icon { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 13px 14px rgba(0,0,0,.42)); }
.wiki-card h3,
.wiki-sub-card h3 { align-self: end; margin: 0 32px 5px 0; color: #fff; font-family: inherit; font-size: 1.05rem; font-weight: 900; text-align: left; text-shadow: none; }
.wiki-card p,
.wiki-sub-card p { align-self: start; margin: 0; color: #8d8d97; font-size: .74rem; line-height: 1.45; text-align: left; }
.wiki-card-toggle-btn { width: 31px; height: 31px; right: 12px; top: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: rgba(255,255,255,.03); color: #a8a8b0; box-shadow: none; }
.wiki-card-toggle-btn:hover { background: var(--rocket-red); border-color: var(--rocket-red); color: #fff; transform: none; }

.wiki-content-container { display: none; margin-top: 20px; }
.wiki-content-container.active { display: block; }
.page-pokemania-wiki .wiki-content {
    padding: clamp(24px,4vw,42px);
    position: relative;
    border: 1px solid var(--rocket-border);
    border-radius: 24px;
    background: #111217;
    box-shadow: var(--rocket-shadow-sm);
}
.wiki-content-header { margin: -4px 45px 30px 0; padding: 0 0 22px; border-bottom: 1px solid var(--rocket-border); }
.wiki-content-title { margin: 0; display: flex; align-items: center; gap: 10px; color: #fff; font-family: inherit; font-size: clamp(1.7rem,3vw,2.45rem); font-weight: 900; line-height: 1.12; text-shadow: none; }
.wiki-title-emoji-icon { width: 44px; height: 44px; object-fit: contain; }

.page-pokemania-wiki .wiki-section {
    margin: 0 0 14px;
    padding: clamp(20px,3vw,28px);
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 16px;
    background: rgba(255,255,255,.022);
    box-shadow: none;
}
.page-pokemania-wiki .wiki-section:last-child { margin-bottom: 0; }
.page-pokemania-wiki .wiki-section h3 { margin: 0 0 14px; color: #fff; font-family: inherit; font-size: 1.12rem; font-weight: 900; text-shadow: none; }
.page-pokemania-wiki .wiki-section h4,
.wiki-content-heading { margin: 21px 0 9px; color: #e7e7eb; font-size: .95rem; }
.page-pokemania-wiki .wiki-section p,
.page-pokemania-wiki .wiki-section li { color: #aaaab3; }
.page-pokemania-wiki .wiki-section strong { color: #ececf0; }

.wiki-steps-list { padding: 0; list-style: none; counter-reset: rocket-step; }
.wiki-steps-list > li {
    min-height: 42px;
    margin: 9px 0;
    padding: 9px 0 9px 49px;
    position: relative;
    counter-increment: rocket-step;
}
.wiki-steps-list > li::before {
    content: counter(rocket-step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 6px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229,28,47,.26);
    border-radius: 10px;
    background: rgba(229,28,47,.09);
    color: #ff7180;
    font-size: .63rem;
    font-weight: 900;
}

.page-pokemania-wiki .wiki-section ul:not(.wiki-steps-list) { padding-left: 0; list-style: none; }
.page-pokemania-wiki .wiki-section ul:not(.wiki-steps-list) > li { margin: 7px 0; padding-left: 21px; position: relative; }
.page-pokemania-wiki .wiki-section ul:not(.wiki-steps-list) > li::before { content:""; position:absolute; left:2px; top:.7em; width:6px; height:6px; border-radius:50%; background:var(--rocket-red); }

.wiki-command { padding: 3px 8px; border: 1px solid rgba(89,199,230,.18); border-radius: 7px; background: rgba(89,199,230,.07); color: #91dff4; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; box-shadow: none; }
.wiki-command-block { padding: 14px; display: block; overflow-x: auto; border-radius: 12px; }
.wiki-note,
.wiki-info-panel,
.wiki-highlight-card {
    margin-top: 16px;
    padding: 15px 17px;
    border: 1px solid rgba(242,201,76,.19);
    border-left: 3px solid var(--rocket-gold);
    border-radius: 10px;
    background: rgba(242,201,76,.045);
    color: #d4ceb0;
    box-shadow: none;
}
.wiki-note-danger { border-color: rgba(255,83,100,.22); border-left-color: var(--rocket-danger); background: rgba(255,83,100,.055); color: #e8bbc0; }
.wiki-image-container { margin: 20px 0; padding: 9px; border: 1px solid var(--rocket-border); border-radius: 15px; background: #0d0e12; box-shadow: none; }
.wiki-image { width: 100%; border-radius: 10px; box-shadow: none; }
.wiki-image-caption { margin: 10px 5px 2px; color: #777782; font-size: .68rem; text-align: left; }
.wiki-tier-grid,
.wiki-rewards-grid,
.wiki-dungeon-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; }
.tier-s-pokemon-card,
.wiki-raid-pokemon { padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.025); box-shadow: none; }

/* ---------- Dialog harmonization ---------- */
.contact-modal .modal-content h3,
.custom-order-modal h3,
.listing-manager-dialog__panel h2 {
    color: #fff;
    font-family: inherit;
    font-size: 1.45rem;
    font-weight: 900;
    text-shadow: none;
}
.contact-option { border: 1px solid var(--rocket-border); border-radius: 13px; background: rgba(255,255,255,.025); box-shadow: none; }
.contact-option:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.055); box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .wiki-pokemon-header { grid-template-columns: 220px minmax(0,1fr); }
    .wiki-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .wiki-cards-container,
    .wiki-sub-cards-container { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
    .search-input-wrapper { flex-direction: column; }
    .wiki-search-btn { width: 100%; }
    .wiki-pokemon-header { min-height: 0; padding: 25px 20px; grid-template-columns: 1fr; gap: 6px; text-align: center; }
    .wiki-pokemon-image-container { min-height: 220px; }
    .wiki-pokemon-image { max-height: 220px; }
    .wiki-types,
    .wiki-action-buttons { justify-content: center; }
    .wiki-stats-grid { grid-template-columns: 1fr; }
    .spawn-items-grid,
    .drops-grid,
    .moves-list { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .product-card { max-width: none !important; }
    .wiki-cards-container,
    .wiki-sub-cards-container { grid-template-columns: 1fr; }
    .wiki-card,
    .wiki-sub-card { min-height: 145px; }
    .page-pokemania-wiki .wiki-content { padding: 20px 14px; }
    .page-pokemania-wiki .wiki-section { padding: 18px 15px; }
    .wiki-content-title { font-size: 1.55rem; }
}

@media (max-width: 480px) {
    .page-pokemon-wiki .wiki-search-container { padding: 11px; border-radius: 15px; }
    .wiki-pokemon-header { border-radius: 19px; }
    .wiki-description-section,
    .wiki-region-section,
    .wiki-stats-grid,
    .wiki-abilities,
    .wiki-evolutions-compact,
    .wiki-type-chart,
    .wiki-spawn-section,
    .wiki-moves-section,
    .info-section { padding: 18px 14px; border-radius: 15px; }
    .wiki-card,
    .wiki-sub-card { grid-template-columns: 62px 1fr; padding: 15px; column-gap: 12px; }
    .wiki-card-icon,
    .wiki-sub-card-icon { width: 62px; height: 76px; }
}


.wiki-cards-container.has-active { margin-bottom: 16px; }
.wiki-card.is-active { border-color: rgba(229,28,47,.45); background: rgba(229,28,47,.085); }
.wiki-card.is-active h3 { color: #fff; }
.wiki-card > .wiki-card-toggle-btn,
.wiki-sub-card > .wiki-card-toggle-btn {
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    border: 0;
    border-radius: inherit;
    background: transparent;
    opacity: 0;
    cursor: pointer;
}
.wiki-card > .wiki-card-toggle-btn:focus-visible,
.wiki-sub-card > .wiki-card-toggle-btn:focus-visible {
    opacity: 1;
    outline: 3px solid var(--rocket-gold);
    outline-offset: -3px;
}


.page-header {
    min-height: 270px;
    margin: 0 0 28px;
    padding: 42px clamp(28px, 5vw, 58px);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 280px);
    align-items: center;
    gap: 30px;
    text-align: left;
    border: 1px solid var(--rocket-border);
    border-radius: var(--rocket-radius-xl);
    background: linear-gradient(120deg, rgba(229,28,47,.12), transparent 43%), #111217;
    box-shadow: var(--rocket-shadow-sm);
}
.page-header::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -140px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255,255,255,.008);
}
.page-header__copy { position: relative; z-index: 2; }
.page-title {
    margin: 13px 0 10px;
    color: #fff;
    font-family: inherit;
    font-size: clamp(2.45rem, 5vw, 5rem);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: .98;
    text-align: left;
    text-shadow: none;
}
.page-subtitle {
    max-width: 720px;
    margin: 0;
    color: #aaaab4;
    font-size: 1.03rem;
    text-align: left;
    text-shadow: none;
}
.page-header__art,
.page-header__brand-art { position: relative; z-index: 2; justify-self: center; align-self: end; width: min(100%, 235px); }
.page-header__art img { width: 100%; max-height: 230px; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(0,0,0,.5)); }
.page-header__brand-art { width: min(100%, 360px); align-self: center; }
.page-header__brand-art img { width: 100%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); }

@media (max-width: 850px) {
    .page-header { min-height: 230px; padding: 34px 30px; grid-template-columns: minmax(0,1fr) 150px; }
}
@media (max-width: 600px) {
    .page-header { min-height: 220px; padding: 28px 22px; grid-template-columns: minmax(0,1fr) 95px; border-radius: 22px; }
    .page-title { font-size: clamp(2.2rem, 12vw, 3.5rem); }
    .page-subtitle { font-size: .92rem; }
    .page-header__art { width: 110px; }
    .page-header__brand-art { width: 145px; }
}


.empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: url('../../site pngs/baixados.png') center / contain no-repeat;
    font-size: 0;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
}
.loading-spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,.1);
    border-top-color: var(--rocket-red);
    border-radius: 50%;
    font-size: 0;
    animation: rocket-spin .8s linear infinite;
}
@keyframes rocket-spin { to { transform: rotate(360deg); } }


.home-hero h1 { font-size: 5.2rem; font-size: clamp(3.05rem, 5.4vw, 5.7rem); }
.page-title { font-size: 4.5rem; font-size: clamp(2.45rem, 5vw, 5rem); }
.analyzer-title { font-size: 4.3rem; font-size: clamp(2.5rem,5vw,4.8rem); }

@media (max-width: 600px) {
    .page-header {
        min-height: 300px;
        padding: 28px 22px 122px;
        display: block;
    }
    .page-header__copy { max-width: none; }
    .page-title { font-size: 3rem; font-size: clamp(2.2rem, 12vw, 3.5rem); }
    .page-header__art,
    .page-header__brand-art {
        position: absolute;
        right: 12px;
        bottom: 4px;
        width: 125px;
        opacity: .88;
    }
    .page-header__brand-art { width: 190px; bottom: 24px; }
}

/* ---------- Dynamic interface components ---------- */
.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 30000;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-weight: 900;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

body.modal-open { overflow: hidden; }
body.page-transition { pointer-events: none; }
body.page-transition::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 25000;
    background: rgba(9, 9, 11, .34);
    animation: rocket-page-fade 180ms ease both;
}
@keyframes rocket-page-fade { from { opacity: 0; } to { opacity: 1; } }

.is-busy {
    position: relative;
    pointer-events: none;
    opacity: .72;
}
.is-busy::after {
    content: "";
    width: 15px;
    height: 15px;
    margin-left: 9px;
    display: inline-block;
    vertical-align: -2px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: rocket-spin .7s linear infinite;
}

.rocket-toast-region {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 24000;
    width: min(390px, calc(100vw - 36px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}
.rocket-toast {
    position: relative;
    padding: 14px 16px 14px 47px;
    overflow: hidden;
    border: 1px solid var(--rocket-border-strong);
    border-radius: 14px;
    background: rgba(20, 21, 26, .96);
    color: #f5f5f7;
    box-shadow: var(--rocket-shadow);
    font-size: .8rem;
    font-weight: 750;
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(18px);
}
.rocket-toast::before {
    content: "i";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--rocket-blue);
    font-size: .72rem;
    font-weight: 900;
    transform: translateY(-50%);
}
.rocket-toast::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--rocket-blue);
}
.rocket-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.rocket-toast--success::before { content: "✓"; color: var(--rocket-green); }
.rocket-toast--success::after { background: var(--rocket-green); }
.rocket-toast--error::before { content: "!"; color: var(--rocket-danger); }
.rocket-toast--error::after { background: var(--rocket-danger); }
.rocket-toast--warning::before { content: "!"; color: var(--rocket-gold); }
.rocket-toast--warning::after { background: var(--rocket-gold); }

.ui-state {
    min-height: 112px;
    margin: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, .13);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
    color: var(--rocket-muted);
    text-align: center;
    font-size: .9rem;
    font-weight: 700;
}
.ui-state--loading::before {
    content: "";
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: var(--rocket-red);
    border-radius: 50%;
    animation: rocket-spin .75s linear infinite;
}
.ui-state--error {
    border-color: rgba(255, 83, 100, .28);
    background: rgba(255, 83, 100, .06);
    color: #ffb4bd;
}
.ui-state--empty { color: #9797a1; }

.rocket-data-dialog {
    position: fixed;
    inset: 0;
    z-index: 22000;
    padding: clamp(16px, 4vw, 42px);
    display: grid;
    place-items: center;
    overflow: auto;
    background: rgba(3, 3, 5, .82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
    backdrop-filter: blur(12px);
}
.rocket-data-dialog.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.rocket-data-dialog__panel {
    width: min(760px, 100%);
    max-height: min(780px, calc(100dvh - 40px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--rocket-border-strong);
    border-radius: 24px;
    background: #131419;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .62);
    transform: translateY(18px) scale(.985);
    transition: transform 180ms ease;
}
.rocket-data-dialog.is-open .rocket-data-dialog__panel { transform: translateY(0) scale(1); }
.rocket-data-dialog__header {
    min-height: 76px;
    padding: 18px 20px 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--rocket-border);
    background: #101116;
}
.rocket-data-dialog__header h2,
.rocket-data-dialog__header h3 { margin: 0; color: #fff; font-size: clamp(1.15rem, 3vw, 1.5rem); line-height: 1.15; }
.rocket-data-dialog__close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--rocket-border-strong);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}
.rocket-data-dialog__close:hover { border-color: var(--rocket-red); background: var(--rocket-red); }
.rocket-data-dialog__content {
    min-height: 0;
    padding: clamp(20px, 4vw, 30px);
    overflow-y: auto;
}

.favorites-list {
    display: grid;
    gap: 10px;
}
.favorite-row {
    min-width: 0;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.favorite-row:hover {
    border-color: rgba(240,196,25,.28);
    background: linear-gradient(145deg, rgba(240,196,25,.055), rgba(255,255,255,.018));
    transform: translateY(-1px);
}
.favorite-row__link {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f1f1f3;
    text-decoration: none;
}
.favorite-row__sprite {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
.favorite-row__sprite img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    image-rendering: auto;
}
.favorite-row__placeholder {
    color: rgba(255,255,255,.35);
    font-size: 1.1rem;
    font-weight: 900;
}
.favorite-row__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.favorite-row__copy strong {
    overflow: hidden;
    color: #f4f4f6;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.favorite-row__copy span {
    color: #777982;
    font-size: .73rem;
    font-weight: 850;
    line-height: 1;
}
.favorite-row__link:hover .favorite-row__copy strong { color: var(--rocket-gold); }
.favorite-row__remove,
.comparison-reset-btn,
.listing-manager-row button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: #cfcfd5;
    font-size: .76rem;
    font-weight: 850;
    cursor: pointer;
}
.favorite-row__remove {
    width: 36px;
    min-width: 36px;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
}
.favorite-row__remove:hover,
.listing-manager-row button:hover { border-color: rgba(229,28,47,.45); background: rgba(229,28,47,.12); color: #fff; }

.pokemon-comparison-panel {
    width: min(1040px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
}
#pokemonComparisonDialog .rocket-data-dialog__header {
    min-height: 64px;
    padding: 12px 16px 12px 20px;
}
#pokemonComparisonDialog .rocket-data-dialog__content {
    padding: 14px 16px 16px;
    overflow: hidden;
}
.comparison-dialog__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--rocket-gold);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.comparison-matchup {
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}
.comparison-pokemon-card {
    min-width: 0;
    min-height: 116px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 12px;
    overflow: hidden;
    border: 1px solid var(--rocket-border);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    text-align: left;
}
.comparison-pokemon-card__image-wrap {
    width: 96px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}
.comparison-pokemon-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 12px rgba(0,0,0,.32));
}
.comparison-pokemon-card__copy {
    min-width: 0;
    display: grid;
    justify-items: start;
    gap: 3px;
}
.comparison-pokemon-card__number {
    color: var(--rocket-muted);
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .08em;
}
.comparison-pokemon-card__name {
    max-width: 100%;
    color: #fff;
    font-size: clamp(.96rem, 2vw, 1.18rem);
    font-weight: 950;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.comparison-pokemon-card__types {
    color: #b9b9c2;
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.2;
    text-transform: capitalize;
}
.comparison-versus {
    width: 40px;
    height: 40px;
    align-self: center;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229,28,47,.35);
    border-radius: 50%;
    background: rgba(229,28,47,.11);
    color: #fff;
    font-size: .65rem;
    font-weight: 950;
    letter-spacing: .05em;
}
.comparison-table-wrapper {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--rocket-border);
    border-radius: 14px;
    background: #101116;
}
.comparison-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    background: transparent;
}
.comparison-table th,
.comparison-table td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255,255,255,.065);
    text-align: center;
    font-size: .76rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.comparison-table thead th {
    background: #15161c;
    color: #f4f4f7;
    font-size: .72rem;
    font-weight: 900;
}
.comparison-table th:first-child {
    width: 36%;
    text-align: left;
    color: #bdbdc6;
}
.comparison-table thead th:not(:first-child) { width: 32%; }
.comparison-table tr:last-child th,
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr:last-child { background: rgba(242,201,76,.055); }
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { color: #ffe28b; font-weight: 900; }
.comparison-table td { color: #fff; font-weight: 800; }
.comparison-table .is-better { color: #79e5ac; background: rgba(66,207,133,.07); }
.comparison-table .is-worse { color: #ff929f; }
.comparison-actions {
    display: flex;
    justify-content: center;
}
.comparison-reset-btn {
    margin-top: 12px;
    min-height: 38px;
}
.favorite-toggle-btn.is-favorite,
.compare-toggle-btn.is-selected { border-color: rgba(242,201,76,.55); background: rgba(242,201,76,.12); color: #ffe28b; }

/* Competitive moveset module */
.moveset-container {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--rocket-border);
    border-radius: 18px;
    background: #101116;
}
.moveset-header {
    min-height: 66px;
    padding: 13px 15px 13px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--rocket-border);
    background: rgba(255,255,255,.025);
}
.moveset-header h4 { margin: 0; color: #fff; font-size: .95rem; font-weight: 900; }
.moveset-header-actions,
.moveset-navigation { display: flex; align-items: center; gap: 6px; }
.moveset-nav-btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--rocket-border-strong);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: #fff;
    cursor: pointer;
}
.moveset-nav-btn:hover { border-color: var(--rocket-red); background: rgba(229,28,47,.12); }
.moveset-counter { min-width: 48px; color: var(--rocket-muted); font-size: .76rem; font-weight: 850; text-align: center; }
.moveset-content { padding: 18px; }
.moveset-set { display: grid; gap: 10px; }
.moveset-line {
    min-height: 43px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}
.moveset-label { min-width: 84px; color: var(--rocket-muted); font-size: .76rem; font-weight: 850; }
.moveset-value { color: #f2f2f4; font-size: .86rem; font-weight: 750; }
.moveset-item-icon { width: 28px; height: 28px; object-fit: contain; image-rendering: auto; }
.moveset-moves { margin-top: 5px; display: grid; gap: 6px; }
.moveset-moves-title { margin: 4px 0 2px; color: var(--rocket-muted); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.moveset-move-item { min-height: 40px; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.065); border-radius: 10px; background: rgba(255,255,255,.025); }
.moveset-move-display { width: 100%; min-height: 40px; padding: 9px 12px; display: flex; align-items: center; cursor: help; }
.moveset-export-btn.is-copied { border-color: rgba(66,207,133,.4); background: rgba(66,207,133,.14); color: #a8f2ca; }

/* Local listing manager */
.listing-manager-dialog__panel { width: min(940px, 100%); }
.listing-manager-subtitle { max-width: 650px; margin: 6px 0 0; color: var(--rocket-muted); font-size: .8rem; }
.listing-manager-form {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    border: 1px solid var(--rocket-border);
    border-radius: 17px;
    background: #101116;
}
.listing-field { min-width: 0; display: grid; gap: 6px; }
.listing-field--wide { grid-column: 1 / -1; }
.listing-field label { color: #c6c6ce; font-size: .75rem; font-weight: 850; }
.listing-manager-form__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.listing-manager-current { margin-top: 24px; }
.listing-manager-current h3 { margin: 0 0 12px; color: #fff; font-size: 1rem; }
.listing-manager-row {
    min-height: 62px;
    padding: 10px 11px 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.065);
}
.listing-manager-row:last-child { border-bottom: 0; }
.listing-manager-row div { min-width: 0; display: grid; gap: 3px; }
.listing-manager-row strong { color: #fff; }
.listing-manager-row small { color: var(--rocket-muted); }


.welcome-avatar-frame {
    width: 148px;
    min-height: 238px;
    padding: 9px;
    display: grid;
    place-items: end center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: radial-gradient(circle at 50% 25%, rgba(229,28,47,.15), transparent 55%), #101116;
}
.welcome-avatar-image { width: 100%; max-height: 220px; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0,0,0,.4)); }
.welcome-avatar-loading,
.welcome-avatar-error {
    min-height: 170px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--rocket-muted);
    font-size: .74rem;
    text-align: center;
}
.welcome-avatar-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: var(--rocket-red);
    border-radius: 50%;
    animation: rocket-spin .75s linear infinite;
}
.welcome-avatar-error { color: #ffadb7; }
.welcome-avatar-error--compact { min-height: auto; margin: 7px 0 0; }

.sidebar-data-tools { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-section-title { margin: 0 0 9px; padding: 0 10px; color: #777781; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-icon { color: #f3f3f5; font-size: .68rem; font-weight: 950; letter-spacing: .02em; }

@media (max-width: 680px) {
    .rocket-data-dialog { padding: 0; place-items: end center; }
    .rocket-data-dialog__panel {
        width: 100%;
        max-height: 92dvh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }
    .rocket-data-dialog__header { padding-inline: 18px 14px; }
    .rocket-data-dialog__content { padding: 18px; }
    .comparison-table { min-width: 580px; }
    .moveset-header { align-items: flex-start; flex-direction: column; }
    .moveset-header-actions { width: 100%; justify-content: space-between; }
    .moveset-line { align-items: flex-start; flex-wrap: wrap; }
    .moveset-label { min-width: 74px; }
    .listing-manager-form { grid-template-columns: 1fr; padding: 15px; }
    .listing-field--wide { grid-column: auto; }
    .welcome-content { flex-direction: column !important; align-items: stretch !important; }
    .welcome-avatar-frame { width: min(180px, 100%); min-height: 210px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .rocket-toast,
    .rocket-data-dialog,
    .rocket-data-dialog__panel,
    body.page-transition::before { transition: none; animation: none; }
}

/* First-access profile screen */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 26000;
    padding: 22px;
    display: grid;
    place-items: center;
    overflow-y: auto;
    background:
        linear-gradient(rgba(5, 5, 7, .87), rgba(5, 5, 7, .94)),
        url('../../site pngs/3021152.png') center / cover no-repeat;
    backdrop-filter: blur(8px);
    transition: opacity 220ms ease, visibility 220ms ease;
}
.welcome-overlay.is-leaving { opacity: 0; visibility: hidden; }
.welcome-modal {
    position: relative;
    width: min(760px, 100%);
    overflow: hidden;
    border: 1px solid var(--rocket-border-strong);
    border-radius: 28px;
    background: rgba(18, 19, 24, .97);
    box-shadow: 0 36px 120px rgba(0,0,0,.7);
}
.welcome-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.welcome-modal__close:hover { background: var(--rocket-red); border-color: var(--rocket-red); }
.welcome-modal__close:focus-visible { outline: 3px solid rgba(229,28,47,.22); outline-offset: 2px; }
.welcome-modal::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--rocket-red);
}
.welcome-modal__brand {
    position: absolute;
    right: -48px;
    top: -58px;
    width: 190px;
    height: 190px;
    opacity: .045;
    pointer-events: none;
    transform: rotate(10deg);
}
.welcome-modal__brand img { width: 100%; height: 100%; object-fit: contain; }
.welcome-content {
    position: relative;
    z-index: 1;
    padding: clamp(25px, 5vw, 46px);
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 46px);
}
.welcome-avatar-preview { min-width: 0; display: grid; place-items: center; }
.welcome-form { min-width: 0; display: grid; gap: 10px; }
.welcome-form h2 {
    margin: 7px 0 3px;
    color: #fff;
    font-family: inherit;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 950;
    letter-spacing: -.045em;
    line-height: 1;
}
.welcome-form > p:not(.welcome-form__error) { margin: 0 0 13px; color: var(--rocket-muted); font-size: .92rem; }
.welcome-form label { color: #d5d5da; font-size: .75rem; font-weight: 900; }
.welcome-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: #0d0e12;
    color: #fff;
    font-size: 1rem;
}
.welcome-form input:focus { border-color: rgba(229,28,47,.65); box-shadow: 0 0 0 4px rgba(229,28,47,.1); outline: 0; }
.welcome-form small { color: #777781; font-size: .7rem; }
.welcome-form__error { margin: 2px 0 0; color: #ff9aa6; font-size: .76rem; font-weight: 750; }
.welcome-form__actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}
.welcome-form__actions button {
    min-height: 50px;
    padding: 0 17px;
    border-radius: 12px;
    color: #fff;
    font-size: .84rem;
    font-weight: 900;
    cursor: pointer;
}
.welcome-form__submit { border: 0; background: var(--rocket-red); }
.welcome-form__submit:hover:not(:disabled) { background: var(--rocket-red-strong); }
.welcome-form__submit:disabled { cursor: not-allowed; opacity: .42; }
.welcome-form__skip { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.045); }
.welcome-form__skip:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.welcome-avatar-frame--fallback { min-height: 170px; place-items: center; }
.welcome-avatar-note { max-width: 160px; margin: 10px auto 0; color: var(--rocket-muted); font-size: .7rem; line-height: 1.45; text-align: center; }
.user-profile-avatar-image { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }

@media (max-width: 620px) {
    .welcome-overlay { padding: 9px; align-items: center; }
    .welcome-modal { max-height: calc(100dvh - 20px); overflow-y: auto; border-radius: 22px; }
    .welcome-content { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 48px 20px 22px; }
    .welcome-avatar-frame { width: 108px; min-height: 150px; padding: 7px; border-radius: 16px; }
    .welcome-avatar-image { max-height: 142px; }
    .welcome-form h2 { font-size: clamp(1.75rem, 8vw, 2.15rem); }
    .welcome-form__actions { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .welcome-content { grid-template-columns: 1fr; padding: 50px 18px 18px; }
    .welcome-avatar-preview { display: none; }
}

/* ---------- 3.1 responsive hardening ---------- */
.site-header,
.site-header__inner,
.site-nav,
.site-header__actions,
.main-content,
.main-content > *,
.products-section,
.wiki-section,
.wiki-content,
form,
fieldset {
    min-width: 0;
}

.wiki-image,
.product-image,
.pokemon-image,
.page-header img {
    height: auto;
}

.comparison-table-wrapper,
.wiki-command-block,
.table-responsive,
.moves-table-container {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 850px) {
    .site-header,
    .header {
        background: #09090b;
    }

    .site-nav {
        scroll-snap-type: inline proximity;
        overscroll-behavior-inline: contain;
    }

    .site-nav__link {
        scroll-snap-align: start;
    }

    .config-modal-content,
    .modal-content,
    .guild-modal-content,
    .custom-order-modal,
    .listing-manager-dialog__panel,
    .rocket-data-dialog__panel {
        width: min(100%, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
    }
}

@media (max-width: 620px) {
    input,
    select,
    textarea {
        font-size: 16px;
    }

    .site-header__actions {
        gap: 6px;
    }

    .listing-manager-row {
        align-items: stretch;
        flex-direction: column;
    }

    .listing-manager-row button {
        width: 100%;
    }

    .wiki-action-buttons > *,
    .listing-manager-form__actions > * {
        min-height: 44px;
    }

    .contact-modal,
    .guild-info-modal,
    .config-modal,
    .custom-order-modal-overlay,
    .listing-manager-dialog,
    .rocket-data-dialog {
        padding: 9px;
    }
}

/* ---------- 3.2 Pokédex search ---------- */
.page-pokemon-wiki .wiki-search-container {
    max-width: 980px;
    margin: 0 auto 28px;
    padding: clamp(20px, 3.5vw, 34px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(229,28,47,.085), transparent 44%),
        #111217;
    box-shadow: var(--rocket-shadow-sm);
}

.page-pokemon-wiki .wiki-search-heading {
    margin-bottom: 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.page-pokemon-wiki .wiki-search-heading h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.page-pokemon-wiki .wiki-search-heading > p {
    max-width: 430px;
    margin: 0;
    color: var(--rocket-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.page-pokemon-wiki .wiki-search-form,
.page-pokemon-wiki .wiki-search-form.search-box {
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 20;
}

.page-pokemon-wiki .wiki-search-form .search-input-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 10px;
}

.page-pokemon-wiki .wiki-search-field {
    min-width: 0;
    position: relative;
}

.page-pokemon-wiki .wiki-search-field__icon {
    width: 18px;
    height: 18px;
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 3;
    border: 2px solid #8c8d96;
    border-radius: 50%;
    transform: translateY(-55%);
    pointer-events: none;
    transition: border-color 160ms ease;
}

.page-pokemon-wiki .wiki-search-field__icon::after {
    content: "";
    width: 7px;
    height: 2px;
    position: absolute;
    right: -5px;
    bottom: -2px;
    border-radius: 999px;
    background: #8c8d96;
    transform: rotate(45deg);
    transform-origin: center;
    transition: background 160ms ease;
}

.page-pokemon-wiki .wiki-search-field:focus-within .wiki-search-field__icon {
    border-color: #fff;
}

.page-pokemon-wiki .wiki-search-field:focus-within .wiki-search-field__icon::after {
    background: #fff;
}

.page-pokemon-wiki .wiki-search-input,
.page-pokemon-wiki input.wiki-search-input[type="search"] {
    width: 100%;
    min-height: 58px;
    padding: 0 48px 0 54px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 15px;
    background: #0c0d11;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.page-pokemon-wiki .wiki-search-input::-webkit-search-cancel-button {
    width: 18px;
    height: 18px;
    cursor: pointer;
    filter: invert(1) opacity(.65);
}

.page-pokemon-wiki .wiki-search-input::placeholder {
    color: #71727d;
    font-weight: 600;
}

.page-pokemon-wiki .wiki-search-input:focus,
.page-pokemon-wiki .search-input-container.has-suggestions .wiki-search-input:focus,
.page-pokemon-wiki .search-input-container:focus-within .wiki-search-input:focus {
    border-color: rgba(229,28,47,.78);
    border-bottom: 1px solid rgba(229,28,47,.78);
    border-radius: 15px;
    outline: 3px solid rgba(229,28,47,.12);
    background: #101116;
    box-shadow: 0 12px 35px rgba(0,0,0,.24);
}

.page-pokemon-wiki .wiki-search-btn {
    min-width: 128px;
    min-height: 58px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--rocket-red);
    border-radius: 15px;
    background: var(--rocket-red);
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 900;
    box-shadow: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.page-pokemon-wiki .wiki-search-btn:hover {
    border-color: var(--rocket-red-strong);
    background: var(--rocket-red-strong);
    transform: translateY(-1px);
    box-shadow: none;
}

.page-pokemon-wiki .wiki-search-btn:active { transform: translateY(0); }
.page-pokemon-wiki .wiki-search-hint { margin: 11px 2px 0; color: #777884; font-size: .76rem; }

.page-pokemon-wiki .pokemon-suggestions {
    width: 100%;
    max-height: min(460px, 58vh);
    margin: 7px 0 0;
    padding: 7px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 500;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.15);
    border-top: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    background: #15161b;
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
}

.page-pokemon-wiki .pokemon-suggestions[hidden],
.page-pokemon-wiki .pokemon-suggestions.is-hidden { display: none !important; }

.page-pokemon-wiki .search-input-container.has-suggestions .pokemon-suggestions,
.page-pokemon-wiki .search-input-container.has-suggestions:focus-within .pokemon-suggestions {
    border-color: rgba(255,255,255,.15);
    border-top: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
}

.page-pokemon-wiki .wiki-suggestions__heading {
    min-height: 35px;
    padding: 6px 10px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #9697a1;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-pokemon-wiki .wiki-suggestions__heading small {
    min-width: 23px;
    height: 23px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: #c9c9d0;
    font-size: .66rem;
}

.page-pokemon-wiki .wiki-suggestion-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-items: center;
    border-radius: 10px;
}

.page-pokemon-wiki .wiki-suggestion-row--recent {
    grid-template-columns: minmax(0,1fr) 38px;
}

.page-pokemon-wiki .suggestion-item {
    width: 100%;
    min-height: 62px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background 140ms ease, transform 140ms ease;
}

.page-pokemon-wiki .suggestion-item:hover,
.page-pokemon-wiki .suggestion-item.highlighted,
.page-pokemon-wiki .suggestion-item:focus-visible {
    background: rgba(229,28,47,.115);
    outline: 0;
}

.page-pokemon-wiki .wiki-suggestion-row--recent .suggestion-item { padding-right: 6px; }

.page-pokemon-wiki .wiki-suggestion__image {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.page-pokemon-wiki .suggestion-pokemon-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    image-rendering: auto;
}

.page-pokemon-wiki .wiki-suggestion__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.page-pokemon-wiki .wiki-suggestion__copy strong {
    overflow: hidden;
    color: #f3f3f5;
    font-size: .92rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-pokemon-wiki .wiki-suggestion__copy span {
    color: #7f808a;
    font-size: .68rem;
    font-weight: 700;
}

.page-pokemon-wiki .wiki-suggestion__remove {
    width: 30px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #777884;
    font: 700 1.1rem/1 inherit;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease;
}

.page-pokemon-wiki .wiki-suggestion__remove:hover,
.page-pokemon-wiki .wiki-suggestion__remove:focus-visible {
    background: rgba(229,28,47,.14);
    color: #fff;
    outline: 0;
}

.page-pokemon-wiki .wiki-suggestions__empty {
    margin: 0;
    padding: 17px 12px 19px;
    color: #858691;
    font-size: .84rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 720px) {
    .page-pokemon-wiki .wiki-search-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
    .page-pokemon-wiki .wiki-search-heading > p { max-width: none; }
}

@media (max-width: 600px) {
    .page-pokemon-wiki .wiki-search-container { padding: 18px 14px; border-radius: 18px; }
    .page-pokemon-wiki .wiki-search-form .search-input-wrapper { grid-template-columns: 1fr; }
    .page-pokemon-wiki .wiki-search-input,
    .page-pokemon-wiki input.wiki-search-input[type="search"] { min-height: 56px; padding-left: 50px; font-size: 16px; }
    .page-pokemon-wiki .wiki-search-btn { width: 100%; min-height: 48px; }
    .page-pokemon-wiki .pokemon-suggestions { max-height: min(420px, 55vh); }
}


.page-pokemon-wiki .wiki-empty-state .empty-icon {
    width: auto;
    height: auto;
    margin: 0 0 18px;
    border-radius: 0;
    background: none;
    font-size: 64px;
    line-height: 1;
    opacity: 1;
    filter: none;
}

/* ---------- 3.4: acabamento completo da Pokédex dinâmica ---------- */
.page-pokemon-wiki .wiki-pokemon-info {
    padding: 0;
    display: grid;
    gap: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.page-pokemon-wiki .wiki-pokemon-info,
.page-pokemon-wiki .wiki-pokemon-info * {
    box-sizing: border-box;
    min-width: 0;
}

.page-pokemon-wiki .wiki-pokemon-header {
    width: 100%;
    min-height: 330px;
    margin: 0;
    padding: clamp(24px, 4vw, 44px);
    display: grid;
    grid-template-columns: minmax(230px, .78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(24px, 5vw, 58px);
    border: 1px solid var(--rocket-border);
    border-radius: 24px;
    background: linear-gradient(125deg, rgba(229,28,47,.13), transparent 48%), #121318;
    box-shadow: var(--rocket-shadow-sm);
}

.page-pokemon-wiki .wiki-pokemon-image-container {
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.page-pokemon-wiki .wiki-pokemon-image {
    width: min(100%, 340px);
    height: 300px;
    max-height: none;
    margin: 0;
    display: grid;
    place-items: center;
    position: relative;
    overflow: visible;
    filter: none;
}

.page-pokemon-wiki .wiki-pokemon-image::before,
.page-pokemon-wiki .wiki-pokemon-image::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.page-pokemon-wiki .wiki-pokemon-image::before {
    width: min(92%, 292px);
    height: min(92%, 292px);
    border: 1px solid rgba(255,255,255,.08);
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.035), rgba(255,255,255,.01) 62%, transparent 78%);
}

.page-pokemon-wiki .wiki-pokemon-image::after {
    width: min(72%, 220px);
    height: min(72%, 220px);
    border: 1px dashed rgba(242,201,76,.18);
}

.page-pokemon-wiki .wiki-pokemon-image > img {
    width: 100%;
    height: 100%;
    max-width: 252px;
    max-height: 230px;
    margin: 0;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 22px 24px rgba(0,0,0,.52));
}

.page-pokemon-wiki .wiki-pokemon-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    color: var(--rocket-text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.5;
    text-shadow: none;
}

.page-pokemon-wiki .wiki-pokemon-title h2 {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(2.15rem, 4.2vw, 4.25rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: 1;
    overflow-wrap: anywhere;
    text-shadow: none;
}

.page-pokemon-wiki .wiki-action-buttons,
.page-pokemon-wiki .wiki-types,
.page-pokemon-wiki .mega-buttons-container,
.page-pokemon-wiki .wiki-regional-variants {
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.page-pokemon-wiki .favorite-toggle-btn,
.page-pokemon-wiki .compare-toggle-btn {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    color: #ececf0;
    font: 800 .8rem/1 inherit;
    white-space: nowrap;
}

.page-pokemon-wiki .shiny-toggle-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffe27a;
    box-shadow: none;
    cursor: pointer;
}

.page-pokemon-wiki .shiny-toggle-btn:hover,
.page-pokemon-wiki .shiny-toggle-btn.is-active {
    border: 0;
    background: transparent;
    transform: scale(1.13) rotate(-4deg);
}

.page-pokemon-wiki .shiny-toggle-btn:focus-visible {
    outline: 2px solid #ffe27a;
    outline-offset: 2px;
}

.page-pokemon-wiki .shiny-star {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    animation: none;
    filter: drop-shadow(0 3px 7px rgba(0,0,0,.58));
}

.page-pokemon-wiki .mega-button,
.page-pokemon-wiki .regional-variant-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 48px;
    padding: 5px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    background: rgba(255,255,255,.04);
    box-shadow: none;
}

.page-pokemon-wiki .mega-button img,
.page-pokemon-wiki .regional-variant-icon,
.page-pokemon-wiki .variant-item-icon {
    width: 100%;
    height: 100%;
    max-width: 40px;
    max-height: 40px;
    display: block;
    object-fit: contain;
}

.page-pokemon-wiki .mega-button-text {
    font-family: inherit;
    font-size: .72rem;
    font-weight: 900;
    text-shadow: none;
}

.page-pokemon-wiki .egg-region-container,
.page-pokemon-wiki .mega-stone-container,
.page-pokemon-wiki .variant-item-container,
.page-pokemon-wiki .fusion-item-container {
    width: 100%;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
}

.page-pokemon-wiki .egg-groups-header,
.page-pokemon-wiki .egg-groups-list-header,
.page-pokemon-wiki .mega-stone-item,
.page-pokemon-wiki .variant-item,
.page-pokemon-wiki .fusion-item-info {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.page-pokemon-wiki .egg-groups-label-header,
.page-pokemon-wiki .wiki-region-label-header {
    color: var(--rocket-muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.page-pokemon-wiki .wiki-description {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    border: 0;
}

.page-pokemon-wiki .wiki-description-section,
.page-pokemon-wiki .wiki-type-chart,
.page-pokemon-wiki .wiki-abilities,
.page-pokemon-wiki .wiki-stats-grid,
.page-pokemon-wiki .wiki-spawn-section,
.page-pokemon-wiki .wiki-evolutions-compact,
.page-pokemon-wiki .wiki-moves-section,
.page-pokemon-wiki .info-section {
    width: 100%;
    margin: 0;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--rocket-border);
    border-radius: 19px;
    background: var(--rocket-panel);
    box-shadow: none;
}

.page-pokemon-wiki .wiki-description-section h3,
.page-pokemon-wiki .wiki-type-chart h3,
.page-pokemon-wiki .wiki-abilities h3,
.page-pokemon-wiki .wiki-stat-card h3,
.page-pokemon-wiki .wiki-spawn-section h3,
.page-pokemon-wiki .wiki-evolutions-compact h3,
.page-pokemon-wiki .wiki-moves-section h3,
.page-pokemon-wiki .info-section h3 {
    margin: 0 0 16px;
    color: #f4f4f6;
    font-family: inherit;
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 900;
    line-height: 1.3;
    text-align: left;
    text-shadow: none;
}

.page-pokemon-wiki .wiki-build-section {
    width: 100%;
    align-self: start;
    padding: clamp(20px, 3vw, 30px);
    border-color: var(--rocket-border);
    border-radius: 19px;
    background: var(--rocket-panel);
}

.page-pokemon-wiki .wiki-moves-section,
.page-pokemon-wiki .wiki-build-section {
    box-shadow: none;
}

.page-pokemon-wiki .wiki-build-section {
    border: 1px solid var(--rocket-border);
    background: var(--rocket-panel);
}

.page-pokemon-wiki .wiki-build-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.page-pokemon-wiki .wiki-build-header h3 {
    margin-bottom: 0;
}

.page-pokemon-wiki .build-toggle-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: #cfcfd5;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.page-pokemon-wiki .build-toggle-btn:hover,
.page-pokemon-wiki .build-toggle-btn[aria-expanded="true"] {
    border-color: rgba(229,28,47,.48);
    background: rgba(229,28,47,.12);
    color: #fff;
}

.page-pokemon-wiki .build-toggle-btn:focus-visible {
    outline: 2px solid var(--rocket-red);
    outline-offset: 2px;
}

.page-pokemon-wiki .build-toggle-icon {
    font-size: .82rem;
    line-height: 1;
}

.page-pokemon-wiki .wiki-build-content {
    margin-top: 18px;
    padding-top: 18px;
    display: grid;
    gap: 16px;
    border-top: 1px solid var(--rocket-border);
}

.page-pokemon-wiki .wiki-build-content[hidden] {
    display: none !important;
}

.page-pokemon-wiki .wiki-description-text {
    margin: 0;
    color: var(--rocket-muted);
    font-size: .9rem;
    line-height: 1.72;
    text-align: left;
    overflow-wrap: anywhere;
}

.page-pokemon-wiki .type-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.page-pokemon-wiki .type-chart-section {
    min-height: 92px;
    padding: 15px;
    border-width: 1px;
    border-radius: 13px;
}

.page-pokemon-wiki .type-chart-section h4,
.page-pokemon-wiki .spawn-info-title {
    margin: 0 0 10px;
    color: #f2f2f5;
    font-size: .74rem;
    font-weight: 900;
    line-height: 1.35;
    text-shadow: none;
}

.page-pokemon-wiki .type-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.page-pokemon-wiki .abilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 6px;
}

.page-pokemon-wiki .ability-item {
    min-height: 54px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.page-pokemon-wiki .ability-hidden {
    color: var(--rocket-gold);
    font-size: .68rem;
    font-weight: 800;
}

.page-pokemon-wiki .wiki-stats-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

.page-pokemon-wiki .wiki-stat-card {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;
    background: rgba(255,255,255,.022);
    box-shadow: none;
}

.page-pokemon-wiki .wiki-stat-card .stat-bars,
.page-pokemon-wiki .ivs-evs-container {
    display: grid;
    gap: 6px;
}

.page-pokemon-wiki .stat-item,
.page-pokemon-wiki .stat-iv-ev-item {
    width: 100%;
    padding: 12px;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

.page-pokemon-wiki .stat-name,
.page-pokemon-wiki .stat-iv-ev-name,
.page-pokemon-wiki .stat-iv-ev-final {
    color: #d9d9de;
    font-size: .75rem;
    font-weight: 850;
    line-height: 1.35;
}

.page-pokemon-wiki .stat-bar,
.page-pokemon-wiki .stat-iv-ev-item .stat-bar {
    width: 100%;
    height: 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #282932;
}

.page-pokemon-wiki .stat-bar-fill {
    height: 100%;
    border-radius: inherit;
    box-shadow: none;
}

.page-pokemon-wiki .stat-value {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 2;
    color: #fff;
    font-size: .69rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    text-shadow: 0 1px 2px rgba(0,0,0,.8);
}

.page-pokemon-wiki .nature-section-wrapper { margin: 0; }
.page-pokemon-wiki .nature-selector-container {
    padding: 13px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}
.page-pokemon-wiki .nature-selector-row {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr);
    align-items: center;
    gap: 10px;
}
.page-pokemon-wiki .nature-label { color: var(--rocket-muted); font-size: .68rem; font-weight: 900; }
.page-pokemon-wiki .nature-select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: #0e0f13;
    color: #fff;
    font-size: .75rem;
}
.page-pokemon-wiki .nature-indicators,
.page-pokemon-wiki .ev-total-display-container { grid-column: 1 / -1; margin: 0; }

.page-pokemon-wiki .stat-iv-ev-header,
.page-pokemon-wiki .iv-ev-controls {
    width: 100%;
    min-width: 0;
}
.page-pokemon-wiki .stat-iv-ev-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.page-pokemon-wiki .iv-ev-controls {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.page-pokemon-wiki .iv-control,
.page-pokemon-wiki .ev-control { min-width: 0; }
.page-pokemon-wiki .iv-control label,
.page-pokemon-wiki .ev-control label {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    color: var(--rocket-muted);
    font-size: .69rem;
}
.page-pokemon-wiki .iv-slider,
.page-pokemon-wiki .ev-slider { width: 100%; }

.page-pokemon-wiki .moveset-container {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: #111217;
}
.page-pokemon-wiki .moveset-header {
    min-height: 56px;
    padding: 11px 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.page-pokemon-wiki .moveset-header-actions {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.page-pokemon-wiki .moveset-navigation { display: flex; align-items: center; gap: 6px; }
.page-pokemon-wiki .moveset-content { padding: 14px; }
.page-pokemon-wiki .moveset-line {
    min-height: 42px;
    display: grid;
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}
.page-pokemon-wiki .moveset-value { overflow-wrap: anywhere; }

.page-pokemon-wiki .wiki-spawn-section {
    padding: clamp(14px, 1.8vw, 18px);
}

.page-pokemon-wiki .spawn-section-heading,
.page-pokemon-wiki .spawn-group-heading {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-pokemon-wiki .spawn-section-heading {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.page-pokemon-wiki .spawn-section-heading .spawn-ui-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.page-pokemon-wiki .spawn-section-heading h3,
.page-pokemon-wiki .spawn-group-heading h4 {
    margin: 0;
    color: #f4f4f6;
    font-family: inherit;
    font-weight: 900;
    line-height: 1.25;
    text-align: left;
    text-shadow: none;
}

.page-pokemon-wiki .spawn-section-heading h3 {
    font-size: clamp(.96rem, 2vw, 1.12rem);
}

.page-pokemon-wiki .spawn-section-heading p,
.page-pokemon-wiki .spawn-group-heading p,
.page-pokemon-wiki .spawn-notice p,
.page-pokemon-wiki .spawn-empty-state p {
    margin: 2px 0 0;
    color: var(--rocket-muted);
    font-size: .68rem;
    line-height: 1.4;
}

.page-pokemon-wiki .spawn-ui-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    image-rendering: pixelated;
}

.page-pokemon-wiki .spawn-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.page-pokemon-wiki .spawn-summary-card {
    min-width: 0;
    min-height: 64px;
    padding: 8px 9px;
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: 2px 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

.page-pokemon-wiki .spawn-summary-card::before {
    content: '';
    width: 3px;
    position: absolute;
    inset: 8px auto 8px 0;
    border-radius: 999px;
    background: var(--spawn-accent, var(--rocket-red));
}

.page-pokemon-wiki .spawn-summary-card .spawn-ui-icon {
    grid-row: 1 / span 2;
}

.page-pokemon-wiki .spawn-summary-card span,
.page-pokemon-wiki .spawn-condition-card span,
.page-pokemon-wiki .spawn-modifier-card span {
    color: var(--rocket-muted);
    font-size: .62rem;
    font-weight: 800;
    line-height: 1.25;
}

.page-pokemon-wiki .spawn-summary-card strong,
.page-pokemon-wiki .spawn-condition-card strong,
.page-pokemon-wiki .spawn-modifier-card strong {
    min-width: 0;
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.page-pokemon-wiki .spawn-notice,
.page-pokemon-wiki .spawn-empty-state {
    margin-bottom: 6px;
    padding: 9px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    border: 1px solid rgba(242,201,76,.22);
    border-radius: 10px;
    background: rgba(242,201,76,.065);
}

.page-pokemon-wiki .spawn-notice--transformation {
    border-color: rgba(229,28,47,.26);
    background: rgba(229,28,47,.07);
}

.page-pokemon-wiki .spawn-notice strong,
.page-pokemon-wiki .spawn-empty-state strong {
    display: block;
    color: #fff;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1.3;
}

.page-pokemon-wiki .spawn-info-group {
    margin: 7px 0 0;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 10px;
    background: rgba(255,255,255,.022);
}

.page-pokemon-wiki .spawn-group-heading {
    margin-bottom: 6px;
}

.page-pokemon-wiki .spawn-group-heading h4 {
    font-size: .76rem;
}

.page-pokemon-wiki .spawn-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 7px;
}

.page-pokemon-wiki .spawn-dimension-group {
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 9px;
    background: rgba(0,0,0,.12);
}

.page-pokemon-wiki .spawn-dimension-heading {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.page-pokemon-wiki .spawn-dimension-group.is-empty .spawn-dimension-heading {
    margin-bottom: 0;
}

.page-pokemon-wiki .spawn-dimension-heading > div {
    min-width: 0;
}

.page-pokemon-wiki .spawn-dimension-heading strong {
    display: block;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.2;
}

.page-pokemon-wiki .spawn-dimension-heading span {
    display: block;
    margin-top: 1px;
    color: var(--rocket-muted);
    font-size: .57rem;
    font-weight: 800;
}

.page-pokemon-wiki .spawn-dimension-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.page-pokemon-wiki .spawn-dimension-group .spawn-biomes-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.page-pokemon-wiki .spawn-biomes-grid,
.page-pokemon-wiki .spawn-condition-grid,
.page-pokemon-wiki .spawn-modifier-grid,
.page-pokemon-wiki .drops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 6px;
}

.page-pokemon-wiki .spawn-biome-card,
.page-pokemon-wiki .spawn-condition-card,
.page-pokemon-wiki .spawn-modifier-card,
.page-pokemon-wiki .drop-item {
    min-width: 0;
    min-height: 48px;
    padding: 6px 7px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
}

.page-pokemon-wiki .spawn-biome-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.page-pokemon-wiki .spawn-biome-card > div,
.page-pokemon-wiki .drop-item-info,
.page-pokemon-wiki .drop-item-names {
    min-width: 0;
}

.page-pokemon-wiki .spawn-biome-card strong,
.page-pokemon-wiki .drop-item-names strong {
    display: block;
    color: #f2f2f5;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.page-pokemon-wiki .spawn-biome-card span,
.page-pokemon-wiki .drop-item-names span {
    display: block;
    margin-top: 1px;
    color: var(--rocket-muted);
    font-size: .57rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.page-pokemon-wiki .spawn-condition-card,
.page-pokemon-wiki .spawn-modifier-card {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
}

.page-pokemon-wiki .spawn-modifier-card strong {
    color: var(--rocket-gold);
    font-size: .74rem;
}

.page-pokemon-wiki .spawn-biomes-more {
    margin-top: 6px;
}

.page-pokemon-wiki .spawn-biomes-more summary {
    width: fit-content;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #dddde2;
    font-size: .63rem;
    font-weight: 850;
    cursor: pointer;
    list-style-position: inside;
}

.page-pokemon-wiki .spawn-biomes-more[open] summary {
    margin-bottom: 6px;
    border-color: rgba(229,28,47,.4);
    background: rgba(229,28,47,.08);
    color: #fff;
}

.page-pokemon-wiki .drop-item-icon,
.page-pokemon-wiki .drop-item-fallback {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
    image-rendering: pixelated;
}

.page-pokemon-wiki .drop-item-fallback {
    display: grid;
    place-items: center;
}

.page-pokemon-wiki .drop-item-fallback[hidden] {
    display: none;
}

.page-pokemon-wiki .drop-item-fallback .spawn-ui-icon {
    width: 30px;
    height: 30px;
}

.page-pokemon-wiki .drop-item-details {
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.page-pokemon-wiki .drop-item-details span {
    padding: 2px 5px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 6px;
    background: rgba(255,255,255,.035);
    color: #d8d8dd;
    font-size: .58rem;
    font-weight: 800;
}

.page-pokemon-wiki .spawn-source-note {
    margin: 8px 0 0;
    color: #85858e;
    font-size: .6rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .page-pokemon-wiki .spawn-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .page-pokemon-wiki .spawn-summary-grid,
    .page-pokemon-wiki .spawn-biomes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-pokemon-wiki .spawn-condition-grid,
    .page-pokemon-wiki .spawn-modifier-grid,
    .page-pokemon-wiki .drops-grid {
        grid-template-columns: 1fr;
    }

    .page-pokemon-wiki .spawn-summary-card {
        min-height: 64px;
    }

    .page-pokemon-wiki .spawn-biome-card {
        align-items: flex-start;
    }

    .page-pokemon-wiki .spawn-section-heading,
    .page-pokemon-wiki .spawn-group-heading {
        align-items: flex-start;
    }
}


.user-sidebar .sidebar-item {
    justify-content: flex-start;
    gap: 0;
}
.user-sidebar .sidebar-item > span { min-width: 0; }

@media (max-width: 900px) {
    .page-pokemon-wiki .wiki-pokemon-header {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 24px;
    }
    .page-pokemon-wiki .wiki-pokemon-image { height: 220px; }
    .page-pokemon-wiki .wiki-stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .page-pokemon-wiki .wiki-pokemon-header {
        min-height: 0;
        padding: 20px 16px;
        grid-template-columns: 1fr;
        gap: 18px;
        border-radius: 19px;
    }
    .page-pokemon-wiki .wiki-pokemon-image-container { min-height: 0; }
    .page-pokemon-wiki .wiki-pokemon-image { width: min(100%, 270px); height: 220px; }
    .page-pokemon-wiki .wiki-pokemon-title { width: 100%; align-items: center; text-align: center; }
    .page-pokemon-wiki .wiki-pokemon-title h2 { font-size: clamp(2rem, 11vw, 3.2rem); text-align: center; }
    .page-pokemon-wiki .wiki-action-buttons,
    .page-pokemon-wiki .wiki-types,
    .page-pokemon-wiki .mega-buttons-container,
    .page-pokemon-wiki .wiki-regional-variants { justify-content: center; }
    .page-pokemon-wiki .type-chart-grid { grid-template-columns: 1fr; }
    .page-pokemon-wiki .wiki-description-section,
    .page-pokemon-wiki .wiki-type-chart,
    .page-pokemon-wiki .wiki-abilities,
    .page-pokemon-wiki .wiki-stats-grid,
    .page-pokemon-wiki .wiki-spawn-section,
    .page-pokemon-wiki .wiki-evolutions-compact,
    .page-pokemon-wiki .wiki-moves-section,
    .page-pokemon-wiki .info-section { padding: 18px 14px; border-radius: 16px; }
    .page-pokemon-wiki .wiki-stat-card { padding: 14px; }
    .page-pokemon-wiki .wiki-build-section { padding: 18px 14px; border-radius: 16px; }
    .page-pokemon-wiki .wiki-moves-section,
    .page-pokemon-wiki .wiki-build-section { margin: 0; }
    .page-pokemon-wiki .nature-selector-row { grid-template-columns: 1fr; }
    .page-pokemon-wiki .nature-indicators,
    .page-pokemon-wiki .ev-total-display-container { grid-column: auto; }
    .page-pokemon-wiki .spawn-main-info { align-items: stretch; flex-direction: column; }
    .page-pokemon-wiki .spawn-rarity-badge,
    .page-pokemon-wiki .spawn-dimension-badge,
    .page-pokemon-wiki .spawn-weight-info { width: 100%; }
}

@media (max-width: 430px) {
    .page-pokemon-wiki .favorite-toggle-btn,
    .page-pokemon-wiki .compare-toggle-btn { flex: 1 1 130px; }
    .page-pokemon-wiki .iv-ev-controls { grid-template-columns: 1fr; gap: 6px; }
    .page-pokemon-wiki .moveset-header-actions { width: 100%; justify-content: space-between; }
    .page-pokemon-wiki .moveset-line { grid-template-columns: 1fr; gap: 4px; }
    .page-pokemon-wiki .spawn-items-grid,
    .page-pokemon-wiki .drops-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .page-pokemon-wiki .wiki-pokemon-info { gap: 20px; }
    .page-pokemon-wiki .wiki-pokemon-image-container { min-height: 272px; }
    .page-pokemon-wiki .wiki-pokemon-image { width: min(100%, 300px); height: 252px; }
    .page-pokemon-wiki .wiki-pokemon-image::before { width: min(88%, 242px); height: min(88%, 242px); }
    .page-pokemon-wiki .wiki-pokemon-image::after { width: min(66%, 184px); height: min(66%, 184px); }
    .page-pokemon-wiki .wiki-pokemon-image > img { max-width: 218px; max-height: 198px; }
}

@media (max-width: 640px) {
    .pokemon-comparison-panel {
        width: 100%;
        max-height: 100dvh;
    }
    #pokemonComparisonDialog .rocket-data-dialog__header {
        min-height: 58px;
        padding: 10px 12px 10px 16px;
    }
    #pokemonComparisonDialog .rocket-data-dialog__content { padding: 10px 10px 12px; }
    .comparison-matchup {
        grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
        gap: 6px;
        margin-bottom: 6px;
    }
    .comparison-pokemon-card {
        min-height: 126px;
        padding: 8px 6px;
        grid-template-columns: 1fr;
        justify-items: center;
        align-content: center;
        gap: 4px;
        border-radius: 13px;
        text-align: center;
    }
    .comparison-pokemon-card__image-wrap { width: 68px; }
    .comparison-pokemon-card__copy { justify-items: center; gap: 2px; }
    .comparison-pokemon-card__name { font-size: .84rem; }
    .comparison-pokemon-card__types { font-size: .62rem; }
    .comparison-versus { width: 30px; height: 30px; font-size: .56rem; }
    .comparison-table { min-width: 0; }
    .comparison-table th,
    .comparison-table td {
        padding: 6px 5px;
        font-size: .68rem;
    }
    .comparison-table thead th { font-size: .64rem; }
    .comparison-table th:first-child { width: 40%; }
    .comparison-table thead th:not(:first-child) { width: 30%; }
    .comparison-reset-btn {
        margin-top: 9px;
        min-height: 36px;
    }
    .page-pokemon-wiki .wiki-build-header { align-items: flex-start; }
    .page-pokemon-wiki .wiki-build-header h3 { padding-top: 7px; }
}

@media (max-height: 660px) and (min-width: 641px) {
    #pokemonComparisonDialog .rocket-data-dialog__header {
        min-height: 56px;
        padding-block: 9px;
    }
    #pokemonComparisonDialog .rocket-data-dialog__content { padding-block: 10px 12px; }
    .comparison-matchup { margin-bottom: 6px; }
    .comparison-pokemon-card {
        min-height: 96px;
        padding-block: 7px;
        grid-template-columns: 76px minmax(0, 1fr);
    }
    .comparison-pokemon-card__image-wrap { width: 76px; }
    .comparison-table th,
    .comparison-table td { padding-block: 5px; }
    .comparison-reset-btn { margin-top: 8px; min-height: 34px; }
}

/* ---------- 3.6: acordeão de movimentos ---------- */
.page-pokemon-wiki .wiki-moves-section {
    min-width: 0;
}

.page-pokemon-wiki .wiki-moves-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.page-pokemon-wiki .wiki-moves-header h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.page-pokemon-wiki .moves-toggle-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: #cfcfd5;
    box-shadow: none;
}

.page-pokemon-wiki .moves-toggle-btn:hover,
.page-pokemon-wiki .moves-toggle-btn[aria-expanded="true"] {
    border-color: rgba(229,28,47,.48);
    background: rgba(229,28,47,.12);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.page-pokemon-wiki .moves-toggle-btn:focus-visible {
    outline: 2px solid var(--rocket-red);
    outline-offset: 2px;
}

.page-pokemon-wiki .moves-toggle-icon {
    color: currentColor;
    font-size: .82rem;
    line-height: 1;
    transition: none;
}

.page-pokemon-wiki .wiki-moves-content {
    min-width: 0;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--rocket-border);
}

.page-pokemon-wiki .wiki-moves-content[hidden] {
    display: none !important;
}

.page-pokemon-wiki .moves-list,
.page-pokemon-wiki .wiki-move-item,
.page-pokemon-wiki .wiki-move-display {
    min-width: 0;
}

@media (max-width: 620px) {
    .page-pokemon-wiki .wiki-moves-header {
        align-items: flex-start;
    }

    .page-pokemon-wiki .wiki-moves-header h3 {
        padding-top: 7px;
    }

    .page-pokemon-wiki .wiki-moves-content {
        margin-top: 14px;
        padding-top: 14px;
    }
}

.page-pokemons #customOrderModal {
    padding: 18px;
    background: rgba(4, 4, 7, .84);
    backdrop-filter: blur(10px);
}

.page-pokemons #customOrderModal .custom-order-modal {
    width: min(720px, calc(100vw - 36px));
    max-width: 720px;
    max-height: calc(100dvh - 36px);
    margin: auto;
    padding: clamp(22px, 3vw, 32px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(229,28,47,.08), transparent 40%),
        #111217;
    box-shadow: 0 30px 90px rgba(0,0,0,.62);
}

.page-pokemons #customOrderModal .close-modal {
    width: 38px;
    height: 38px;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: #9697a1;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: none;
}

.page-pokemons #customOrderModal .close-modal:hover,
.page-pokemons #customOrderModal .close-modal:focus-visible {
    border-color: rgba(229,28,47,.45);
    background: rgba(229,28,47,.13);
    color: #fff;
    outline: 0;
    transform: none;
}

.page-pokemons #customOrderModal h3 {
    margin: 0 52px 8px 0;
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    line-height: 1.15;
    text-align: left;
    letter-spacing: -.025em;
}

.page-pokemons #customOrderModal .modal-subtitle {
    max-width: 560px;
    margin: 0 52px 24px 0;
    color: #8f909a;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    text-shadow: none;
}

.page-pokemons #customOrderModal .custom-order-form {
    gap: 16px;
}

.page-pokemons #customOrderModal .form-section {
    width: 100%;
    gap: 6px;
    align-items: stretch;
}

.page-pokemons #customOrderModal .form-label {
    color: #e7e7eb;
    font-size: .8rem;
    font-weight: 900;
    text-align: left;
    text-shadow: none;
}

.page-pokemons .order-pokemon-search-section {
    position: relative;
    z-index: 20;
}

.page-pokemons .order-search-field {
    width: 100%;
    position: relative;
    display: block;
}

.page-pokemons .order-search-field__icon {
    width: 18px;
    height: 18px;
    position: absolute;
    left: 18px;
    top: 29px;
    z-index: 3;
    border: 2px solid #8c8d96;
    border-radius: 50%;
    transform: translateY(-55%);
    pointer-events: none;
    transition: border-color 160ms ease;
}

.page-pokemons .order-search-field__icon::after {
    content: "";
    width: 7px;
    height: 2px;
    position: absolute;
    right: -5px;
    bottom: -2px;
    border-radius: 999px;
    background: #8c8d96;
    transform: rotate(45deg);
    transform-origin: center;
    transition: background 160ms ease;
}

.page-pokemons .order-search-field:focus-within .order-search-field__icon {
    border-color: #fff;
}

.page-pokemons .order-search-field:focus-within .order-search-field__icon::after {
    background: #fff;
}

.page-pokemons .order-pokemon-search-input,
.page-pokemons input.order-pokemon-search-input[type="search"] {
    width: 100%;
    min-height: 58px;
    padding: 0 48px 0 54px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 15px;
    background: #0c0d11;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.page-pokemons .order-pokemon-search-input::-webkit-search-cancel-button {
    width: 18px;
    height: 18px;
    cursor: pointer;
    filter: invert(1) opacity(.65);
}

.page-pokemons .order-pokemon-search-input::placeholder {
    color: #71727d;
    font-weight: 600;
}

.page-pokemons .order-pokemon-search-input:focus,
.page-pokemons .order-search-field.has-suggestions .order-pokemon-search-input:focus,
.page-pokemons .order-search-field:focus-within .order-pokemon-search-input:focus {
    border: 1px solid rgba(229,28,47,.78);
    border-radius: 15px;
    outline: 3px solid rgba(229,28,47,.12);
    background: #101116;
    box-shadow: 0 12px 35px rgba(0,0,0,.24);
}

.page-pokemons .order-search-hint {
    margin: 0 2px;
    color: #777884;
    font-size: .75rem;
    line-height: 1.45;
}

.page-pokemons .order-pokemon-suggestions {
    width: 100%;
    max-height: min(460px, 56vh);
    margin: 7px 0 0;
    padding: 7px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 700;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    background: #15161b;
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
}

.page-pokemons .order-pokemon-suggestions[hidden],
.page-pokemons .order-pokemon-suggestions.is-hidden {
    display: none !important;
}

.page-pokemons .order-search-field.has-suggestions .order-pokemon-suggestions,
.page-pokemons .order-search-field.has-suggestions:focus-within .order-pokemon-suggestions {
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
}

.page-pokemons .order-suggestions__heading {
    min-height: 35px;
    padding: 6px 10px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #9697a1;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-pokemons .order-suggestions__heading small {
    min-width: 23px;
    height: 23px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: #c9c9d0;
    font-size: .66rem;
}

.page-pokemons .order-suggestion-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-items: center;
    border-radius: 10px;
}

.page-pokemons .order-suggestion-row--recent {
    grid-template-columns: minmax(0,1fr) 38px;
}

.page-pokemons .order-suggestion-row .suggestion-item {
    width: 100%;
    min-height: 62px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background 140ms ease;
}

.page-pokemons .order-suggestion-row .suggestion-item:hover,
.page-pokemons .order-suggestion-row .suggestion-item.highlighted,
.page-pokemons .order-suggestion-row .suggestion-item:focus-visible {
    padding-left: 12px;
    background: rgba(229,28,47,.115);
    color: #fff;
    outline: 0;
}

.page-pokemons .order-suggestion-row--recent .suggestion-item {
    padding-right: 6px;
}

.page-pokemons .order-suggestion__image,
.page-pokemons .order-selected-pokemon__image {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.page-pokemons .order-suggestion__image .suggestion-pokemon-icon,
.page-pokemons .order-selected-pokemon__image .pokemon-preview-image {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    image-rendering: auto;
    filter: none;
}

.page-pokemons .order-suggestion__copy,
.page-pokemons .order-selected-pokemon__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.page-pokemons .order-suggestion__copy strong,
.page-pokemons .order-selected-pokemon__copy strong {
    overflow: hidden;
    color: #f3f3f5;
    font-size: .92rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-pokemons .order-suggestion__copy span,
.page-pokemons .order-selected-pokemon__copy span,
.page-pokemons .order-selected-pokemon__copy small {
    color: #7f808a;
    font-size: .68rem;
    font-weight: 700;
}

.page-pokemons .order-selected-pokemon__copy small {
    color: #aaabb3;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-pokemons .order-suggestion__remove {
    width: 30px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #777884;
    font: 700 1.1rem/1 inherit;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease;
}

.page-pokemons .order-suggestion__remove:hover,
.page-pokemons .order-suggestion__remove:focus-visible {
    background: rgba(229,28,47,.14);
    color: #fff;
    outline: 0;
}

.page-pokemons .order-suggestions__empty {
    margin: 0;
    padding: 17px 12px 19px;
    color: #858691;
    font-size: .84rem;
    line-height: 1.45;
    text-align: center;
}

.page-pokemons .order-selected-pokemon[hidden] {
    display: none !important;
}

.page-pokemons .order-selected-pokemon {
    margin: 0;
}

.page-pokemons .order-selected-pokemon__card {
    min-height: 70px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr);
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(229,28,47,.25);
    border-radius: 14px;
    background: rgba(229,28,47,.055);
}

.page-pokemons #customOrderModal .ivs-grid {
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.page-pokemons #customOrderModal .iv-radio {
    min-height: 48px;
    padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: #0c0d11;
    color: #b9bac2;
    font-size: .74rem;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.page-pokemons #customOrderModal .iv-radio:hover {
    border-color: rgba(229,28,47,.35);
    background: rgba(229,28,47,.055);
}

.page-pokemons #customOrderModal .iv-radio input[type="radio"] {
    accent-color: var(--rocket-red);
}

.page-pokemons #customOrderModal .iv-radio:has(input[type="radio"]:checked) {
    border-color: rgba(229,28,47,.72);
    background: rgba(229,28,47,.11);
    box-shadow: none;
}

.page-pokemons #customOrderModal .iv-radio input[type="radio"]:checked + span {
    color: #fff;
    text-shadow: none;
}

.page-pokemons #customOrderModal .form-select {
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    background-color: #0c0d11;
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    box-shadow: none;
}

.page-pokemons #customOrderModal .form-select:hover:not(:disabled),
.page-pokemons #customOrderModal .form-select:focus {
    border-color: rgba(229,28,47,.68);
    background-color: #101116;
    outline: 3px solid rgba(229,28,47,.1);
    box-shadow: none;
}

.page-pokemons #customOrderModal .form-select:disabled {
    border-color: rgba(255,255,255,.08);
    background-color: #0b0c10;
    color: #6f707a;
    opacity: 1;
}

.page-pokemons #customOrderModal .info-section,
.page-pokemons #customOrderModal .price-section {
    margin: 0;
}

.page-pokemons #customOrderModal .info-box,
.page-pokemons #customOrderModal .price-section {
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
    box-shadow: none;
}

.page-pokemons #customOrderModal .info-box {
    text-align: left;
}

.page-pokemons #customOrderModal .info-box strong {
    margin-bottom: 5px;
    color: #e7e7eb;
    font-size: .76rem;
    text-shadow: none;
}

.page-pokemons #customOrderModal .info-box p,
.page-pokemons #customOrderModal .price-info {
    color: #858691;
    font-size: .73rem;
    line-height: 1.45;
    opacity: 1;
}

.page-pokemons #customOrderModal .custom-price-display {
    margin: 0 0 5px;
}

.page-pokemons #customOrderModal .custom-price-display .price-label {
    color: #b9bac2;
    font-size: .83rem;
}

.page-pokemons #customOrderModal .custom-price-display .price-value {
    color: #fff;
    font-size: 1.2rem;
    text-shadow: none;
}

.page-pokemons #customOrderModal .finalize-order-btn {
    min-height: 48px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--rocket-red);
    border-radius: 13px;
    background: var(--rocket-red);
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .05em;
    box-shadow: none;
}

.page-pokemons #customOrderModal .finalize-order-btn:hover:not(:disabled) {
    border-color: var(--rocket-red-strong);
    background: var(--rocket-red-strong);
    transform: translateY(-1px);
    box-shadow: none;
}

.page-pokemons #customOrderModal .finalize-order-btn:disabled {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    color: #6f707a;
    opacity: 1;
}

@media (max-width: 600px) {
    .page-pokemons #customOrderModal {
        padding: 8px;
    }

    .page-pokemons #customOrderModal .custom-order-modal {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        padding: 20px 14px;
        border-radius: 18px;
    }

    .page-pokemons #customOrderModal .close-modal {
        top: 12px;
        right: 12px;
    }

    .page-pokemons #customOrderModal h3,
    .page-pokemons #customOrderModal .modal-subtitle {
        margin-right: 44px;
    }

    .page-pokemons .order-pokemon-search-input,
    .page-pokemons input.order-pokemon-search-input[type="search"] {
        min-height: 56px;
        padding-left: 50px;
        font-size: 16px;
    }

    .page-pokemons .order-search-field__icon {
        top: 28px;
    }

    .page-pokemons .order-pokemon-suggestions {
        max-height: min(390px, 48vh);
    }

    .page-pokemons #customOrderModal .ivs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- 4.1: modal compacto e separação definitiva dos cards da Poké Wiki ---------- */
.guild-info-modal {
    padding: 12px;
    overflow: hidden;
}

.guild-info-modal .guild-modal-content {
    width: min(680px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    padding: clamp(16px, 2.4vh, 24px) clamp(16px, 2.8vw, 28px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
}

.guild-info-modal .guild-title {
    flex: 0 0 auto;
    margin: 0 42px 12px;
    gap: 6px;
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.guild-info-modal .guild-master-ball-left,
.guild-info-modal .guild-master-ball-right {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
}

.guild-info-modal .guild-info-content,
.guild-info-modal .guild-description {
    min-height: 0;
}

.guild-info-modal .guild-description {
    width: 100%;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas:
        "intro intro"
        "logo mission"
        "features features"
        "motto motto";
    align-items: center;
    gap: 10px 16px;
}

.guild-info-modal .guild-description > p:first-child {
    grid-area: intro;
    margin: 0;
    font-size: .86rem;
    line-height: 1.42;
    text-align: center;
}

.guild-info-modal .guild-logo-section {
    grid-area: logo;
    width: 92px;
    height: 96px;
    margin: 0;
    display: grid;
    place-items: center;
    align-self: center;
}

.guild-info-modal .guild-logo-modal {
    width: 78px;
    height: 80px;
    max-width: 78px;
    max-height: 80px;
    object-fit: contain;
    object-position: center;
    aspect-ratio: 551 / 564;
}

.guild-info-modal .guild-description > p:nth-of-type(2) {
    grid-area: mission;
    margin: 0;
    font-size: .82rem;
    line-height: 1.42;
    text-align: left;
}

.guild-info-modal .guild-features {
    grid-area: features;
    margin: 2px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.guild-info-modal .feature-item {
    min-height: 72px;
    padding: 8px 7px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    font-size: .68rem;
    line-height: 1.25;
}

.guild-info-modal .feature-icon--pokemon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.guild-info-modal .guild-motto {
    grid-area: motto;
    margin: 0;
    font-size: .73rem;
    line-height: 1.35;
    text-align: center !important;
}

.page-pokemon-wiki .wiki-pokemon-info {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 26px !important;
}

.page-pokemon-wiki .wiki-pokemon-info > * {
    width: 100%;
    margin-block: 0 !important;
}

.page-pokemon-wiki .wiki-description {
    gap: 20px !important;
}

.page-pokemon-wiki .wiki-moves-section,
.page-pokemon-wiki .wiki-stat-card.wiki-build-section {
    width: 100%;
    margin: 0 !important;
    padding: clamp(20px, 3vw, 30px) !important;
    border: 1px solid var(--rocket-border) !important;
    border-radius: 19px !important;
    background: var(--rocket-panel) !important;
    box-shadow: none !important;
}

.page-pokemon-wiki .wiki-moves-header,
.page-pokemon-wiki .wiki-build-header {
    min-height: 38px;
}

@media (max-width: 720px) {
    .guild-info-modal .guild-modal-content {
        width: min(100%, calc(100vw - 16px));
        max-height: calc(100dvh - 16px);
        padding: 15px 13px 13px;
        border-radius: 17px;
    }

    .guild-info-modal .guild-title {
        margin: 0 36px 9px;
        font-size: .98rem;
    }

    .guild-info-modal .guild-description {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 8px 10px;
    }

    .guild-info-modal .guild-description > p:first-child,
    .guild-info-modal .guild-description > p:nth-of-type(2) {
        font-size: .73rem;
        line-height: 1.3;
    }

    .guild-info-modal .guild-logo-section {
        width: 66px;
        height: 70px;
    }

    .guild-info-modal .guild-logo-modal {
        width: 58px;
        height: 60px;
        max-width: 58px;
        max-height: 60px;
    }

    .guild-info-modal .guild-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .guild-info-modal .feature-item {
        min-height: 48px;
        grid-template-columns: 31px minmax(0, 1fr);
        padding: 6px;
        gap: 6px;
        font-size: .63rem;
    }

    .guild-info-modal .feature-icon--pokemon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .guild-info-modal .guild-motto {
        font-size: .65rem;
    }

    .page-pokemon-wiki .wiki-pokemon-info {
        gap: 20px !important;
    }

    .page-pokemon-wiki .wiki-description {
        gap: 16px !important;
    }

    .page-pokemon-wiki .wiki-moves-section,
    .page-pokemon-wiki .wiki-stat-card.wiki-build-section {
        padding: 18px 14px !important;
        border-radius: 16px !important;
    }
}

@media (max-height: 560px) {
    .guild-info-modal .guild-modal-content {
        padding-top: 11px;
        padding-bottom: 10px;
    }

    .guild-info-modal .guild-title {
        margin-bottom: 6px;
        font-size: .9rem;
    }

    .guild-info-modal .guild-description {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 5px 9px;
    }

    .guild-info-modal .guild-description > p:first-child,
    .guild-info-modal .guild-description > p:nth-of-type(2) {
        font-size: .66rem;
        line-height: 1.2;
    }

    .guild-info-modal .guild-logo-section {
        width: 58px;
        height: 60px;
    }

    .guild-info-modal .guild-logo-modal {
        width: 50px;
        height: 52px;
        max-width: 50px;
        max-height: 52px;
    }

    .guild-info-modal .guild-features {
        gap: 5px;
    }

    .guild-info-modal .feature-item {
        min-height: 42px;
        grid-template-columns: 26px minmax(0, 1fr);
        padding: 4px 5px;
        font-size: .57rem;
    }

    .guild-info-modal .feature-icon--pokemon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .guild-info-modal .guild-motto {
        font-size: .58rem;
        line-height: 1.2;
    }
}


.page-pokemania-wiki .wiki-card-icon,
.page-pokemania-wiki .wiki-sub-card-icon {
    position: relative;
    isolation: isolate;
    margin: 0;
    filter: none !important;
}

.page-pokemania-wiki .wiki-card-pokemon-icon,
.page-pokemania-wiki .wiki-sub-card-icon img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 72px;
    max-height: 82px;
    margin: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 9px 10px rgba(0,0,0,.42));
    transform-origin: center;
}

.category-card__art--pokemania {
    width: min(35%, 148px);
    right: 18px;
    bottom: 19px;
    max-height: 70%;
    object-position: center;
    image-rendering: pixelated;
}

@media (max-width: 700px) {
    .page-pokemania-wiki .wiki-card-pokemon-icon,
    .page-pokemania-wiki .wiki-sub-card-icon img {
        max-width: 62px;
        max-height: 72px;
    }
}

@media (max-width: 480px) {
    .category-card__art--pokemania {
        width: min(34%, 118px);
        right: 10px;
        bottom: 18px;
    }
}

.page-pokemon-wiki .favorite-toggle-btn,
.page-pokemon-wiki .compare-toggle-btn {
    min-height: 46px;
    padding: 0 18px;
    gap: 6px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.page-pokemon-wiki .favorite-toggle-btn {
    border-color: rgba(229,28,47,.72);
    background: linear-gradient(135deg, rgba(229,28,47,.92), rgba(154,13,29,.94));
    color: #fff;
}

.page-pokemon-wiki .compare-toggle-btn {
    border-color: rgba(242,201,76,.58);
    background: linear-gradient(135deg, rgba(49,50,59,.98), rgba(24,25,31,.98));
    color: #ffe28b;
}

.page-pokemon-wiki .favorite-toggle-btn:hover,
.page-pokemon-wiki .compare-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,.36);
}

.page-pokemon-wiki .favorite-toggle-btn:focus-visible,
.page-pokemon-wiki .compare-toggle-btn:focus-visible {
    outline: 3px solid rgba(255,255,255,.82);
    outline-offset: 3px;
}

.page-pokemon-wiki .favorite-toggle-btn.is-favorite {
    border-color: #ffe27a;
    background: linear-gradient(135deg, #c58b15, #76500a);
    color: #fff8d8;
}

.page-pokemon-wiki .compare-toggle-btn.is-selected,
.page-pokemon-wiki .compare-toggle-btn:disabled {
    border-color: rgba(91,219,154,.8);
    background: linear-gradient(135deg, rgba(34,137,91,.96), rgba(19,86,57,.98));
    color: #dcffed;
    cursor: default;
    opacity: 1;
    transform: none;
}

.comparison-selection-status {
    width: 100%;
    max-width: 720px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(91,219,154,.38);
    border-radius: 12px;
    background: rgba(42,151,102,.12);
    color: #d9f9e8;
    font-size: .82rem;
    line-height: 1.45;
}

.comparison-selection-status[hidden] {
    display: none !important;
}

.comparison-selection-status__icon {
    min-width: 38px;
    height: 30px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(91,219,154,.18);
    color: #8cf0bb;
    font-size: .68rem;
    font-weight: 950;
}

.page-pokemon-wiki .abilities-hint {
    margin: -8px 0 14px;
    color: var(--rocket-muted);
    font-size: .74rem;
    line-height: 1.5;
}

.page-pokemon-wiki .ability-item {
    min-height: 66px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px 10px;
    cursor: help;
    outline: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.page-pokemon-wiki .ability-item:hover,
.page-pokemon-wiki .ability-item:focus-visible,
.page-pokemon-wiki .ability-item:focus-within {
    z-index: 40;
    border-color: rgba(229,28,47,.52);
    background: rgba(229,28,47,.09);
    transform: translateY(-2px);
}

.page-pokemon-wiki .ability-standard,
.page-pokemon-wiki .ability-hidden {
    padding: 4px 7px;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .03em;
    white-space: nowrap;
}

.page-pokemon-wiki .ability-standard {
    background: rgba(255,255,255,.07);
    color: #cfd0d6;
}

.page-pokemon-wiki .ability-hidden {
    background: rgba(242,201,76,.12);
}

.page-pokemon-wiki .ability-tooltip {
    width: min(360px, calc(100vw - 32px));
    padding: 16px;
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    z-index: 60;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -6px);
    border: 1px solid rgba(229,28,47,.5);
    border-radius: 14px;
    background: rgba(13,14,18,.985);
    box-shadow: 0 20px 46px rgba(0,0,0,.58);
    color: #e8e8ec;
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.page-pokemon-wiki .ability-item:hover .ability-tooltip,
.page-pokemon-wiki .ability-item:focus-within .ability-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.page-pokemon-wiki .ability-tooltip::before {
    content: "";
    width: 12px;
    height: 12px;
    position: absolute;
    left: 50%;
    top: -7px;
    transform: translateX(-50%) rotate(45deg);
    border-left: 1px solid rgba(229,28,47,.5);
    border-top: 1px solid rgba(229,28,47,.5);
    background: #0d0e12;
}

.page-pokemon-wiki .ability-tooltip__title {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
}

.page-pokemon-wiki .ability-tooltip__generation {
    display: block;
    margin-top: 3px;
    color: #ff909b;
    font-size: .68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.page-pokemon-wiki .ability-tooltip__body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.page-pokemon-wiki .ability-tooltip__body strong {
    color: #ffe28b;
    font-size: .72rem;
    text-transform: uppercase;
}

.page-pokemon-wiki .ability-tooltip__body p {
    margin: 6px 0 0;
    color: #d7d7dc;
    font-size: .8rem;
    line-height: 1.55;
}

.evolution-requirement {
    margin: -2px 0 20px;
    padding: 14px 16px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(242,201,76,.3);
    border-radius: 14px;
    background: rgba(242,201,76,.075);
}

.evolution-requirement__label {
    color: #c7c7cd;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.evolution-requirement strong {
    color: #ffe28b;
    font-size: 1rem;
}

.evolution-requirement__origin {
    color: var(--rocket-muted);
    font-size: .76rem;
}

.evolution-requirement__note {
    max-width: 760px;
    margin-top: 5px;
    color: #d7d7dc;
    font-size: .76rem;
    line-height: 1.5;
}

.evolution-requirement--mega {
    border-color: rgba(242,201,76,.48);
    background: linear-gradient(135deg, rgba(242,201,76,.12), rgba(229,28,47,.07));
}

.page-pokemon-wiki .evolution-chain-compact-item.mega-base {
    border-color: rgba(242,201,76,.3);
    background: rgba(242,201,76,.055);
}

.page-pokemon-wiki .evolution-chain-compact-item.mega-current {
    border-color: rgba(242,201,76,.7);
    background: linear-gradient(145deg, rgba(242,201,76,.14), rgba(229,28,47,.08));
    box-shadow: 0 0 24px rgba(242,201,76,.08);
}

.page-pokemon-wiki .evolution-chain-compact-item.mega-current .evolution-chain-compact-current {
    color: #ffe28b;
}

.evolution-arrow-compact--mega {
    display: grid;
    justify-items: center;
    gap: 2px;
    color: #ffe28b;
    font-size: 1.15rem;
    font-weight: 900;
}

.evolution-arrow-compact--mega small {
    font-size: .58rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-pokemon-wiki .evolution-chain-compact-item {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.page-pokemon-wiki .evolution-chain-compact-info {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.page-pokemon-wiki .evolution-chain-compact-name {
    color: #fff;
    font-weight: 900;
}

.page-pokemon-wiki .evolution-chain-compact-current {
    color: #8cf0bb;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.page-pokemon-wiki .evolution-chain-compact-method {
    color: var(--rocket-muted);
    font-size: .7rem;
    line-height: 1.35;
}

.eevee-evolution-map {
    width: 100%;
    min-height: 610px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 22px;
}

.eevee-evolution-links {
    width: calc(100% - 18%);
    height: calc(100% - 18%);
    position: absolute;
    inset: 9%;
    z-index: 0;
    overflow: visible;
}

.eevee-evolution-links line {
    stroke: rgba(229,28,47,.55);
    stroke-width: .8;
    vector-effect: non-scaling-stroke;
    marker-end: url(#eeveeArrow);
}

.eevee-evolution-links path {
    fill: #e51c2f;
}

.eevee-evolution-center,
.eevee-evolution-node {
    width: min(100%, 170px);
    min-width: 0;
    position: relative;
    z-index: 2;
    padding: 12px 10px;
    display: grid;
    justify-items: center;
    gap: 4px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 15px;
    background: rgba(18,19,24,.96);
    box-shadow: 0 12px 28px rgba(0,0,0,.34);
    text-align: center;
}

.eevee-evolution-center {
    grid-area: 2 / 2;
    border-color: rgba(242,201,76,.48);
    background: linear-gradient(145deg, rgba(96,71,23,.94), rgba(32,28,22,.98));
}

.eevee-evolution-node--1 { grid-area: 1 / 1; }
.eevee-evolution-node--2 { grid-area: 1 / 2; }
.eevee-evolution-node--3 { grid-area: 1 / 3; }
.eevee-evolution-node--4 { grid-area: 2 / 1; }
.eevee-evolution-node--5 { grid-area: 2 / 3; }
.eevee-evolution-node--6 { grid-area: 3 / 1; }
.eevee-evolution-node--7 { grid-area: 3 / 2; }
.eevee-evolution-node--8 { grid-area: 3 / 3; }

.eevee-evolution-center img,
.eevee-evolution-node img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.42));
}

.eevee-evolution-node img {
    cursor: pointer;
}

.eevee-evolution-center strong,
.eevee-evolution-node strong {
    color: #fff;
    font-size: .82rem;
    font-weight: 950;
}

.eevee-evolution-center span,
.eevee-evolution-node span {
    color: var(--rocket-muted);
    font-size: .65rem;
    line-height: 1.35;
}

.eevee-evolution-node:hover,
.eevee-evolution-node:focus-within {
    border-color: rgba(229,28,47,.52);
    background: rgba(47,22,28,.98);
    transform: translateY(-2px);
}

@media (max-width: 760px) {
    .page-pokemon-wiki .ability-tooltip {
        width: 100%;
        position: relative;
        left: auto;
        top: auto;
        grid-column: 1 / -1;
        display: none;
        margin-top: 3px;
        transform: none;
    }

    .page-pokemon-wiki .ability-item:hover .ability-tooltip,
    .page-pokemon-wiki .ability-item:focus-within .ability-tooltip {
        display: block;
        transform: none;
    }

    .page-pokemon-wiki .ability-tooltip::before {
        display: none;
    }

    .eevee-evolution-map {
        min-height: 480px;
        gap: 6px;
    }

    .eevee-evolution-center,
    .eevee-evolution-node {
        padding: 8px 5px;
        border-radius: 10px;
    }

    .eevee-evolution-center img,
    .eevee-evolution-node img {
        width: 58px;
        height: 58px;
    }

    .eevee-evolution-center strong,
    .eevee-evolution-node strong {
        font-size: .68rem;
    }

    .eevee-evolution-center span,
    .eevee-evolution-node span {
        font-size: .55rem;
    }
}

@media (max-width: 430px) {
    .page-pokemon-wiki .wiki-action-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page-pokemon-wiki .favorite-toggle-btn,
    .page-pokemon-wiki .compare-toggle-btn {
        width: 100%;
    }

    .comparison-selection-status {
        align-items: flex-start;
    }

    .eevee-evolution-map {
        min-height: 430px;
        gap: 6px;
    }

    .eevee-evolution-center img,
    .eevee-evolution-node img {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 620px) {
    .page-pokemon-wiki .spawn-dimensions-grid {
        grid-template-columns: 1fr;
    }

    .page-pokemon-wiki .spawn-dimension-group .spawn-biomes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
