/* V12.5 / dark product stages + seamless cinematic hero */
:root{--aphi-sticker-stage:#11101b}
/* The hero no longer looks like a framed screenshot. Contained layout remains unchanged. */
.hero-cinematic{background:radial-gradient(ellipse at 74% 43%,rgba(105,48,150,.20) 0%,transparent 60%),#08070e!important}
.hero-cinematic:before{opacity:.06!important}
.hero-cinematic-frame{border:0!important;box-shadow:none!important;background:transparent!important;overflow:hidden!important}
.hero-cinematic-frame:before{display:none!important}
.hero-cinematic-frame:after{content:''!important;display:block!important;z-index:3!important;pointer-events:none!important;background:linear-gradient(to right,#08070e 0%,transparent 5%,transparent 95%,#08070e 100%),linear-gradient(to bottom,#08070e 0%,transparent 7%,transparent 88%,#08070e 100%)!important}
.hero-cinematic-frame img{display:block}
.hero-hotspot-controls{z-index:6!important}
/* Unified premium dark media stage: preserve the original illustrations, eliminate bright mockup surroundings */
.archive-sticker .archive-work-image,.aphi-stickers-section .archive-work-image{
 position:relative!important;background:radial-gradient(ellipse at 50% 42%,#302044 0%,#181323 50%,#0b0a11 100%)!important;
 border-bottom:1px solid rgba(180,131,230,.25)!important;overflow:hidden!important;
}
.archive-sticker .archive-work-image:before,.aphi-stickers-section .archive-work-image:before{
 content:'';position:absolute;inset:10px;z-index:0;pointer-events:none;border:1px solid rgba(190,143,235,.13);background-image:linear-gradient(90deg,rgba(194,153,228,.045) 1px,transparent 1px),linear-gradient(rgba(194,153,228,.045) 1px,transparent 1px);background-size:32px 32px;
}
.archive-sticker .archive-work-image img[src*="/v12_5/"],.aphi-stickers-section .archive-work-image img[src*="/v12_5/"]{
 position:relative;z-index:1;display:block!important;margin:auto!important;padding:14px!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;background:transparent!important;box-shadow:none!important;filter:drop-shadow(0 13px 14px rgba(0,0,0,.5));
}
.archive-sticker .archive-work-image img[src*="palpon-display"],.archive-sticker .archive-work-image img[src*="awakening-tonic-display"],.aphi-stickers-section .archive-work-image img[src*="awakening-tonic-display"]{
 width:88%!important;height:88%!important;object-fit:contain!important;padding:0!important;filter:drop-shadow(0 14px 15px rgba(0,0,0,.55));
}
.feature-grid-5 .feature-card>img[src*="/v12_5/"]{
 background:radial-gradient(ellipse at 50% 48%,#322044,#11101b 75%)!important;
 object-fit:contain!important;object-position:center!important;padding:14px!important;filter:none!important;
}
.feature-grid-5 .feature-card{overflow:hidden}
@media(max-width:720px){
 .archive-sticker .archive-work-image img[src*="/v12_5/"],.aphi-stickers-section .archive-work-image img[src*="/v12_5/"]{padding:12px!important}
 .hero-cinematic-frame:after{background:linear-gradient(to right,#08070e 0%,transparent 4%,transparent 96%,#08070e 100%),linear-gradient(to bottom,#08070e 0%,transparent 4%,transparent 94%,#08070e 100%)!important}
}

/* V12.5.1: center only the awakening tonic sticker artwork within its stage */
.aphi-stickers-section .archive-work:first-child .archive-work-image{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.aphi-stickers-section .archive-work:first-child .archive-work-image img[src*="awakening-tonic-display"]{
  display:block!important;
  position:relative!important;
  flex:0 1 auto!important;
  width:auto!important;
  height:88%!important;
  max-width:88%!important;
  max-height:88%!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center center!important;
}


/* V12.5.2: fix oversized sticker imagery so every artwork fits cleanly inside the media frame */
.archive-sticker .archive-work-image,
.aphi-stickers-section .archive-work-image{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:12px!important;
  box-sizing:border-box!important;
}
.archive-sticker .archive-work-image img[src*="/v12_5/"],
.aphi-stickers-section .archive-work-image img[src*="/v12_5/"]{
  display:block!important;
  position:relative!important;
  flex:0 1 auto!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0 auto!important;
  padding:0!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:center center!important;
}
.archive-sticker .archive-work-image img[src*="palpon-display"],
.archive-sticker .archive-work-image img[src*="awakening-tonic-display"],
.aphi-stickers-section .archive-work-image img[src*="awakening-tonic-display"]{
  max-width:88%!important;
  max-height:88%!important;
}


/* V12.5.3: unify object/archive presentation while keeping PRECISION untouched */
.archive-section .archive-work:not(#work-precision-studies) .archive-work-image,
.aphi-stickers-section .archive-work-image{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:12px!important;
  box-sizing:border-box!important;
  background:radial-gradient(ellipse at 50% 36%,rgba(59,36,86,.72) 0%,rgba(24,19,35,.94) 56%,#0b0a11 100%)!important;
  border-bottom:1px solid rgba(180,131,230,.28)!important;
  overflow:hidden!important;
}
.archive-section .archive-work:not(#work-precision-studies) .archive-work-image:before,
.aphi-stickers-section .archive-work-image:before{
  content:''!important;
  position:absolute!important;
  inset:10px!important;
  pointer-events:none!important;
  z-index:0!important;
  border:1px solid rgba(190,143,235,.16)!important;
  background-image:linear-gradient(90deg,rgba(194,153,228,.05) 1px,transparent 1px),linear-gradient(rgba(194,153,228,.05) 1px,transparent 1px)!important;
  background-size:32px 32px!important;
}
.archive-section .archive-work:not(#work-precision-studies) .archive-work-image img,
.aphi-stickers-section .archive-work-image img{
  position:relative!important;
  z-index:1!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:88%!important;
  max-height:84%!important;
  margin:0 auto!important;
  padding:0!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:transparent!important;
  filter:drop-shadow(0 12px 14px rgba(0,0,0,.42))!important;
}
/* landscape / panel style works: slightly larger fill for a more unified gallery */
#work-industrial-label .archive-work-image img,
#work-ap-88ch .archive-work-image img,
#work-game-system-archives .archive-work-image img,
#work-chunk-and-bit .archive-work-image img,
#work-aphi-identity-horizontal .archive-work-image img,
#work-aphi-identity-emblem .archive-work-image img,
#work-aphi-identity-square .archive-work-image img,
#work-pulse-rabbit .archive-work-image img{
  max-width:92%!important;
  max-height:90%!important;
}
/* product label / sticker cards */
#work-palpon .archive-work-image img,
.aphi-stickers-section .archive-work:first-child .archive-work-image img[src*="awakening-tonic-display"]{
  max-width:82%!important;
  max-height:82%!important;
}
#work-rise .archive-work-image img,
.aphi-stickers-section .archive-work-image img[src*="rise-display"]{
  max-width:74%!important;
  max-height:90%!important;
}
#work-x-eyes-icon .archive-work-image img,
#work-volt-runner .archive-work-image img,
#work-x-eyes .archive-work-image img,
#work-blue-runner .archive-work-image img,
.aphi-stickers-section .archive-work-image img[src*="volt-runner-heart-drive-display"],
.aphi-stickers-section .archive-work-image img[src*="rise-display"]{
  max-width:74%!important;
  max-height:88%!important;
}
#work-pulse-parade .archive-work-image img{
  max-width:88%!important;
  max-height:76%!important;
}
/* featured stickers: keep the set visually consistent */
.aphi-stickers-section .archive-work:nth-child(2) .archive-work-image img{
  max-width:74%!important;
  max-height:88%!important;
}
.aphi-stickers-section .archive-work:nth-child(3) .archive-work-image img{
  max-width:74%!important;
  max-height:90%!important;
}
@media(max-width:720px){
  .archive-section .archive-work:not(#work-precision-studies) .archive-work-image,
  .aphi-stickers-section .archive-work-image{padding:10px!important}
  .archive-section .archive-work:not(#work-precision-studies) .archive-work-image:before,
  .aphi-stickers-section .archive-work-image:before{inset:8px!important}
}
