/* R4656625: two original 66×25 cells, including the native * / # marks.
   Render at 1.5× to match the existing 960×540 web scene and LD references.
   Keep the counter in a separate flex item so longer page numbers cannot
   shrink the arrows or paint over their inner edges. */
#game :is(#npcCrafting,#panel,#nativeMarket,#farmConstruction,#equipmentRepair)
  :is(.npc-craft-pages,.lc-pager,.ns-pages,.nm-pages,.ng-pages,.market-pager,.aux-pager,.repair-pages,.announcement-pagination,.apk-pagination,.fc-catalog>footer){
  display:flex;
  align-items:flex-end;
  justify-content:center;
  column-gap:6px;
  flex-wrap:nowrap;
  overflow:visible;
  isolation:isolate;
}

#game :is(#npcCrafting,#panel,#nativeMarket,#farmConstruction,#equipmentRepair)
  :is(.npc-craft-pages,.lc-pager,.ns-pages,.nm-pages,.ng-pages,.market-pager,.aux-pager,.repair-pages,.announcement-pagination,.apk-pagination,.fc-catalog>footer)>button{
  position:relative;
  display:block;
  flex:0 0 99px;
  box-sizing:border-box;
  width:99px;
  min-width:99px;
  max-width:99px;
  height:37.5px;
  min-height:37.5px;
  max-height:37.5px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background-color:transparent;
  background-repeat:no-repeat;
  background-position:center;
  background-size:99px 37.5px;
  image-rendering:pixelated;
  font-size:0;
  line-height:0;
  text-shadow:none;
  box-shadow:none;
  filter:none;
  opacity:1;
}

#game :is(#npcCrafting,#panel,#nativeMarket,#farmConstruction,#equipmentRepair)
  :is(.npc-craft-pages,.lc-pager,.ns-pages,.nm-pages,.ng-pages,.market-pager,.aux-pager,.repair-pages,.announcement-pagination,.apk-pagination,.fc-catalog>footer)>button:first-child{
  background-image:url('./native/ld-page-left-4656625-native.png');
}

#game :is(#npcCrafting,#panel,#nativeMarket,#farmConstruction,#equipmentRepair)
  :is(.npc-craft-pages,.lc-pager,.ns-pages,.nm-pages,.ng-pages,.market-pager,.aux-pager,.repair-pages,.announcement-pagination,.apk-pagination,.fc-catalog>footer)>button:last-child{
  background-image:url('./native/ld-page-right-4656625-native.png');
}

/* The original sprite already contains the shortcut mark. Suppress older
   screenshot images and duplicated HTML glyphs without changing handlers. */
#game :is(#npcCrafting,#panel,#nativeMarket,#farmConstruction,#equipmentRepair)
  :is(.npc-craft-pages,.lc-pager,.ns-pages,.nm-pages,.ng-pages,.market-pager,.aux-pager,.repair-pages,.announcement-pagination,.apk-pagination,.fc-catalog>footer)>button>:is(img,small,sup){
  display:none;
}

#game :is(#npcCrafting,#panel,#nativeMarket,#farmConstruction,#equipmentRepair)
  :is(.npc-craft-pages,.lc-pager,.ns-pages,.nm-pages,.ng-pages,.market-pager,.aux-pager,.repair-pages,.announcement-pagination,.apk-pagination,.fc-catalog>footer)>button:disabled{
  opacity:1;
  cursor:default;
}

#game :is(#npcCrafting,#panel,#nativeMarket,#farmConstruction,#equipmentRepair)
  :is(.npc-craft-pages,.lc-pager,.ns-pages,.nm-pages,.ng-pages,.market-pager,.aux-pager,.repair-pages,.announcement-pagination,.apk-pagination,.fc-catalog>footer)>button:focus-visible{
  outline:2px solid #fcffb4;
  outline-offset:2px;
}

#game :is(#npcCrafting,#panel,#nativeMarket,#farmConstruction,#equipmentRepair)
  :is(.npc-craft-pages,.lc-pager,.ns-pages,.nm-pages,.ng-pages,.market-pager,.aux-pager,.repair-pages,.announcement-pagination,.apk-pagination,.fc-catalog>footer)>span{
  position:relative;
  z-index:1;
  display:block;
  flex:0 0 auto;
  min-width:3.5ch;
  width:auto;
  height:32px;
  margin:0;
  padding:0 3px;
  color:#fcffb4;
  font-size:28px;
  font-weight:400;
  font-style:normal;
  font-variant-numeric:tabular-nums;
  line-height:32px;
  letter-spacing:0;
  white-space:nowrap;
  text-align:center;
  text-shadow:1px 1px #142a2b;
}

/* Repair lists intentionally have arrows without a page counter. */
#game #equipmentRepair .repair-pages{column-gap:42px}
