/* Host layout and intensity tuning; optical layers come from Poke Holo upstream. */
.film-gallery .film-card[data-poke-source=true]{background:#faf7ef;border-color:#d5ccbc;box-shadow:0 20px 42px #342b251e}
.film-gallery .film-card[data-poke-source=true]::before,.film-gallery .film-card[data-poke-source=true]::after{display:none}
.poke-cover{position:relative;isolation:auto!important;overflow:visible!important;padding:0!important;background:#1a0d0b!important;border-radius:9px}
.poke-holo-host{position:absolute;inset:0;z-index:1;display:block}
.poke-holo-host .card{width:100%;height:100%;--card-aspect:1.43;--card-radius:9px;--clip:inset(0);--clip-borders:inset(0)}
.poke-holo-host .card__translater,.poke-holo-host .card__rotator{width:100%;height:100%}
.poke-holo-host .card__rotator img{width:100%;height:100%;object-fit:cover;object-position:center center}
.poke-holo-host .card__glare{mask-image:var(--mask);-webkit-mask-image:var(--mask);mask-size:cover;-webkit-mask-size:cover;mask-position:center;-webkit-mask-position:center}
.poke-holo-host .card__rotator{cursor:zoom-in}
.poke-holo-host .card__rotator:focus-visible{outline:2px solid #c3ab72;outline-offset:4px}
.poke-gallery-controls{display:grid;justify-items:center;gap:8px;margin-top:12px}
.poke-gallery-controls>div,.poke-view-switch,.poke-rarity-switch{display:flex;gap:3px;padding:3px;border:1px solid #d5cdbe;border-radius:20px;background:#fffcf5}
.poke-gallery-controls button,.poke-view-switch button,.poke-rarity-switch button{font:inherit;font-size:10px;line-height:1.4;border:0;border-radius:16px;padding:5px 11px;background:transparent;color:#7d7669;cursor:pointer;white-space:nowrap}
.poke-gallery-controls button[aria-pressed=true],.poke-view-switch button[aria-pressed=true],.poke-rarity-switch button[aria-pressed=true]{background:#443831;color:#fff9ec}
.poke-gallery-controls .poke-open-detail{font-size:11px;padding:1px;color:#75694f;letter-spacing:.4px}
.poke-gallery-controls>span{font:7px/1.3 Arial,sans-serif;letter-spacing:1px;color:#9b8d7b}
.isshin-preview .film-link{color:#5b554a;text-decoration:none}
.poke-detail{width:min(1100px,calc(100vw - 36px));max-width:1100px;height:min(850px,calc(100svh - 36px));max-height:calc(100svh - 36px);border:1px solid #bba98b50;border-radius:22px;padding:0;background:#f3efe5;color:#41392f;overflow:auto;box-shadow:0 35px 120px #150c0790}
.poke-detail::backdrop{background:#17100ddd;backdrop-filter:blur(9px)}
.poke-detail-shell{padding:26px 30px}.poke-detail header{display:flex;align-items:center;justify-content:space-between;padding-bottom:20px;border-bottom:1px solid #d4cabc}.poke-detail-kicker,.poke-panel-kicker{font:8px/1.5 Arial,sans-serif;letter-spacing:2px;color:#9a8b73}.poke-detail header h2{font-size:21px;font-weight:500;letter-spacing:1px;margin:8px 0 0}.poke-close{display:grid;place-items:center;font:25px/1 Arial;width:34px;height:34px;border:1px solid #c7bca8;border-radius:50%;background:transparent;color:#77664e;cursor:pointer}
.poke-detail-body{display:grid;grid-template-columns:minmax(0,1fr) 255px;align-items:center;gap:32px;padding-top:25px}.poke-large-stage{height:min(590px,65svh);position:relative;display:flex;justify-content:center;align-items:center;perspective:1200px;min-height:350px}
.poke-large-host{position:relative!important;inset:auto;aspect-ratio:3/4;height:100%;width:auto;max-width:100%;flex-shrink:1}.poke-large-host .card{--card-aspect:0.75;--card-radius:15px}
.poke-large-stage[data-view=full] .poke-large-host{width:100%;height:auto;aspect-ratio:1265/712}.poke-large-stage[data-view=full] .card{--card-aspect:1.776685}
.poke-detail aside h3{font-size:28px;font-weight:500;line-height:1.4;letter-spacing:.5px;margin:16px 0}.poke-detail aside p{font-size:12px;line-height:1.9;color:#928470}.poke-detail aside label{display:block;margin:22px 0 9px;font-size:10px;color:#8d7b61}.poke-detail aside .poke-source-copy{margin-top:28px;font-size:10px;line-height:1.8;color:#ab9d88}.poke-detail aside>a{display:inline-block;margin:6px 14px 0 0;font-size:10px;color:#7c6649;text-decoration:none}
.poke-view-switch{width:max-content;max-width:100%}.poke-rarity-switch{width:max-content}.poke-large-host .card__rotator{cursor:move}
@media(max-width:850px){.isshin-preview .portfolio-stage{margin-bottom:45px}.poke-detail-shell{padding:20px}.poke-detail-body{grid-template-columns:1fr;gap:20px}.poke-large-stage{height:52svh;min-height:300px}.poke-detail aside{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.poke-detail aside h3{font-size:20px;margin:10px 0}.poke-panel-kicker{grid-column:1/-1}.poke-detail aside p{font-size:10px}.poke-detail aside .poke-source-copy{margin:10px 0}.poke-detail aside label{display:none}.poke-rarity-switch{align-self:start}.poke-detail header h2{font-size:17px}}
@media(max-width:480px){.isshin-preview .portfolio-stage{overflow:visible;height:610px}.poke-gallery-controls{gap:6px;margin-top:8px}.poke-gallery-controls button{font-size:9px;padding:4px 9px}.poke-gallery-controls>span{font-size:6px}.poke-detail{width:calc(100vw - 20px);height:calc(100svh - 20px);max-height:calc(100svh - 20px);border-radius:16px}.poke-detail-shell{padding:16px}.poke-large-stage{height:49svh}.poke-detail aside{column-gap:12px}.poke-rarity-switch button,.poke-view-switch button{font-size:9px;padding:5px 8px}}
@media(prefers-reduced-motion:reduce){.poke-holo-host{--rotate-x:0deg;--rotate-y:0deg}.poke-detail::backdrop{backdrop-filter:none}}
/* Original popover's +150px placement is not needed inside the host dialog/carousel. */
.poke-holo-host .card__translater{--translate-z:0.01px}
.poke-detail-body>*,.poke-detail aside{min-width:0}
.poke-detail{overflow-x:hidden}
/* Preserve the custom photo ratio within the original card's grid containers. */
.poke-large-stage{--portrait-height:min(590px,65svh)}
.poke-large-host{width:min(100%,calc(var(--portrait-height)*.75));height:auto;aspect-ratio:3/4}
.poke-holo-host .card__translater,.poke-holo-host .card__rotator{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}
.poke-holo-host .card__front,.poke-holo-host .card__back{min-width:0;max-width:100%}
@media(max-width:850px){.poke-large-stage{--portrait-height:52svh}}
@media(max-width:480px){.poke-large-stage{--portrait-height:49svh}}
.poke-large-stage[data-view=full]{height:auto;min-height:0;aspect-ratio:1265/712}
.poke-large-stage[data-view=full] .poke-large-host{height:100%}

/* Portrait-first intensity: retain upstream textures, blends and pointer motion,
   but let the photograph stay readable even at maximum hover opacity. */
.poke-holo-host .card[data-rarity][data-supertype] .card__shine{
  opacity:calc(var(--card-opacity) * .56);
}
.poke-holo-host .card[data-rarity][data-supertype] .card__glare{
  opacity:calc(var(--card-opacity) * .22);
}
.poke-holo-host .card[data-rarity="rare ultra"][data-supertype] .card__shine::before{
  opacity:.3;
}

/* All service screenshots share the original spring/foil component. */
.poke-service-cover{padding:0!important;overflow:visible!important;isolation:auto!important;background:transparent!important}
.poke-service-host .card__front{position:relative;height:100%}
.poke-service-host .card__rotator{cursor:pointer}
/* Keep the entire captured homepage in frame; no headline or navigation cropping. */
.poke-service-host .card__rotator img{object-fit:contain;background:#edf0f3}
.poke-service-host .card__shine,.poke-service-host .card__glare{
 -webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
}
.poke-service-host .card[data-rarity][data-supertype] .card__shine{opacity:calc(var(--card-opacity) * .42)}
.poke-service-host .card[data-rarity][data-supertype] .card__glare{opacity:calc(var(--card-opacity) * .12)}

/* Dedicated illustrated covers fill the frame; typography stays in the live footer. */
.poke-service-host .card__rotator img{object-fit:cover;background:#17212e}
.poke-service-host .card__shine,.poke-service-host .card__glare{-webkit-mask-size:cover;mask-size:cover}
.poke-service-host .card[data-rarity][data-supertype] .card__shine{opacity:calc(var(--card-opacity) * .56)}
.poke-service-host .card[data-rarity][data-supertype] .card__glare{opacity:calc(var(--card-opacity) * .22)}
.poke-view-switch[hidden]{display:none!important}
.poke-large-stage[data-view=artwork]{height:auto;min-height:0;aspect-ratio:3/2}
.poke-large-stage[data-view=artwork] .poke-large-host{width:100%;height:100%;aspect-ratio:3/2}
.poke-large-stage[data-view=artwork] .card{--card-aspect:1.5}
.poke-detail[data-cover]:not([data-cover="0"]) .card__rotator img{object-fit:contain;background:#17212e}
.poke-detail header{position:sticky;top:-1px;z-index:20;background:#f3efe5;padding-top:12px}

/* Quiet editorial illustration edition: warm paper, ink blue, restrained metal. */
.poke-service-host .card{--card-glow:rgb(158 174 166);--card-edge:#c2b59a}
.poke-service-host .card__rotator img{background:#f4f1e8}
.poke-service-host .card[data-rarity][data-supertype] .card__shine{opacity:calc(var(--card-opacity) * .50)}
.poke-service-host .card[data-rarity][data-supertype] .card__glare{opacity:calc(var(--card-opacity) * .16)}
.poke-detail[data-cover]:not([data-cover="0"]) .card{--card-glow:rgb(158 174 166);--card-edge:#c2b59a}
.poke-detail[data-cover]:not([data-cover="0"]) .card[data-rarity][data-supertype] .card__shine{opacity:calc(var(--card-opacity) * .50)}
.poke-detail[data-cover]:not([data-cover="0"]) .card[data-rarity][data-supertype] .card__glare{opacity:calc(var(--card-opacity) * .16)}
