/* Shared paper, editorial typography and navigation, based on Aniki. */
body:is(.encyclopedia-page,.aniki-page,.lorcana-page,.one-piece-page,.pokedex-page){--encyclopedia-paper:#fffcf6;--encyclopedia-ink:#302b35;--encyclopedia-muted:#716979;--encyclopedia-line:#e6ddd0;--encyclopedia-purple:#7250ab;background:var(--encyclopedia-paper);color:var(--encyclopedia-ink)}
body:is(.encyclopedia-page,.aniki-page,.lorcana-page,.one-piece-page,.pokedex-page) main{max-width:1200px;margin-inline:auto;padding:30px 28px 64px;box-sizing:border-box}
body:is(.encyclopedia-page,.aniki-page,.lorcana-page,.one-piece-page,.pokedex-page) main :is(h1,h2,h3){font-family:Georgia,serif;font-weight:500;color:#302b35}
.encyclopedia-nav{gap:8px;margin:0 0 20px;padding:3px 0;font:650 12px/1.5 system-ui,sans-serif}
.encyclopedia-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;box-sizing:border-box;border:1px solid var(--encyclopedia-line);color:#655373;background:#fffdf9;text-decoration:none;border-radius:24px}
.encyclopedia-nav a[aria-current=page]{background:#eee7fa;border-color:#d9c9f5;color:#6648b5}
.encyclopedia-nav a:focus-visible{outline:3px solid #7250ab;outline-offset:2px}
.encyclopedia-game-nav{padding-bottom:20px;border-bottom:1px solid var(--encyclopedia-line)}
.encyclopedia-hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:36px;margin:12px 0 44px!important;padding:24px 0 32px;font:15px/1.75 system-ui,-apple-system,sans-serif}
.encyclopedia-hero *{box-sizing:border-box;min-width:0}
.encyclopedia-hero .encyclopedia-hero-kicker{font:750 10px/1.6 system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase;color:#a93c30;margin:0 0 14px}
.encyclopedia-hero h1{font:500 clamp(42px,5.6vw,70px)/1.08 Georgia,serif!important;letter-spacing:-.045em!important;color:#302b35;margin:0 0 24px!important}
.encyclopedia-hero h1 em{display:block;color:#a93c30;font-weight:400}
.encyclopedia-hero .encyclopedia-hero-deck{font-size:16px;line-height:1.85;color:#716979;max-width:600px;margin:0 0 24px}
.encyclopedia-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 20px;margin:0 0 28px}
.encyclopedia-hero-actions a{display:inline-flex;align-items:center;min-height:44px;font:650 12px/1.5 system-ui,sans-serif;text-decoration:none}
.encyclopedia-hero a.encyclopedia-hero-primary{background:#7250ab;color:white;padding:13px 18px;border-radius:7px}
.encyclopedia-hero a.encyclopedia-hero-secondary{color:#7250ab;text-decoration:underline;text-underline-offset:4px}
.encyclopedia-hero a:focus-visible{outline:3px solid #a93c30;outline-offset:5px}
.encyclopedia-hero-stats{display:flex;flex-wrap:wrap;gap:16px 26px;margin:24px 0 0;padding-top:20px;border-top:1px solid #e6ddd0}
.encyclopedia-hero-stats div{min-width:85px;flex:1}
.encyclopedia-hero-stats dt{font:500 31px/1.2 Georgia,serif;letter-spacing:-.03em;color:#302b35}
.encyclopedia-hero-stats dd{font:11px/1.6 system-ui,sans-serif;color:#716979;margin:6px 0 0}
.encyclopedia-hero-figure{width:100%;margin:0!important;align-self:center}
.encyclopedia-card-fan{display:grid;place-items:center;position:relative;min-height:410px;isolation:isolate;margin-inline:auto;max-width:510px}
.encyclopedia-card-fan a{position:absolute;display:block;width:39%;max-width:200px;transform:translateX(var(--fan-offset,0)) rotate(var(--fan-angle,0deg));transform-origin:50% 85%;transition:transform .18s ease;z-index:1;border-radius:9px}
.encyclopedia-card-fan a:nth-child(1){--fan-offset:-50%;--fan-angle:-12deg}
.encyclopedia-card-fan a:nth-child(2){z-index:2;margin-top:-28px}
.encyclopedia-card-fan a:nth-child(3){--fan-offset:50%;--fan-angle:12deg}
.encyclopedia-card-fan a:hover,.encyclopedia-card-fan a:focus-visible{z-index:3;transform:translateX(var(--fan-offset,0)) translateY(-8px) rotate(var(--fan-angle,0deg))}
.encyclopedia-card-fan img{display:block;width:100%;height:auto;max-width:100%;border-radius:9px;box-shadow:0 16px 28px #302b3526,0 2px 6px #302b351a}
.encyclopedia-hero-figure figcaption{text-align:center;font:11px/1.5 system-ui,sans-serif;color:#716979;padding:4px 12px}
@media(max-width:960px){.encyclopedia-hero{gap:22px}.encyclopedia-card-fan{min-height:340px}.encyclopedia-card-fan a{max-width:180px}.encyclopedia-hero-stats{gap:14px}.encyclopedia-hero-stats dt{font-size:28px}}
@media(max-width:650px){body:is(.encyclopedia-page,.aniki-page,.lorcana-page,.one-piece-page,.pokedex-page) main{padding:20px 16px 45px}.encyclopedia-nav{flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:7px;padding:4px 3px 10px;margin:0 0 8px;scroll-padding-inline:3px}.encyclopedia-nav a{flex:0 0 auto;white-space:nowrap;min-height:44px;font-size:11px;padding:8px 12px}.encyclopedia-game-nav{padding-bottom:14px;margin-bottom:20px}.encyclopedia-hero{grid-template-columns:1fr;gap:12px;padding:16px 0 20px;margin-bottom:32px!important}.encyclopedia-hero h1{font-size:47px!important;line-height:1.08!important;margin-bottom:20px!important}.encyclopedia-hero .encyclopedia-hero-deck{font-size:14px;line-height:1.8;margin-bottom:20px}.encyclopedia-hero-actions{gap:10px 16px;margin-bottom:22px}.encyclopedia-hero-stats{gap:12px;margin-top:20px}.encyclopedia-hero-stats div{min-width:70px}.encyclopedia-hero-stats dt{font-size:28px}.encyclopedia-hero-stats dd{font-size:10px}.encyclopedia-card-fan{min-height:320px;max-width:360px;margin-top:10px}.encyclopedia-card-fan a{max-width:150px;width:39%}.encyclopedia-card-fan a:nth-child(2){margin-top:-20px}}
@media(max-width:360px){.encyclopedia-hero h1{font-size:42px!important}.encyclopedia-card-fan{min-height:280px}.encyclopedia-card-fan a{width:39%}.encyclopedia-hero-stats dt{font-size:25px}}
@media(prefers-reduced-motion:reduce){.encyclopedia-card-fan a{transition:none}}
/* Shared editorial chapters, including complete card scans and honest empty art. */
.encyclopedia-section{margin:56px 0;scroll-margin-top:100px}.encyclopedia-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:20px}.encyclopedia-section h2{font:700 clamp(27px,3vw,38px)/1.15 Georgia,serif;letter-spacing:-.025em;margin:0 0 20px}.encyclopedia-section-heading h2{margin:0}.encyclopedia-section-heading>a{font-weight:700;text-underline-offset:4px}.encyclopedia-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.encyclopedia-feature{min-width:0;background:#fffdf8;border:1px solid #e4dfd4;border-radius:16px;overflow:hidden}.encyclopedia-feature>a{display:block;height:100%;color:inherit;text-decoration:none}.encyclopedia-feature a:hover h3{color:#a34a32}.encyclopedia-feature a:focus-visible{outline:3px solid #a34a32;outline-offset:-4px}.encyclopedia-tile-art{margin:0;background:#f0ece3;display:flex;flex-direction:column;justify-content:center;min-height:220px}.encyclopedia-tile-art img{display:block;width:100%;height:200px;object-fit:contain;padding:12px}.encyclopedia-tile-art figcaption{font:10px/1.4 system-ui,sans-serif;padding:5px 12px;color:#615b52}.encyclopedia-feature-copy{padding:20px}.encyclopedia-feature h3{font:700 23px/1.2 Georgia,serif;margin:0 0 12px}.encyclopedia-feature p{font-size:14px;line-height:1.65;margin:0;color:#635d54}.encyclopedia-feature .encyclopedia-set-meta{font-weight:700;margin-bottom:10px;color:#a34a32}.encyclopedia-image-empty{display:block;box-sizing:border-box;max-width:100%;overflow-wrap:anywhere;min-width:0;padding:20px;color:#6b6458;text-align:center}.encyclopedia-section[data-home-section=personnages] .encyclopedia-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.encyclopedia-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.encyclopedia-guide-grid>a{background:#fffdf8;border:1px solid #e4dfd4;border-radius:14px;padding:22px;color:inherit;text-decoration:none}.encyclopedia-faq details{border-top:1px solid #dcd5c8;padding:0}.encyclopedia-faq summary{display:flex;gap:18px;padding:20px 0;cursor:pointer;font-size:17px;font-weight:700}.encyclopedia-faq summary span{color:#a34a32;flex:0 0 2ch;white-space:nowrap}.encyclopedia-faq details>div{padding:0 20px 20px 42px;line-height:1.7;max-width:950px}.encyclopedia-source-links{padding-left:20px;line-height:1.9}.encyclopedia-shop-banner{display:flex;gap:30px;align-items:center;justify-content:space-between;padding:32px;border-radius:18px;background:#eae1cf;margin-bottom:40px}.encyclopedia-shop-banner>div:last-child{display:grid;gap:16px;flex-shrink:0}.encyclopedia-shop-banner h2{margin-bottom:12px}.ak-nav a,.op-nav a,.lc-nav a,.atlas-subnav a,.encyclopedia-history-links a{min-height:44px;padding:12px 16px;display:inline-flex;align-items:center}.encyclopedia-history-card>.encyclopedia-tile-art{margin:-1px -1px 20px}.encyclopedia-feature img{box-sizing:border-box}
@media(max-width:800px){.encyclopedia-feature-grid,.encyclopedia-section[data-home-section=personnages] .encyclopedia-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.encyclopedia-section{margin:38px 0}.encyclopedia-section-heading{align-items:start;flex-direction:column;gap:12px}.encyclopedia-shop-banner{flex-direction:column;align-items:stretch}.encyclopedia-guide-grid{grid-template-columns:1fr}.encyclopedia-feature-copy{padding:14px}.encyclopedia-feature h3{font-size:21px}.encyclopedia-tile-art img{height:170px}.encyclopedia-tile-art{min-height:190px}}
@media(max-width:370px){.encyclopedia-feature-grid{gap:10px}.encyclopedia-feature h3{font-size:18px}.encyclopedia-tile-art img{height:140px}.encyclopedia-tile-art{min-height:170px}.encyclopedia-feature-copy{padding:12px}}
.encyclopedia-load-controls{padding:24px;text-align:center}.encyclopedia-load-controls button{border:0;border-radius:10px;background:#92472f;color:white;font:700 16px system-ui;min-height:48px;padding:14px 28px;cursor:pointer}.encyclopedia-load-controls button:disabled{opacity:.6}.encyclopedia-load-controls button[hidden],nav[hidden]{display:none!important}.encyclopedia-result-batch{overflow-anchor:none;margin-bottom:20px}.encyclopedia-reload-batch{display:block;padding:24px;text-align:center}.encyclopedia-progressive-list{overflow-anchor:none}
.encyclopedia-site-header nav{gap:16px}.ak-breadcrumb,.op-breadcrumb,.lc-breadcrumb,.pex-breadcrumb,.pdx-breadcrumb,.encyclopedia-breadcrumb{margin:18px 0!important;font:13px/1.7 system-ui!important;display:flex;flex-wrap:wrap;gap:8px}.ak-card-grid,.lc-glimmer-grid,.atlas-card-grid{gap:18px}.ak-empty,.lc-empty,.op-empty,.atlas-note{border-radius:12px;padding:20px}.ak-profile,.lc-profile,.atlas-profile,.pex-profile-heading{gap:32px}.atlas-set .encyclopedia-tile-art{margin-bottom:16px}.encyclopedia-tile-art img[hidden],.encyclopedia-card-fan img[hidden]{display:none}.encyclopedia-faq details[open]{padding-bottom:8px}.encyclopedia-shop-banner a{min-height:44px;display:inline-flex;align-items:center}.encyclopedia-shop-banner .encyclopedia-hero-primary{background:#904b32;color:#fff;padding:12px 20px;border-radius:10px;text-decoration:none}
@media(max-width:960px){.encyclopedia-site-header{height:auto;min-height:110px;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px 16px}.encyclopedia-site-header nav{display:flex!important;flex-shrink:0;min-height:48px;overflow-x:auto;white-space:nowrap;max-width:100%;padding:5px 0;gap:18px;scrollbar-width:thin}.encyclopedia-site-header nav a{min-height:38px;display:inline-flex;align-items:center;flex-shrink:0}.ak-profile,.lc-profile,.atlas-profile{gap:24px}}
/* Approved TCG reference, activated as each encyclopedia is verified. */
.encyclopedia-tcg-reference .encyclopedia-hero{margin-bottom:24px!important;padding-top:12px}
.encyclopedia-tcg-reference .encyclopedia-hero h1{font-size:clamp(40px,5vw,62px)!important}
.encyclopedia-tcg-reference .encyclopedia-hero h1 em{display:inline}
.encyclopedia-tcg-reference .encyclopedia-hero-deck{line-height:1.7}
.encyclopedia-tcg-reference .encyclopedia-hero-secondary{border:1px solid #7250ab;border-radius:7px;padding:12px 18px;text-decoration:none!important}
.encyclopedia-tcg-reference [data-home-section=acces] .encyclopedia-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.encyclopedia-tcg-reference .encyclopedia-section{margin:36px 0}
.encyclopedia-tcg-reference .encyclopedia-shop-banner{background:#eee7fa;border:1px solid #d9c9f5;padding:24px;border-radius:14px}
.encyclopedia-tcg-reference .encyclopedia-shop-banner .encyclopedia-hero-primary{background:#7250ab;border-radius:7px}
.encyclopedia-tcg-reference .encyclopedia-shop-banner a:focus-visible{outline:3px solid #7250ab;outline-offset:3px}
.encyclopedia-tcg-reference .encyclopedia-shop-banner a:last-child{color:#604296}
.encyclopedia-pokedex-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-items:center;align-items:center;gap:2px;padding:8px 24px;height:200px;box-sizing:border-box}
.encyclopedia-tile-art .encyclopedia-pokedex-preview img{width:100%;max-width:88px;height:58px;padding:0;object-fit:contain}
@media(max-width:650px){
 .encyclopedia-tcg-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;overflow:visible;padding:3px 0 12px}
 .encyclopedia-tcg-nav a{grid-column:span 2;white-space:normal;text-align:center;padding:8px 6px;font-size:11px}
 .encyclopedia-tcg-nav a:nth-child(-n+2){grid-column:span 3;background:#eee7fa;border-color:#d9c9f5;color:#604296;font-size:12px}
 .encyclopedia-tcg-nav a[aria-current=page]{box-shadow:inset 0 0 0 1px #7250ab;font-weight:800}
 .encyclopedia-tcg-reference .encyclopedia-hero{padding-top:0;margin-top:0!important}
 .encyclopedia-tcg-reference .encyclopedia-hero h1{font-size:40px!important;margin-bottom:14px!important}
 .encyclopedia-tcg-reference .encyclopedia-hero-kicker{margin-bottom:9px}
 .encyclopedia-tcg-reference .encyclopedia-hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
 .encyclopedia-tcg-reference .encyclopedia-hero-actions a{justify-content:center;text-align:center;padding:12px 8px}
 .encyclopedia-tcg-reference .encyclopedia-hero-stats{margin-top:12px;padding-top:14px}
 .encyclopedia-tcg-reference .encyclopedia-card-fan{min-height:280px}
 .encyclopedia-tcg-reference .encyclopedia-shop-banner{padding:20px}
 .encyclopedia-pokedex-preview{height:170px;padding:8px}
 .encyclopedia-tile-art .encyclopedia-pokedex-preview img{height:48px}
}
@media(max-width:370px){.encyclopedia-tcg-reference .encyclopedia-hero h1{font-size:35px!important}.encyclopedia-pokedex-preview{height:140px}.encyclopedia-tile-art .encyclopedia-pokedex-preview img{height:40px}}

/* Complete illustrations and compact reading frames; Pokémon story first. */
.encyclopedia-history:is([data-history-game=pokemon],[data-history-game=onepiece],[data-history-game=lorcana],[data-history-game=aniki]) .encyclopedia-tile-art{min-height:0;display:grid;grid-template-rows:170px auto;background:#eee7fa}
.encyclopedia-history:is([data-history-game=pokemon],[data-history-game=onepiece],[data-history-game=lorcana],[data-history-game=aniki]) .encyclopedia-tile-art img{height:170px;object-fit:contain;box-sizing:border-box}
@media(max-width:650px){.encyclopedia-history:is([data-history-game=pokemon],[data-history-game=onepiece],[data-history-game=lorcana],[data-history-game=aniki]) .encyclopedia-tile-art{grid-template-rows:145px auto}.encyclopedia-history:is([data-history-game=pokemon],[data-history-game=onepiece],[data-history-game=lorcana],[data-history-game=aniki]) .encyclopedia-tile-art img{height:145px}}

.encyclopedia-history[data-history-game=lorcana] .encyclopedia-history-grid:has(> :only-child){grid-template-columns:1fr;max-width:900px}
.encyclopedia-history[data-history-game=lorcana] .encyclopedia-history-card:only-child{display:grid;grid-template-columns:200px minmax(0,1fr);gap:0 24px}
.encyclopedia-history[data-history-game=lorcana] .encyclopedia-history-card:only-child>figure{grid-row:1 / span 2;margin:0}
.encyclopedia-history[data-history-game=lorcana] .encyclopedia-history-card:only-child>:is(h3,p){grid-column:2}
.encyclopedia-history[data-history-game=lorcana] .is-logo img{padding:20px 16px}
@media(max-width:650px){.encyclopedia-history[data-history-game=lorcana] .encyclopedia-history-card:only-child{display:block}.encyclopedia-history[data-history-game=lorcana] .encyclopedia-history-card:only-child>figure{margin:0 0 20px}}

/* The approved shop banner also accompanies interior encyclopedia pages. */
:is(.pdx-field,.op-field,.lc-field,.pex-field,.ak-banner){background:#eee7fa;border:1px solid #d9c9f5;border-radius:14px;color:#312641;padding:24px}
:is(.pdx-field,.op-field,.lc-field,.pex-field,.ak-banner) :is(h2,p){color:inherit}
:is(.pdx-field,.op-field,.lc-field,.pex-field,.ak-banner) a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;color:#604296}
:is(.pdx-field,.op-field,.lc-field,.pex-field,.ak-banner) :is(.pdx-primary,.op-button,.lc-button,.pex-button,.ak-button){background:#7250ab;color:#fff;border-color:#7250ab;border-radius:7px}
:is(.pdx-field,.op-field,.lc-field,.pex-field,.ak-banner) a:focus-visible,.encyclopedia-load-controls button:focus-visible{outline:3px solid #7250ab;outline-offset:3px}
.encyclopedia-load-controls button{background:#7250ab}
@media(max-width:650px){:is(.pdx-field,.op-field,.lc-field,.pex-field,.ak-banner){padding:20px}}
.lc-encyclopedia img[hidden],.op-encyclopedia img[hidden],.encyclopedia-tile-art img[hidden]{display:none!important}
/* Consistent editorial chapter covers, not reconstructed or cropped publisher logos. */
.lorcana-set-cover{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;height:100%;min-height:200px;padding:24px 18px;background:#eee9f8;color:#3f315b;text-align:center;border:1px solid #d9cfea;border-radius:9px}
.lorcana-set-cover-brand{font:700 11px/1.3 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#71618d}
.lorcana-set-cover-number{font:700 10px/1.4 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase}
.lorcana-set-cover strong{font:500 clamp(22px,2.5vw,30px)/1.15 Georgia,serif;max-width:24ch;text-wrap:balance}
.lorcana-set-cover-rule{width:36px;border-bottom:2px solid #9987b5;margin-top:3px}
.lc-set-card>div.lc-set-title-art{height:238px;padding:0;background:none;display:block}
.encyclopedia-tile-art.is-set-cover{padding:12px;background:#f8f5fc}
.encyclopedia-history-card .is-set-cover{min-height:238px}
@media(max-width:600px){.lc-set-card>div.lc-set-title-art{height:190px;padding:0}.lorcana-set-cover{min-height:175px;padding:16px 10px;gap:10px}.lorcana-set-cover strong{font-size:20px}.lorcana-set-cover-brand{font-size:9px;letter-spacing:.05em}.lorcana-set-cover-number{font-size:9px;letter-spacing:.07em}}
